Documentation
¶
Index ¶
- type MockDockerClient
- func (m *MockDockerClient) Close() error
- func (m *MockDockerClient) PullImage(ctx context.Context, imageName string) error
- func (m *MockDockerClient) PushImage(ctx context.Context, imageName string) error
- func (m *MockDockerClient) TagImage(ctx context.Context, source, target string) error
- func (m *MockDockerClient) VerifyCredentials(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDockerClient ¶
type MockDockerClient struct {
PulledImages map[string]bool
TaggedImages map[string]string
PushedImages map[string]bool
PullErrors map[string]error
TagErrors map[string]error
PushErrors map[string]error
CredentialError error
// contains filtered or unexported fields
}
MockDockerClient provides a mock implementation for testing Docker client operations
func NewMockDockerClient ¶
func NewMockDockerClient() *MockDockerClient
NewMockDockerClient creates a new instance of MockDockerClient
func (*MockDockerClient) Close ¶
func (m *MockDockerClient) Close() error
Close mocks the closing of resources
func (*MockDockerClient) PullImage ¶
func (m *MockDockerClient) PullImage(ctx context.Context, imageName string) error
PullImage mocks the Docker image pull operation
func (*MockDockerClient) PushImage ¶
func (m *MockDockerClient) PushImage(ctx context.Context, imageName string) error
PushImage mocks the Docker image push operation
func (*MockDockerClient) TagImage ¶
func (m *MockDockerClient) TagImage(ctx context.Context, source, target string) error
TagImage mocks the Docker image tag operation
func (*MockDockerClient) VerifyCredentials ¶
func (m *MockDockerClient) VerifyCredentials(ctx context.Context) error
VerifyCredentials mocks Docker registry authentication
Click to show internal directories.
Click to hide internal directories.