fake

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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

Create mocks Create method

func (*MockRegistryClient) Delete

func (c *MockRegistryClient) Delete(ctx context.Context) (*godo.Response, error)

Delete mocks Delete method

func (*MockRegistryClient) Get

Get mocks Get method

func (*MockRegistryClient) GetSubscription

GetSubscription mocks GetSubscription method

func (*MockRegistryClient) UpdateSubscription

UpdateSubscription mocks UpdateSubscription method

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL