Documentation ¶
Index ¶
- type API
- func (_m *API) BuildContent(ctx context.Context, scm source.Source, opts *types.BuildContentOptions) (string, io.Reader, error)
- func (_m *API) BuildRefs(ctx context.Context, opts *types.BuildRefOptions) []string
- func (_m *API) CloseConn() error
- func (_m *API) ExecExitCode(ctx context.Context, ID string, execID string) (int, error)
- func (_m *API) ExecResize(ctx context.Context, execID string, height uint, width uint) error
- func (_m *API) Execute(ctx context.Context, ID string, config *types.ExecConfig) (string, io.ReadCloser, io.ReadCloser, io.WriteCloser, error)
- func (_m *API) GetParams() *types.Params
- func (_m *API) ImageBuild(ctx context.Context, input io.Reader, refs []string, platform string) (io.ReadCloser, error)
- func (_m *API) ImageBuildCachePrune(ctx context.Context, all bool) (uint64, error)
- func (_m *API) ImageBuildFromExist(ctx context.Context, ID string, refs []string, user string) (string, error)
- func (_m *API) ImageList(ctx context.Context, image string) ([]*types.Image, error)
- func (_m *API) ImageLocalDigests(ctx context.Context, image string) ([]string, error)
- func (_m *API) ImagePull(ctx context.Context, ref string, all bool) (io.ReadCloser, error)
- func (_m *API) ImagePush(ctx context.Context, ref string) (io.ReadCloser, error)
- func (_m *API) ImageRemoteDigest(ctx context.Context, image string) (string, error)
- func (_m *API) ImageRemove(ctx context.Context, image string, force bool, prune bool) ([]string, error)
- func (_m *API) ImagesPrune(ctx context.Context) error
- func (_m *API) Info(ctx context.Context) (*types.Info, error)
- func (_m *API) NetworkConnect(ctx context.Context, network string, target string, ipv4 string, ipv6 string) ([]string, error)
- func (_m *API) NetworkDisconnect(ctx context.Context, network string, target string, force bool) error
- func (_m *API) NetworkList(ctx context.Context, drivers []string) ([]*types.Network, error)
- func (_m *API) Ping(ctx context.Context) error
- func (_m *API) RawEngine(ctx context.Context, opts *types.RawEngineOptions) (*types.RawEngineResult, error)
- func (_m *API) VirtualizationAttach(ctx context.Context, ID string, stream bool, openStdin bool) (io.ReadCloser, io.ReadCloser, io.WriteCloser, error)
- func (_m *API) VirtualizationCopyChunkTo(ctx context.Context, ID string, target string, size int64, content io.Reader, ...) error
- func (_m *API) VirtualizationCopyFrom(ctx context.Context, ID string, path string) ([]byte, int, int, int64, error)
- func (_m *API) VirtualizationCopyTo(ctx context.Context, ID string, target string, content []byte, uid int, ...) error
- func (_m *API) VirtualizationCreate(ctx context.Context, opts *types.VirtualizationCreateOptions) (*types.VirtualizationCreated, error)
- func (_m *API) VirtualizationInspect(ctx context.Context, ID string) (*types.VirtualizationInfo, error)
- func (_m *API) VirtualizationLogs(ctx context.Context, opts *types.VirtualizationLogStreamOptions) (io.ReadCloser, io.ReadCloser, error)
- func (_m *API) VirtualizationRemove(ctx context.Context, ID string, volumes bool, force bool) error
- func (_m *API) VirtualizationResize(ctx context.Context, ID string, height uint, width uint) error
- func (_m *API) VirtualizationResume(ctx context.Context, ID string) error
- func (_m *API) VirtualizationStart(ctx context.Context, ID string) error
- func (_m *API) VirtualizationStop(ctx context.Context, ID string, gracefulTimeout time.Duration) error
- func (_m *API) VirtualizationSuspend(ctx context.Context, ID string) error
- func (_m *API) VirtualizationUpdateResource(ctx context.Context, ID string, params resourcetypes.Resources) error
- func (_m *API) VirtualizationWait(ctx context.Context, ID string, state string) (*types.VirtualizationWaitResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
API is an autogenerated mock type for the API type
func NewAPI ¶
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) ExecExitCode ¶
ExecExitCode provides a mock function with given fields: ctx, ID, execID
func (*API) ExecResize ¶
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) 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 ¶
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) ImageLocalDigests ¶
ImageLocalDigests provides a mock function with given fields: ctx, image
func (*API) ImageRemoteDigest ¶
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 ¶
ImagesPrune 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 ¶
NetworkList provides a mock function with given fields: ctx, drivers
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 ¶
VirtualizationRemove provides a mock function with given fields: ctx, ID, volumes, force
func (*API) VirtualizationResize ¶
VirtualizationResize provides a mock function with given fields: ctx, ID, height, width
func (*API) VirtualizationResume ¶
VirtualizationResume provides a mock function with given fields: ctx, ID
func (*API) VirtualizationStart ¶
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 ¶
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