forked from TrueCloudLab/frostfs-node
[#1574] ape: Introduce Properties()
method for Request
and Resource
* Both methods are helpers only, they are not required for interface implementation. Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
This commit is contained in:
parent
02f3a7f65c
commit
00faa9f854
1 changed files with 8 additions and 0 deletions
|
@ -32,6 +32,10 @@ func (r Request) Resource() aperesource.Resource {
|
|||
return r.resource
|
||||
}
|
||||
|
||||
func (r Request) Properties() map[string]string {
|
||||
return r.properties
|
||||
}
|
||||
|
||||
type Resource struct {
|
||||
name string
|
||||
properties map[string]string
|
||||
|
@ -53,3 +57,7 @@ func (r Resource) Name() string {
|
|||
func (r Resource) Property(key string) string {
|
||||
return r.properties[key]
|
||||
}
|
||||
|
||||
func (r Resource) Properties() map[string]string {
|
||||
return r.properties
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue