Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 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 (_mock *API) BuildContent(ctx context.Context, scm source.Source, opts *types.BuildContentOptions) (string, io.Reader, error)

BuildContent provides a mock function for the type API

func (*API) BuildRefs

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

BuildRefs provides a mock function for the type API

func (*API) CloseConn

func (_mock *API) CloseConn() error

CloseConn provides a mock function for the type API

func (*API) EXPECT

func (_m *API) EXPECT() *API_Expecter

func (*API) ExecExitCode

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

ExecExitCode provides a mock function for the type API

func (*API) ExecResize

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

ExecResize provides a mock function for the type API

func (*API) Execute

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

Execute provides a mock function for the type API

func (*API) GetParams

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

GetParams provides a mock function for the type API

func (*API) ImageBuild

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

ImageBuild provides a mock function for the type API

func (*API) ImageBuildCachePrune

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

ImageBuildCachePrune provides a mock function for the type API

func (*API) ImageBuildFromExist

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

ImageBuildFromExist provides a mock function for the type API

func (*API) ImageList

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

ImageList provides a mock function for the type API

func (*API) ImageLocalDigests

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

ImageLocalDigests provides a mock function for the type API

func (*API) ImagePull

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

ImagePull provides a mock function for the type API

func (*API) ImagePush

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

ImagePush provides a mock function for the type API

func (*API) ImageRemoteDigest

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

ImageRemoteDigest provides a mock function for the type API

func (*API) ImageRemove

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

ImageRemove provides a mock function for the type API

func (*API) ImagesPrune

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

ImagesPrune provides a mock function for the type API

func (*API) Info

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

Info provides a mock function for the type API

func (*API) NetworkConnect

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

NetworkConnect provides a mock function for the type API

func (*API) NetworkDisconnect

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

NetworkDisconnect provides a mock function for the type API

func (*API) NetworkList

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

NetworkList provides a mock function for the type API

func (*API) Ping

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

Ping provides a mock function for the type API

func (*API) RawEngine

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

RawEngine provides a mock function for the type API

func (*API) VerifyNode added in v0.1.4

func (_mock *API) VerifyNode(ctx context.Context) error

VerifyNode provides a mock function for the type API

func (*API) VirtualizationAttach

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

VirtualizationAttach provides a mock function for the type API

func (*API) VirtualizationCopyChunkTo

func (_mock *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 for the type API

func (*API) VirtualizationCopyFrom

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

VirtualizationCopyFrom provides a mock function for the type API

func (*API) VirtualizationCreate

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

VirtualizationCreate provides a mock function for the type API

func (*API) VirtualizationInspect

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

VirtualizationInspect provides a mock function for the type API

func (*API) VirtualizationLogs

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

VirtualizationLogs provides a mock function for the type API

func (*API) VirtualizationRemove

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

VirtualizationRemove provides a mock function for the type API

func (*API) VirtualizationResize

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

VirtualizationResize provides a mock function for the type API

func (*API) VirtualizationResume

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

VirtualizationResume provides a mock function for the type API

func (*API) VirtualizationStart

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

VirtualizationStart provides a mock function for the type API

func (*API) VirtualizationStop

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

VirtualizationStop provides a mock function for the type API

func (*API) VirtualizationSuspend

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

VirtualizationSuspend provides a mock function for the type API

func (*API) VirtualizationUpdateResource

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

VirtualizationUpdateResource provides a mock function for the type API

func (*API) VirtualizationWait

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

VirtualizationWait provides a mock function for the type API

type API_BuildContent_Call

type API_BuildContent_Call struct {
	*mock.Call
}

API_BuildContent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BuildContent'

func (*API_BuildContent_Call) Return

func (_c *API_BuildContent_Call) Return(s string, reader io.Reader, err error) *API_BuildContent_Call

func (*API_BuildContent_Call) Run

func (*API_BuildContent_Call) RunAndReturn

type API_BuildRefs_Call

type API_BuildRefs_Call struct {
	*mock.Call
}

API_BuildRefs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BuildRefs'

func (*API_BuildRefs_Call) Return

func (_c *API_BuildRefs_Call) Return(strings []string) *API_BuildRefs_Call

func (*API_BuildRefs_Call) Run

func (*API_BuildRefs_Call) RunAndReturn

func (_c *API_BuildRefs_Call) RunAndReturn(run func(ctx context.Context, opts *types.BuildRefOptions) []string) *API_BuildRefs_Call

type API_CloseConn_Call

type API_CloseConn_Call struct {
	*mock.Call
}

API_CloseConn_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CloseConn'

func (*API_CloseConn_Call) Return

func (_c *API_CloseConn_Call) Return(err error) *API_CloseConn_Call

func (*API_CloseConn_Call) Run

func (_c *API_CloseConn_Call) Run(run func()) *API_CloseConn_Call

func (*API_CloseConn_Call) RunAndReturn

func (_c *API_CloseConn_Call) RunAndReturn(run func() error) *API_CloseConn_Call

type API_ExecExitCode_Call

type API_ExecExitCode_Call struct {
	*mock.Call
}

API_ExecExitCode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExecExitCode'

func (*API_ExecExitCode_Call) Return

func (*API_ExecExitCode_Call) Run

func (_c *API_ExecExitCode_Call) Run(run func(ctx context.Context, ID string, execID string)) *API_ExecExitCode_Call

func (*API_ExecExitCode_Call) RunAndReturn

func (_c *API_ExecExitCode_Call) RunAndReturn(run func(ctx context.Context, ID string, execID string) (int, error)) *API_ExecExitCode_Call

type API_ExecResize_Call

type API_ExecResize_Call struct {
	*mock.Call
}

API_ExecResize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExecResize'

func (*API_ExecResize_Call) Return

func (*API_ExecResize_Call) Run

func (_c *API_ExecResize_Call) Run(run func(ctx context.Context, execID string, height uint, width uint)) *API_ExecResize_Call

func (*API_ExecResize_Call) RunAndReturn

func (_c *API_ExecResize_Call) RunAndReturn(run func(ctx context.Context, execID string, height uint, width uint) error) *API_ExecResize_Call

type API_Execute_Call

type API_Execute_Call struct {
	*mock.Call
}

API_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'

func (*API_Execute_Call) Return

func (_c *API_Execute_Call) Return(execID string, stdout io.ReadCloser, stderr io.ReadCloser, stdin io.WriteCloser, err error) *API_Execute_Call

func (*API_Execute_Call) Run

func (_c *API_Execute_Call) Run(run func(ctx context.Context, ID string, config *types.ExecConfig)) *API_Execute_Call

func (*API_Execute_Call) RunAndReturn

type API_Expecter

type API_Expecter struct {
	// contains filtered or unexported fields
}

func (*API_Expecter) BuildContent

func (_e *API_Expecter) BuildContent(ctx any, scm any, opts any) *API_BuildContent_Call

BuildContent is a helper method to define mock.On call

  • ctx context.Context
  • scm source.Source
  • opts *types.BuildContentOptions

func (*API_Expecter) BuildRefs

func (_e *API_Expecter) BuildRefs(ctx any, opts any) *API_BuildRefs_Call

BuildRefs is a helper method to define mock.On call

  • ctx context.Context
  • opts *types.BuildRefOptions

func (*API_Expecter) CloseConn

func (_e *API_Expecter) CloseConn() *API_CloseConn_Call

CloseConn is a helper method to define mock.On call

func (*API_Expecter) ExecExitCode

func (_e *API_Expecter) ExecExitCode(ctx any, ID any, execID any) *API_ExecExitCode_Call

ExecExitCode is a helper method to define mock.On call

  • ctx context.Context
  • ID string
  • execID string

func (*API_Expecter) ExecResize

func (_e *API_Expecter) ExecResize(ctx any, execID any, height any, width any) *API_ExecResize_Call

ExecResize is a helper method to define mock.On call

  • ctx context.Context
  • execID string
  • height uint
  • width uint

func (*API_Expecter) Execute

func (_e *API_Expecter) Execute(ctx any, ID any, config any) *API_Execute_Call

Execute is a helper method to define mock.On call

  • ctx context.Context
  • ID string
  • config *types.ExecConfig

func (*API_Expecter) GetParams

func (_e *API_Expecter) GetParams() *API_GetParams_Call

GetParams is a helper method to define mock.On call

func (*API_Expecter) ImageBuild

func (_e *API_Expecter) ImageBuild(ctx any, input any, refs any, platform any) *API_ImageBuild_Call

ImageBuild is a helper method to define mock.On call

  • ctx context.Context
  • input io.Reader
  • refs []string
  • platform string

func (*API_Expecter) ImageBuildCachePrune

func (_e *API_Expecter) ImageBuildCachePrune(ctx any, all any) *API_ImageBuildCachePrune_Call

ImageBuildCachePrune is a helper method to define mock.On call

  • ctx context.Context
  • all bool

func (*API_Expecter) ImageBuildFromExist

func (_e *API_Expecter) ImageBuildFromExist(ctx any, ID any, refs any, user any) *API_ImageBuildFromExist_Call

ImageBuildFromExist is a helper method to define mock.On call

  • ctx context.Context
  • ID string
  • refs []string
  • user string

func (*API_Expecter) ImageList

func (_e *API_Expecter) ImageList(ctx any, image any) *API_ImageList_Call

ImageList is a helper method to define mock.On call

  • ctx context.Context
  • image string

func (*API_Expecter) ImageLocalDigests

func (_e *API_Expecter) ImageLocalDigests(ctx any, image any) *API_ImageLocalDigests_Call

ImageLocalDigests is a helper method to define mock.On call

  • ctx context.Context
  • image string

func (*API_Expecter) ImagePull

func (_e *API_Expecter) ImagePull(ctx any, ref any, all any) *API_ImagePull_Call

ImagePull is a helper method to define mock.On call

  • ctx context.Context
  • ref string
  • all bool

func (*API_Expecter) ImagePush

func (_e *API_Expecter) ImagePush(ctx any, ref any) *API_ImagePush_Call

ImagePush is a helper method to define mock.On call

  • ctx context.Context
  • ref string

func (*API_Expecter) ImageRemoteDigest

func (_e *API_Expecter) ImageRemoteDigest(ctx any, image any) *API_ImageRemoteDigest_Call

ImageRemoteDigest is a helper method to define mock.On call

  • ctx context.Context
  • image string

func (*API_Expecter) ImageRemove

func (_e *API_Expecter) ImageRemove(ctx any, image any, force any, prune any) *API_ImageRemove_Call

ImageRemove is a helper method to define mock.On call

  • ctx context.Context
  • image string
  • force bool
  • prune bool

func (*API_Expecter) ImagesPrune

func (_e *API_Expecter) ImagesPrune(ctx any) *API_ImagesPrune_Call

ImagesPrune is a helper method to define mock.On call

  • ctx context.Context

func (*API_Expecter) Info

func (_e *API_Expecter) Info(ctx any) *API_Info_Call

Info is a helper method to define mock.On call

  • ctx context.Context

func (*API_Expecter) NetworkConnect

func (_e *API_Expecter) NetworkConnect(ctx any, network any, target any, ipv4 any, ipv6 any) *API_NetworkConnect_Call

NetworkConnect is a helper method to define mock.On call

  • ctx context.Context
  • network string
  • target string
  • ipv4 string
  • ipv6 string

func (*API_Expecter) NetworkDisconnect

func (_e *API_Expecter) NetworkDisconnect(ctx any, network any, target any, force any) *API_NetworkDisconnect_Call

NetworkDisconnect is a helper method to define mock.On call

  • ctx context.Context
  • network string
  • target string
  • force bool

func (*API_Expecter) NetworkList

func (_e *API_Expecter) NetworkList(ctx any, drivers any) *API_NetworkList_Call

NetworkList is a helper method to define mock.On call

  • ctx context.Context
  • drivers []string

func (*API_Expecter) Ping

func (_e *API_Expecter) Ping(ctx any) *API_Ping_Call

Ping is a helper method to define mock.On call

  • ctx context.Context

func (*API_Expecter) RawEngine

func (_e *API_Expecter) RawEngine(ctx any, opts any) *API_RawEngine_Call

RawEngine is a helper method to define mock.On call

  • ctx context.Context
  • opts *types.RawEngineOptions

func (*API_Expecter) VerifyNode added in v0.1.4

func (_e *API_Expecter) VerifyNode(ctx any) *API_VerifyNode_Call

VerifyNode is a helper method to define mock.On call

  • ctx context.Context

func (*API_Expecter) VirtualizationAttach

func (_e *API_Expecter) VirtualizationAttach(ctx any, ID any, stream any, openStdin any) *API_VirtualizationAttach_Call

VirtualizationAttach is a helper method to define mock.On call

  • ctx context.Context
  • ID string
  • stream bool
  • openStdin bool

func (*API_Expecter) VirtualizationCopyChunkTo

func (_e *API_Expecter) VirtualizationCopyChunkTo(ctx any, ID any, target any, size any, content any, uid any, gid any, mode any) *API_VirtualizationCopyChunkTo_Call

VirtualizationCopyChunkTo is a helper method to define mock.On call

  • ctx context.Context
  • ID string
  • target string
  • size int64
  • content io.Reader
  • uid int
  • gid int
  • mode int64

func (*API_Expecter) VirtualizationCopyFrom

func (_e *API_Expecter) VirtualizationCopyFrom(ctx any, ID any, path any) *API_VirtualizationCopyFrom_Call

VirtualizationCopyFrom is a helper method to define mock.On call

  • ctx context.Context
  • ID string
  • path string

func (*API_Expecter) VirtualizationCreate

func (_e *API_Expecter) VirtualizationCreate(ctx any, opts any) *API_VirtualizationCreate_Call

VirtualizationCreate is a helper method to define mock.On call

  • ctx context.Context
  • opts *types.VirtualizationCreateOptions

func (*API_Expecter) VirtualizationInspect

func (_e *API_Expecter) VirtualizationInspect(ctx any, ID any) *API_VirtualizationInspect_Call

VirtualizationInspect is a helper method to define mock.On call

  • ctx context.Context
  • ID string

func (*API_Expecter) VirtualizationLogs

func (_e *API_Expecter) VirtualizationLogs(ctx any, opts any) *API_VirtualizationLogs_Call

VirtualizationLogs is a helper method to define mock.On call

  • ctx context.Context
  • opts *types.VirtualizationLogStreamOptions

func (*API_Expecter) VirtualizationRemove

func (_e *API_Expecter) VirtualizationRemove(ctx any, ID any, volumes any, force any) *API_VirtualizationRemove_Call

VirtualizationRemove is a helper method to define mock.On call

  • ctx context.Context
  • ID string
  • volumes bool
  • force bool

func (*API_Expecter) VirtualizationResize

func (_e *API_Expecter) VirtualizationResize(ctx any, ID any, height any, width any) *API_VirtualizationResize_Call

VirtualizationResize is a helper method to define mock.On call

  • ctx context.Context
  • ID string
  • height uint
  • width uint

func (*API_Expecter) VirtualizationResume

func (_e *API_Expecter) VirtualizationResume(ctx any, ID any) *API_VirtualizationResume_Call

VirtualizationResume is a helper method to define mock.On call

  • ctx context.Context
  • ID string

func (*API_Expecter) VirtualizationStart

func (_e *API_Expecter) VirtualizationStart(ctx any, ID any) *API_VirtualizationStart_Call

VirtualizationStart is a helper method to define mock.On call

  • ctx context.Context
  • ID string

func (*API_Expecter) VirtualizationStop

func (_e *API_Expecter) VirtualizationStop(ctx any, ID any, gracefulTimeout any) *API_VirtualizationStop_Call

VirtualizationStop is a helper method to define mock.On call

  • ctx context.Context
  • ID string
  • gracefulTimeout time.Duration

func (*API_Expecter) VirtualizationSuspend

func (_e *API_Expecter) VirtualizationSuspend(ctx any, ID any) *API_VirtualizationSuspend_Call

VirtualizationSuspend is a helper method to define mock.On call

  • ctx context.Context
  • ID string

func (*API_Expecter) VirtualizationUpdateResource

func (_e *API_Expecter) VirtualizationUpdateResource(ctx any, ID any, params any) *API_VirtualizationUpdateResource_Call

VirtualizationUpdateResource is a helper method to define mock.On call

  • ctx context.Context
  • ID string
  • params types0.Resources

func (*API_Expecter) VirtualizationWait

func (_e *API_Expecter) VirtualizationWait(ctx any, ID any, state any) *API_VirtualizationWait_Call

VirtualizationWait is a helper method to define mock.On call

  • ctx context.Context
  • ID string
  • state string

type API_GetParams_Call

type API_GetParams_Call struct {
	*mock.Call
}

API_GetParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetParams'

func (*API_GetParams_Call) Return

func (_c *API_GetParams_Call) Return(params *types.Params) *API_GetParams_Call

func (*API_GetParams_Call) Run

func (_c *API_GetParams_Call) Run(run func()) *API_GetParams_Call

func (*API_GetParams_Call) RunAndReturn

func (_c *API_GetParams_Call) RunAndReturn(run func() *types.Params) *API_GetParams_Call

type API_ImageBuildCachePrune_Call

type API_ImageBuildCachePrune_Call struct {
	*mock.Call
}

API_ImageBuildCachePrune_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ImageBuildCachePrune'

func (*API_ImageBuildCachePrune_Call) Return

func (*API_ImageBuildCachePrune_Call) Run

func (*API_ImageBuildCachePrune_Call) RunAndReturn

type API_ImageBuildFromExist_Call

type API_ImageBuildFromExist_Call struct {
	*mock.Call
}

API_ImageBuildFromExist_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ImageBuildFromExist'

func (*API_ImageBuildFromExist_Call) Return

func (*API_ImageBuildFromExist_Call) Run

func (*API_ImageBuildFromExist_Call) RunAndReturn

func (_c *API_ImageBuildFromExist_Call) RunAndReturn(run func(ctx context.Context, ID string, refs []string, user string) (string, error)) *API_ImageBuildFromExist_Call

type API_ImageBuild_Call

type API_ImageBuild_Call struct {
	*mock.Call
}

API_ImageBuild_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ImageBuild'

func (*API_ImageBuild_Call) Return

func (_c *API_ImageBuild_Call) Return(readCloser io.ReadCloser, err error) *API_ImageBuild_Call

func (*API_ImageBuild_Call) Run

func (_c *API_ImageBuild_Call) Run(run func(ctx context.Context, input io.Reader, refs []string, platform string)) *API_ImageBuild_Call

func (*API_ImageBuild_Call) RunAndReturn

func (_c *API_ImageBuild_Call) RunAndReturn(run func(ctx context.Context, input io.Reader, refs []string, platform string) (io.ReadCloser, error)) *API_ImageBuild_Call

type API_ImageList_Call

type API_ImageList_Call struct {
	*mock.Call
}

API_ImageList_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ImageList'

func (*API_ImageList_Call) Return

func (_c *API_ImageList_Call) Return(images []*types.Image, err error) *API_ImageList_Call

func (*API_ImageList_Call) Run

func (_c *API_ImageList_Call) Run(run func(ctx context.Context, image string)) *API_ImageList_Call

func (*API_ImageList_Call) RunAndReturn

func (_c *API_ImageList_Call) RunAndReturn(run func(ctx context.Context, image string) ([]*types.Image, error)) *API_ImageList_Call

type API_ImageLocalDigests_Call

type API_ImageLocalDigests_Call struct {
	*mock.Call
}

API_ImageLocalDigests_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ImageLocalDigests'

func (*API_ImageLocalDigests_Call) Return

func (*API_ImageLocalDigests_Call) Run

func (*API_ImageLocalDigests_Call) RunAndReturn

func (_c *API_ImageLocalDigests_Call) RunAndReturn(run func(ctx context.Context, image string) ([]string, error)) *API_ImageLocalDigests_Call

type API_ImagePull_Call

type API_ImagePull_Call struct {
	*mock.Call
}

API_ImagePull_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ImagePull'

func (*API_ImagePull_Call) Return

func (_c *API_ImagePull_Call) Return(readCloser io.ReadCloser, err error) *API_ImagePull_Call

func (*API_ImagePull_Call) Run

func (_c *API_ImagePull_Call) Run(run func(ctx context.Context, ref string, all bool)) *API_ImagePull_Call

func (*API_ImagePull_Call) RunAndReturn

func (_c *API_ImagePull_Call) RunAndReturn(run func(ctx context.Context, ref string, all bool) (io.ReadCloser, error)) *API_ImagePull_Call

type API_ImagePush_Call

type API_ImagePush_Call struct {
	*mock.Call
}

API_ImagePush_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ImagePush'

func (*API_ImagePush_Call) Return

func (_c *API_ImagePush_Call) Return(readCloser io.ReadCloser, err error) *API_ImagePush_Call

func (*API_ImagePush_Call) Run

func (_c *API_ImagePush_Call) Run(run func(ctx context.Context, ref string)) *API_ImagePush_Call

func (*API_ImagePush_Call) RunAndReturn

func (_c *API_ImagePush_Call) RunAndReturn(run func(ctx context.Context, ref string) (io.ReadCloser, error)) *API_ImagePush_Call

type API_ImageRemoteDigest_Call

type API_ImageRemoteDigest_Call struct {
	*mock.Call
}

API_ImageRemoteDigest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ImageRemoteDigest'

func (*API_ImageRemoteDigest_Call) Return

func (*API_ImageRemoteDigest_Call) Run

func (*API_ImageRemoteDigest_Call) RunAndReturn

func (_c *API_ImageRemoteDigest_Call) RunAndReturn(run func(ctx context.Context, image string) (string, error)) *API_ImageRemoteDigest_Call

type API_ImageRemove_Call

type API_ImageRemove_Call struct {
	*mock.Call
}

API_ImageRemove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ImageRemove'

func (*API_ImageRemove_Call) Return

func (_c *API_ImageRemove_Call) Return(strings []string, err error) *API_ImageRemove_Call

func (*API_ImageRemove_Call) Run

func (_c *API_ImageRemove_Call) Run(run func(ctx context.Context, image string, force bool, prune bool)) *API_ImageRemove_Call

func (*API_ImageRemove_Call) RunAndReturn

func (_c *API_ImageRemove_Call) RunAndReturn(run func(ctx context.Context, image string, force bool, prune bool) ([]string, error)) *API_ImageRemove_Call

type API_ImagesPrune_Call

type API_ImagesPrune_Call struct {
	*mock.Call
}

API_ImagesPrune_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ImagesPrune'

func (*API_ImagesPrune_Call) Return

func (*API_ImagesPrune_Call) Run

func (_c *API_ImagesPrune_Call) Run(run func(ctx context.Context)) *API_ImagesPrune_Call

func (*API_ImagesPrune_Call) RunAndReturn

func (_c *API_ImagesPrune_Call) RunAndReturn(run func(ctx context.Context) error) *API_ImagesPrune_Call

type API_Info_Call

type API_Info_Call struct {
	*mock.Call
}

API_Info_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Info'

func (*API_Info_Call) Return

func (_c *API_Info_Call) Return(info *types.Info, err error) *API_Info_Call

func (*API_Info_Call) Run

func (_c *API_Info_Call) Run(run func(ctx context.Context)) *API_Info_Call

func (*API_Info_Call) RunAndReturn

func (_c *API_Info_Call) RunAndReturn(run func(ctx context.Context) (*types.Info, error)) *API_Info_Call

type API_NetworkConnect_Call

type API_NetworkConnect_Call struct {
	*mock.Call
}

API_NetworkConnect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NetworkConnect'

func (*API_NetworkConnect_Call) Return

func (_c *API_NetworkConnect_Call) Return(strings []string, err error) *API_NetworkConnect_Call

func (*API_NetworkConnect_Call) Run

func (_c *API_NetworkConnect_Call) Run(run func(ctx context.Context, network string, target string, ipv4 string, ipv6 string)) *API_NetworkConnect_Call

func (*API_NetworkConnect_Call) RunAndReturn

func (_c *API_NetworkConnect_Call) RunAndReturn(run func(ctx context.Context, network string, target string, ipv4 string, ipv6 string) ([]string, error)) *API_NetworkConnect_Call

type API_NetworkDisconnect_Call

type API_NetworkDisconnect_Call struct {
	*mock.Call
}

API_NetworkDisconnect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NetworkDisconnect'

func (*API_NetworkDisconnect_Call) Return

func (*API_NetworkDisconnect_Call) Run

func (_c *API_NetworkDisconnect_Call) Run(run func(ctx context.Context, network string, target string, force bool)) *API_NetworkDisconnect_Call

func (*API_NetworkDisconnect_Call) RunAndReturn

func (_c *API_NetworkDisconnect_Call) RunAndReturn(run func(ctx context.Context, network string, target string, force bool) error) *API_NetworkDisconnect_Call

type API_NetworkList_Call

type API_NetworkList_Call struct {
	*mock.Call
}

API_NetworkList_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NetworkList'

func (*API_NetworkList_Call) Return

func (_c *API_NetworkList_Call) Return(networks []*types.Network, err error) *API_NetworkList_Call

func (*API_NetworkList_Call) Run

func (_c *API_NetworkList_Call) Run(run func(ctx context.Context, drivers []string)) *API_NetworkList_Call

func (*API_NetworkList_Call) RunAndReturn

func (_c *API_NetworkList_Call) RunAndReturn(run func(ctx context.Context, drivers []string) ([]*types.Network, error)) *API_NetworkList_Call

type API_Ping_Call

type API_Ping_Call struct {
	*mock.Call
}

API_Ping_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ping'

func (*API_Ping_Call) Return

func (_c *API_Ping_Call) Return(err error) *API_Ping_Call

func (*API_Ping_Call) Run

func (_c *API_Ping_Call) Run(run func(ctx context.Context)) *API_Ping_Call

func (*API_Ping_Call) RunAndReturn

func (_c *API_Ping_Call) RunAndReturn(run func(ctx context.Context) error) *API_Ping_Call

type API_RawEngine_Call

type API_RawEngine_Call struct {
	*mock.Call
}

API_RawEngine_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RawEngine'

func (*API_RawEngine_Call) Return

func (_c *API_RawEngine_Call) Return(rawEngineResult *types.RawEngineResult, err error) *API_RawEngine_Call

func (*API_RawEngine_Call) Run

func (*API_RawEngine_Call) RunAndReturn

type API_VerifyNode_Call added in v0.1.4

type API_VerifyNode_Call struct {
	*mock.Call
}

API_VerifyNode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VerifyNode'

func (*API_VerifyNode_Call) Return added in v0.1.4

func (*API_VerifyNode_Call) Run added in v0.1.4

func (_c *API_VerifyNode_Call) Run(run func(ctx context.Context)) *API_VerifyNode_Call

func (*API_VerifyNode_Call) RunAndReturn added in v0.1.4

func (_c *API_VerifyNode_Call) RunAndReturn(run func(ctx context.Context) error) *API_VerifyNode_Call

type API_VirtualizationAttach_Call

type API_VirtualizationAttach_Call struct {
	*mock.Call
}

API_VirtualizationAttach_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VirtualizationAttach'

func (*API_VirtualizationAttach_Call) Return

func (*API_VirtualizationAttach_Call) Run

func (_c *API_VirtualizationAttach_Call) Run(run func(ctx context.Context, ID string, stream bool, openStdin bool)) *API_VirtualizationAttach_Call

func (*API_VirtualizationAttach_Call) RunAndReturn

type API_VirtualizationCopyChunkTo_Call

type API_VirtualizationCopyChunkTo_Call struct {
	*mock.Call
}

API_VirtualizationCopyChunkTo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VirtualizationCopyChunkTo'

func (*API_VirtualizationCopyChunkTo_Call) Return

func (*API_VirtualizationCopyChunkTo_Call) Run

func (_c *API_VirtualizationCopyChunkTo_Call) Run(run func(ctx context.Context, ID string, target string, size int64, content io.Reader, uid int, gid int, mode int64)) *API_VirtualizationCopyChunkTo_Call

func (*API_VirtualizationCopyChunkTo_Call) RunAndReturn

func (_c *API_VirtualizationCopyChunkTo_Call) RunAndReturn(run func(ctx context.Context, ID string, target string, size int64, content io.Reader, uid int, gid int, mode int64) error) *API_VirtualizationCopyChunkTo_Call

type API_VirtualizationCopyFrom_Call

type API_VirtualizationCopyFrom_Call struct {
	*mock.Call
}

API_VirtualizationCopyFrom_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VirtualizationCopyFrom'

func (*API_VirtualizationCopyFrom_Call) Return

func (_c *API_VirtualizationCopyFrom_Call) Return(content []byte, uid int, gid int, mode int64, err error) *API_VirtualizationCopyFrom_Call

func (*API_VirtualizationCopyFrom_Call) Run

func (*API_VirtualizationCopyFrom_Call) RunAndReturn

type API_VirtualizationCreate_Call

type API_VirtualizationCreate_Call struct {
	*mock.Call
}

API_VirtualizationCreate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VirtualizationCreate'

func (*API_VirtualizationCreate_Call) Return

func (*API_VirtualizationCreate_Call) Run

func (*API_VirtualizationCreate_Call) RunAndReturn

type API_VirtualizationInspect_Call

type API_VirtualizationInspect_Call struct {
	*mock.Call
}

API_VirtualizationInspect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VirtualizationInspect'

func (*API_VirtualizationInspect_Call) Return

func (*API_VirtualizationInspect_Call) Run

func (*API_VirtualizationInspect_Call) RunAndReturn

type API_VirtualizationLogs_Call

type API_VirtualizationLogs_Call struct {
	*mock.Call
}

API_VirtualizationLogs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VirtualizationLogs'

func (*API_VirtualizationLogs_Call) Return

func (*API_VirtualizationLogs_Call) Run

func (*API_VirtualizationLogs_Call) RunAndReturn

type API_VirtualizationRemove_Call

type API_VirtualizationRemove_Call struct {
	*mock.Call
}

API_VirtualizationRemove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VirtualizationRemove'

func (*API_VirtualizationRemove_Call) Return

func (*API_VirtualizationRemove_Call) Run

func (_c *API_VirtualizationRemove_Call) Run(run func(ctx context.Context, ID string, volumes bool, force bool)) *API_VirtualizationRemove_Call

func (*API_VirtualizationRemove_Call) RunAndReturn

func (_c *API_VirtualizationRemove_Call) RunAndReturn(run func(ctx context.Context, ID string, volumes bool, force bool) error) *API_VirtualizationRemove_Call

type API_VirtualizationResize_Call

type API_VirtualizationResize_Call struct {
	*mock.Call
}

API_VirtualizationResize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VirtualizationResize'

func (*API_VirtualizationResize_Call) Return

func (*API_VirtualizationResize_Call) Run

func (_c *API_VirtualizationResize_Call) Run(run func(ctx context.Context, ID string, height uint, width uint)) *API_VirtualizationResize_Call

func (*API_VirtualizationResize_Call) RunAndReturn

func (_c *API_VirtualizationResize_Call) RunAndReturn(run func(ctx context.Context, ID string, height uint, width uint) error) *API_VirtualizationResize_Call

type API_VirtualizationResume_Call

type API_VirtualizationResume_Call struct {
	*mock.Call
}

API_VirtualizationResume_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VirtualizationResume'

func (*API_VirtualizationResume_Call) Return

func (*API_VirtualizationResume_Call) Run

func (*API_VirtualizationResume_Call) RunAndReturn

type API_VirtualizationStart_Call

type API_VirtualizationStart_Call struct {
	*mock.Call
}

API_VirtualizationStart_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VirtualizationStart'

func (*API_VirtualizationStart_Call) Return

func (*API_VirtualizationStart_Call) Run

func (*API_VirtualizationStart_Call) RunAndReturn

type API_VirtualizationStop_Call

type API_VirtualizationStop_Call struct {
	*mock.Call
}

API_VirtualizationStop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VirtualizationStop'

func (*API_VirtualizationStop_Call) Return

func (*API_VirtualizationStop_Call) Run

func (_c *API_VirtualizationStop_Call) Run(run func(ctx context.Context, ID string, gracefulTimeout time.Duration)) *API_VirtualizationStop_Call

func (*API_VirtualizationStop_Call) RunAndReturn

func (_c *API_VirtualizationStop_Call) RunAndReturn(run func(ctx context.Context, ID string, gracefulTimeout time.Duration) error) *API_VirtualizationStop_Call

type API_VirtualizationSuspend_Call

type API_VirtualizationSuspend_Call struct {
	*mock.Call
}

API_VirtualizationSuspend_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VirtualizationSuspend'

func (*API_VirtualizationSuspend_Call) Return

func (*API_VirtualizationSuspend_Call) Run

func (*API_VirtualizationSuspend_Call) RunAndReturn

type API_VirtualizationUpdateResource_Call

type API_VirtualizationUpdateResource_Call struct {
	*mock.Call
}

API_VirtualizationUpdateResource_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VirtualizationUpdateResource'

func (*API_VirtualizationUpdateResource_Call) Return

func (*API_VirtualizationUpdateResource_Call) Run

func (*API_VirtualizationUpdateResource_Call) RunAndReturn

type API_VirtualizationWait_Call

type API_VirtualizationWait_Call struct {
	*mock.Call
}

API_VirtualizationWait_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VirtualizationWait'

func (*API_VirtualizationWait_Call) Return

func (*API_VirtualizationWait_Call) Run

func (*API_VirtualizationWait_Call) RunAndReturn

Jump to

Keyboard shortcuts

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