From e87252417b286321a8c16a05d3624f08a7b01dac Mon Sep 17 00:00:00 2001 From: anushkamittal2001 Date: Wed, 10 Jan 2024 13:30:19 +0530 Subject: [PATCH] Add policies service Signed-off-by: anushkamittal2001 --- pkg/client/services.go | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/pkg/client/services.go b/pkg/client/services.go index f674867..514cdeb 100644 --- a/pkg/client/services.go +++ b/pkg/client/services.go @@ -9,23 +9,13 @@ import ( type Service int const ( - // ServiceCatalogs ... ServiceCatalogs Service = iota + 1 - - // ServiceEnvironments ... ServiceEnvironments - - // ServiceClusters ... ServiceClusters - - // ServiceUsers ... ServiceUsers - - // ServiceSecurity ... ServiceSecurity - - // ServiceConfig ... ServiceConfig + ServicePolicies ) // Name returns the service name @@ -49,6 +39,9 @@ func (s Service) Name() string { case ServiceConfig: return "config" + case ServicePolicies: + return "policies" + default: return "" } @@ -75,7 +68,10 @@ func ParseService(s string) (Service, error) { case "config": return ServiceConfig, nil + case "policies": + return ServicePolicies, nil + } - return -1, fmt.Errorf("Invalid service %s", s) + return -1, fmt.Errorf("invalid service %s", s) }