mock_api

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

type MockClient struct {
	GetCredentialsFn             func(serverURL string) (*api.Auth, error)
	GetCredentialsByRegistryIDFn func(registryID string) (*api.Auth, error)
	ListCredentialsFn            func() ([]*api.Auth, error)
}

func (*MockClient) GetCredentials

func (m *MockClient) GetCredentials(serverURL string) (*api.Auth, error)

func (*MockClient) GetCredentialsByRegistryID

func (m *MockClient) GetCredentialsByRegistryID(registryID string) (*api.Auth, error)

func (*MockClient) ListCredentials

func (m *MockClient) ListCredentials() ([]*api.Auth, error)

type MockClientFactory

type MockClientFactory struct {
	NewClientFn                 func(awsConfig aws.Config) api.Client
	NewClientWithOptionsFn      func(opts api.Options) api.Client
	NewClientFromRegionFn       func(region string) api.Client
	NewClientWithFipsEndpointFn func(region string) (api.Client, error)
	NewClientWithDefaultsFn     func() api.Client
}

func (MockClientFactory) NewClient

func (m MockClientFactory) NewClient(awsConfig aws.Config) api.Client

func (MockClientFactory) NewClientFromRegion

func (m MockClientFactory) NewClientFromRegion(region string) api.Client

func (MockClientFactory) NewClientWithDefaults

func (m MockClientFactory) NewClientWithDefaults() api.Client

func (MockClientFactory) NewClientWithFipsEndpoint

func (m MockClientFactory) NewClientWithFipsEndpoint(region string) (api.Client, error)

func (MockClientFactory) NewClientWithOptions

func (m MockClientFactory) NewClientWithOptions(opts api.Options) api.Client

Jump to

Keyboard shortcuts

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