make client interface

This commit is contained in:
Mike Mason
2023-07-18 13:36:41 +00:00
parent 05762f5d75
commit f828546cfe
10 changed files with 72 additions and 46 deletions

View File

@@ -21,7 +21,7 @@ func WithLogger(logger *zap.SugaredLogger) Option {
}
// WithMetalClient sets the Equinix Metal client used by the service.
func WithMetalClient(client *metal.Client) Option {
func WithMetalClient(client metal.Client) Option {
return func(s *service) error {
s.metal = client
@@ -30,7 +30,7 @@ func WithMetalClient(client *metal.Client) Option {
}
// WithPermissionsClient sets the permissions client used by the service.
func WithPermissionsClient(client *permissions.Client) Option {
func WithPermissionsClient(client permissions.Client) Option {
return func(s *service) error {
s.perms = client