mocks

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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