make client interface
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user