[#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:
Airat Arifullin 2025-02-24 19:27:00 +03:00
parent 02f3a7f65c
commit 00faa9f854

View file

@ -32,6 +32,10 @@ func (r Request) Resource() aperesource.Resource {
return r.resource return r.resource
} }
func (r Request) Properties() map[string]string {
return r.properties
}
type Resource struct { type Resource struct {
name string name string
properties map[string]string properties map[string]string
@ -53,3 +57,7 @@ func (r Resource) Name() string {
func (r Resource) Property(key string) string { func (r Resource) Property(key string) string {
return r.properties[key] return r.properties[key]
} }
func (r Resource) Properties() map[string]string {
return r.properties
}