Documentation ¶
Index ¶
- type MockRegistryClient
- func (c *MockRegistryClient) Create(ctx context.Context, request *godo.RegistryCreateRequest) (*godo.Registry, *godo.Response, error)
- func (c *MockRegistryClient) Delete(ctx context.Context) (*godo.Response, error)
- func (c *MockRegistryClient) Get(ctx context.Context) (*godo.Registry, *godo.Response, error)
- func (c *MockRegistryClient) GetSubscription(ctx context.Context) (*godo.RegistrySubscription, *godo.Response, error)
- func (c *MockRegistryClient) UpdateSubscription(ctx context.Context, request *godo.RegistrySubscriptionUpdateRequest) (*godo.RegistrySubscription, *godo.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRegistryClient ¶
type MockRegistryClient struct { MockGet func(context.Context) (*godo.Registry, *godo.Response, error) MockGetSubscription func(context.Context) (*godo.RegistrySubscription, *godo.Response, error) MockCreate func(context.Context, *godo.RegistryCreateRequest) (*godo.Registry, *godo.Response, error) MockUpdateSubscription func(context.Context, *godo.RegistrySubscriptionUpdateRequest) (*godo.RegistrySubscription, *godo.Response, error) MockDelete func(context.Context) (*godo.Response, error) }
MockRegistryClient is a type that implements all the methods for RegistryClient interface
func (*MockRegistryClient) Create ¶
func (c *MockRegistryClient) Create(ctx context.Context, request *godo.RegistryCreateRequest) (*godo.Registry, *godo.Response, error)
Create mocks Create method
func (*MockRegistryClient) GetSubscription ¶
func (c *MockRegistryClient) GetSubscription(ctx context.Context) (*godo.RegistrySubscription, *godo.Response, error)
GetSubscription mocks GetSubscription method
func (*MockRegistryClient) UpdateSubscription ¶
func (c *MockRegistryClient) UpdateSubscription(ctx context.Context, request *godo.RegistrySubscriptionUpdateRequest) (*godo.RegistrySubscription, *godo.Response, error)
UpdateSubscription mocks UpdateSubscription method
Click to show internal directories.
Click to hide internal directories.