mocks

package
v0.0.0-...-ff909ee Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	mock.Mock
}

API is an autogenerated mock type for the API type

func NewAPI

func NewAPI(t interface {
	mock.TestingT
	Cleanup(func())
}) *API

NewAPI creates a new instance of API. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*API) BuildContent

func (_m *API) BuildContent(ctx context.Context, scm source.Source, opts *types.BuildContentOptions) (string, io.Reader, error)

BuildContent provides a mock function with given fields: ctx, scm, opts

func (*API) BuildRefs

func (_m *API) BuildRefs(ctx context.Context, opts *types.BuildRefOptions) []string

BuildRefs provides a mock function with given fields: ctx, opts

func (*API) CloseConn

func (_m *API) CloseConn() error

CloseConn provides a mock function with given fields:

func (*API) ExecExitCode

func (_m *API) ExecExitCode(ctx context.Context, ID string, execID string) (int, error)

ExecExitCode provides a mock function with given fields: ctx, ID, execID

func (*API) ExecResize

func (_m *API) ExecResize(ctx context.Context, execID string, height uint, width uint) error

ExecResize provides a mock function with given fields: ctx, execID, height, width

func (*API) Execute

func (_m *API) Execute(ctx context.Context, ID string, config *types.ExecConfig) (string, io.ReadCloser, io.ReadCloser, io.WriteCloser, error)

Execute provides a mock function with given fields: ctx, ID, config

func (*API) GetParams

func (_m *API) GetParams() *types.Params

GetParams provides a mock function with given fields:

func (*API) ImageBuild

func (_m *API) ImageBuild(ctx context.Context, input io.Reader, refs []string, platform string) (io.ReadCloser, error)

ImageBuild provides a mock function with given fields: ctx, input, refs, platform

func (*API) ImageBuildCachePrune

func (_m *API) ImageBuildCachePrune(ctx context.Context, all bool) (uint64, error)

ImageBuildCachePrune provides a mock function with given fields: ctx, all

func (*API) ImageBuildFromExist

func (_m *API) ImageBuildFromExist(ctx context.Context, ID string, refs []string, user string) (string, error)

ImageBuildFromExist provides a mock function with given fields: ctx, ID, refs, user

func (*API) ImageList

func (_m *API) ImageList(ctx context.Context, image string) ([]*types.Image, error)

ImageList provides a mock function with given fields: ctx, image

func (*API) ImageLocalDigests

func (_m *API) ImageLocalDigests(ctx context.Context, image string) ([]string, error)

ImageLocalDigests provides a mock function with given fields: ctx, image

func (*API) ImagePull

func (_m *API) ImagePull(ctx context.Context, ref string, all bool) (io.ReadCloser, error)

ImagePull provides a mock function with given fields: ctx, ref, all

func (*API) ImagePush

func (_m *API) ImagePush(ctx context.Context, ref string) (io.ReadCloser, error)

ImagePush provides a mock function with given fields: ctx, ref

func (*API) ImageRemoteDigest

func (_m *API) ImageRemoteDigest(ctx context.Context, image string) (string, error)

ImageRemoteDigest provides a mock function with given fields: ctx, image

func (*API) ImageRemove

func (_m *API) ImageRemove(ctx context.Context, image string, force bool, prune bool) ([]string, error)

ImageRemove provides a mock function with given fields: ctx, image, force, prune

func (*API) ImagesPrune

func (_m *API) ImagesPrune(ctx context.Context) error

ImagesPrune provides a mock function with given fields: ctx

func (*API) Info

func (_m *API) Info(ctx context.Context) (*types.Info, error)

Info provides a mock function with given fields: ctx

func (*API) NetworkConnect

func (_m *API) NetworkConnect(ctx context.Context, network string, target string, ipv4 string, ipv6 string) ([]string, error)

NetworkConnect provides a mock function with given fields: ctx, network, target, ipv4, ipv6

func (*API) NetworkDisconnect

func (_m *API) NetworkDisconnect(ctx context.Context, network string, target string, force bool) error

NetworkDisconnect provides a mock function with given fields: ctx, network, target, force

func (*API) NetworkList

func (_m *API) NetworkList(ctx context.Context, drivers []string) ([]*types.Network, error)

NetworkList provides a mock function with given fields: ctx, drivers

func (*API) Ping

func (_m *API) Ping(ctx context.Context) error

Ping provides a mock function with given fields: ctx

func (*API) RawEngine

func (_m *API) RawEngine(ctx context.Context, opts *types.RawEngineOptions) (*types.RawEngineResult, error)

RawEngine provides a mock function with given fields: ctx, opts

func (*API) VirtualizationAttach

func (_m *API) VirtualizationAttach(ctx context.Context, ID string, stream bool, openStdin bool) (io.ReadCloser, io.ReadCloser, io.WriteCloser, error)

VirtualizationAttach provides a mock function with given fields: ctx, ID, stream, openStdin

func (*API) VirtualizationCopyChunkTo

func (_m *API) VirtualizationCopyChunkTo(ctx context.Context, ID string, target string, size int64, content io.Reader, uid int, gid int, mode int64) error

VirtualizationCopyChunkTo provides a mock function with given fields: ctx, ID, target, size, content, uid, gid, mode

func (*API) VirtualizationCopyFrom

func (_m *API) VirtualizationCopyFrom(ctx context.Context, ID string, path string) ([]byte, int, int, int64, error)

VirtualizationCopyFrom provides a mock function with given fields: ctx, ID, path

func (*API) VirtualizationCopyTo

func (_m *API) VirtualizationCopyTo(ctx context.Context, ID string, target string, content []byte, uid int, gid int, mode int64) error

VirtualizationCopyTo provides a mock function with given fields: ctx, ID, target, content, uid, gid, mode

func (*API) VirtualizationCreate

func (_m *API) VirtualizationCreate(ctx context.Context, opts *types.VirtualizationCreateOptions) (*types.VirtualizationCreated, error)

VirtualizationCreate provides a mock function with given fields: ctx, opts

func (*API) VirtualizationInspect

func (_m *API) VirtualizationInspect(ctx context.Context, ID string) (*types.VirtualizationInfo, error)

VirtualizationInspect provides a mock function with given fields: ctx, ID

func (*API) VirtualizationLogs

func (_m *API) VirtualizationLogs(ctx context.Context, opts *types.VirtualizationLogStreamOptions) (io.ReadCloser, io.ReadCloser, error)

VirtualizationLogs provides a mock function with given fields: ctx, opts

func (*API) VirtualizationRemove

func (_m *API) VirtualizationRemove(ctx context.Context, ID string, volumes bool, force bool) error

VirtualizationRemove provides a mock function with given fields: ctx, ID, volumes, force

func (*API) VirtualizationResize

func (_m *API) VirtualizationResize(ctx context.Context, ID string, height uint, width uint) error

VirtualizationResize provides a mock function with given fields: ctx, ID, height, width

func (*API) VirtualizationResume

func (_m *API) VirtualizationResume(ctx context.Context, ID string) error

VirtualizationResume provides a mock function with given fields: ctx, ID

func (*API) VirtualizationStart

func (_m *API) VirtualizationStart(ctx context.Context, ID string) error

VirtualizationStart provides a mock function with given fields: ctx, ID

func (*API) VirtualizationStop

func (_m *API) VirtualizationStop(ctx context.Context, ID string, gracefulTimeout time.Duration) error

VirtualizationStop provides a mock function with given fields: ctx, ID, gracefulTimeout

func (*API) VirtualizationSuspend

func (_m *API) VirtualizationSuspend(ctx context.Context, ID string) error

VirtualizationSuspend provides a mock function with given fields: ctx, ID

func (*API) VirtualizationUpdateResource

func (_m *API) VirtualizationUpdateResource(ctx context.Context, ID string, params resourcetypes.Resources) error

VirtualizationUpdateResource provides a mock function with given fields: ctx, ID, params

func (*API) VirtualizationWait

func (_m *API) VirtualizationWait(ctx context.Context, ID string, state string) (*types.VirtualizationWaitResult, error)

VirtualizationWait provides a mock function with given fields: ctx, ID, state

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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