From 00faa9f8541e097224455dfa465d0e09fe6a11ee Mon Sep 17 00:00:00 2001 From: Airat Arifullin Date: Mon, 24 Feb 2025 19:27:00 +0300 Subject: [PATCH] [#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 --- pkg/ape/request/request.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkg/ape/request/request.go b/pkg/ape/request/request.go index de67dea23..14b399f56 100644 --- a/pkg/ape/request/request.go +++ b/pkg/ape/request/request.go @@ -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 +}