mocks

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockGWClient

type MockGWClient struct {
	mock.Mock
}

Mock for gwclient.Client.

func (*MockGWClient) BuildOpts

func (m *MockGWClient) BuildOpts() gwclient.BuildOpts

func (*MockGWClient) Inputs

func (m *MockGWClient) Inputs(ctx context.Context) (map[string]llb.State, error)

func (*MockGWClient) NewContainer

func (*MockGWClient) ResolveImageConfig

func (m *MockGWClient) ResolveImageConfig(ctx context.Context, ref string, opt sourceresolver.Opt) (string, digest.Digest, []byte, error)

func (*MockGWClient) ResolveSourceMetadata

func (m *MockGWClient) ResolveSourceMetadata(ctx context.Context, op *pb.SourceOp, opt sourceresolver.Opt) (*sourceresolver.MetaResponse, error)

func (*MockGWClient) Solve

func (*MockGWClient) Warn

func (m *MockGWClient) Warn(ctx context.Context, dgst digest.Digest, msg string, opts gwclient.WarnOpts) error

type MockReference

type MockReference struct {
	mock.Mock
}

MockReference is a mock of the Reference interface.

func (*MockReference) Evaluate

func (m *MockReference) Evaluate(ctx context.Context) error

func (*MockReference) ReadDir

func (m *MockReference) ReadDir(ctx context.Context, req gwclient.ReadDirRequest) ([]*types.Stat, error)

func (*MockReference) ReadFile

func (m *MockReference) ReadFile(ctx context.Context, req gwclient.ReadRequest) ([]byte, error)

func (*MockReference) StatFile

func (m *MockReference) StatFile(ctx context.Context, req gwclient.StatRequest) (*types.Stat, error)

func (*MockReference) ToState

func (m *MockReference) ToState() (llb.State, error)

Jump to

Keyboard shortcuts

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