mocks

package
v0.0.2-0...-4ce78c8 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: Apache-2.0, Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditClient

type AuditClient struct {
	mock.Mock
}

AuditClient is an autogenerated mock type for the AuditClient type

func (*AuditClient) Close

func (_m *AuditClient) Close() error

Close provides a mock function with given fields:

func (*AuditClient) GetFileWatchRules

func (_m *AuditClient) GetFileWatchRules() ([]*rule.FileWatchRule, error)

GetFileWatchRules provides a mock function with given fields:

type Builder

type Builder struct {
	mock.Mock
}

Builder is an autogenerated mock type for the Builder type

func (*Builder) ChecksFromFile

func (_m *Builder) ChecksFromFile(file string, onCheck compliance.CheckVisitor) error

ChecksFromFile provides a mock function with given fields: file, onCheck

func (*Builder) Close

func (_m *Builder) Close() error

Close provides a mock function with given fields:

func (*Builder) GetCheckStatus

func (_m *Builder) GetCheckStatus() compliance.CheckStatusList

GetCheckStatus provides a mock function with given fields:

type Clients

type Clients struct {
	mock.Mock
}

Clients is an autogenerated mock type for the Clients type

func (*Clients) AuditClient

func (_m *Clients) AuditClient() env.AuditClient

AuditClient provides a mock function with given fields:

func (*Clients) DockerClient

func (_m *Clients) DockerClient() env.DockerClient

DockerClient provides a mock function with given fields:

func (*Clients) KubeClient

func (_m *Clients) KubeClient() env.KubeClient

KubeClient provides a mock function with given fields:

type Configuration

type Configuration struct {
	mock.Mock
}

Configuration is an autogenerated mock type for the Configuration type

func (*Configuration) EtcGroupPath

func (_m *Configuration) EtcGroupPath() string

EtcGroupPath provides a mock function with given fields:

func (*Configuration) EvaluateFromCache

func (_m *Configuration) EvaluateFromCache(e eval.Evaluatable) (interface{}, error)

EvaluateFromCache provides a mock function with given fields: e

func (*Configuration) Hostname

func (_m *Configuration) Hostname() string

Hostname provides a mock function with given fields:

func (*Configuration) IsLeader

func (_m *Configuration) IsLeader() bool

IsLeader provides a mock function with given fields:

func (*Configuration) NormalizeToHostRoot

func (_m *Configuration) NormalizeToHostRoot(path string) string

NormalizeToHostRoot provides a mock function with given fields: path

func (*Configuration) RelativeToHostRoot

func (_m *Configuration) RelativeToHostRoot(path string) string

RelativeToHostRoot provides a mock function with given fields: path

type DockerClient

type DockerClient struct {
	mock.Mock
}

DockerClient is an autogenerated mock type for the DockerClient type

func (*DockerClient) BuildCachePrune

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

func (*DockerClient) BuildCancel

func (_m *DockerClient) BuildCancel(ctx context.Context, id string) error

BuildCancel provides a mock function with given fields: ctx, id

func (*DockerClient) Close

func (_m *DockerClient) Close() error

Close provides a mock function with given fields:

func (*DockerClient) ConfigCreate

func (_m *DockerClient) ConfigCreate(ctx context.Context, config swarm.ConfigSpec) (types.ConfigCreateResponse, error)

ConfigCreate provides a mock function with given fields: ctx, config

func (*DockerClient) ConfigInspectWithRaw

func (_m *DockerClient) ConfigInspectWithRaw(ctx context.Context, name string) (swarm.Config, []byte, error)

ConfigInspectWithRaw provides a mock function with given fields: ctx, name

func (*DockerClient) ConfigList

func (_m *DockerClient) ConfigList(ctx context.Context, options types.ConfigListOptions) ([]swarm.Config, error)

ConfigList provides a mock function with given fields: ctx, options

func (*DockerClient) ConfigRemove

func (_m *DockerClient) ConfigRemove(ctx context.Context, id string) error

ConfigRemove provides a mock function with given fields: ctx, id

func (*DockerClient) ConfigUpdate

func (_m *DockerClient) ConfigUpdate(ctx context.Context, id string, version swarm.Version, config swarm.ConfigSpec) error

ConfigUpdate provides a mock function with given fields: ctx, id, version, config

func (*DockerClient) ContainerAttach

func (_m *DockerClient) ContainerAttach(ctx context.Context, _a1 string, options types.ContainerAttachOptions) (types.HijackedResponse, error)

ContainerAttach provides a mock function with given fields: ctx, _a1, options

func (*DockerClient) ContainerCommit

func (_m *DockerClient) ContainerCommit(ctx context.Context, _a1 string, options types.ContainerCommitOptions) (types.IDResponse, error)

ContainerCommit provides a mock function with given fields: ctx, _a1, options

func (*DockerClient) ContainerCreate

func (_m *DockerClient) ContainerCreate(ctx context.Context, config *container.Config, hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig, containerName string) (container.ContainerCreateCreatedBody, error)

ContainerCreate provides a mock function with given fields: ctx, config, hostConfig, networkingConfig, containerName

func (*DockerClient) ContainerDiff

ContainerDiff provides a mock function with given fields: ctx, _a1

func (*DockerClient) ContainerExecAttach

func (_m *DockerClient) ContainerExecAttach(ctx context.Context, execID string, config types.ExecStartCheck) (types.HijackedResponse, error)

ContainerExecAttach provides a mock function with given fields: ctx, execID, config

func (*DockerClient) ContainerExecCreate

func (_m *DockerClient) ContainerExecCreate(ctx context.Context, _a1 string, config types.ExecConfig) (types.IDResponse, error)

ContainerExecCreate provides a mock function with given fields: ctx, _a1, config

func (*DockerClient) ContainerExecInspect

func (_m *DockerClient) ContainerExecInspect(ctx context.Context, execID string) (types.ContainerExecInspect, error)

ContainerExecInspect provides a mock function with given fields: ctx, execID

func (*DockerClient) ContainerExecResize

func (_m *DockerClient) ContainerExecResize(ctx context.Context, execID string, options types.ResizeOptions) error

ContainerExecResize provides a mock function with given fields: ctx, execID, options

func (*DockerClient) ContainerExecStart

func (_m *DockerClient) ContainerExecStart(ctx context.Context, execID string, config types.ExecStartCheck) error

ContainerExecStart provides a mock function with given fields: ctx, execID, config

func (*DockerClient) ContainerExport

func (_m *DockerClient) ContainerExport(ctx context.Context, _a1 string) (io.ReadCloser, error)

ContainerExport provides a mock function with given fields: ctx, _a1

func (*DockerClient) ContainerInspect

func (_m *DockerClient) ContainerInspect(ctx context.Context, _a1 string) (types.ContainerJSON, error)

ContainerInspect provides a mock function with given fields: ctx, _a1

func (*DockerClient) ContainerInspectWithRaw

func (_m *DockerClient) ContainerInspectWithRaw(ctx context.Context, _a1 string, getSize bool) (types.ContainerJSON, []byte, error)

ContainerInspectWithRaw provides a mock function with given fields: ctx, _a1, getSize

func (*DockerClient) ContainerKill

func (_m *DockerClient) ContainerKill(ctx context.Context, _a1 string, signal string) error

ContainerKill provides a mock function with given fields: ctx, _a1, signal

func (*DockerClient) ContainerList

func (_m *DockerClient) ContainerList(ctx context.Context, options types.ContainerListOptions) ([]types.Container, error)

ContainerList provides a mock function with given fields: ctx, options

func (*DockerClient) ContainerLogs

func (_m *DockerClient) ContainerLogs(ctx context.Context, _a1 string, options types.ContainerLogsOptions) (io.ReadCloser, error)

ContainerLogs provides a mock function with given fields: ctx, _a1, options

func (*DockerClient) ContainerPause

func (_m *DockerClient) ContainerPause(ctx context.Context, _a1 string) error

ContainerPause provides a mock function with given fields: ctx, _a1

func (*DockerClient) ContainerRemove

func (_m *DockerClient) ContainerRemove(ctx context.Context, _a1 string, options types.ContainerRemoveOptions) error

ContainerRemove provides a mock function with given fields: ctx, _a1, options

func (*DockerClient) ContainerRename

func (_m *DockerClient) ContainerRename(ctx context.Context, _a1 string, newContainerName string) error

ContainerRename provides a mock function with given fields: ctx, _a1, newContainerName

func (*DockerClient) ContainerResize

func (_m *DockerClient) ContainerResize(ctx context.Context, _a1 string, options types.ResizeOptions) error

ContainerResize provides a mock function with given fields: ctx, _a1, options

func (*DockerClient) ContainerRestart

func (_m *DockerClient) ContainerRestart(ctx context.Context, _a1 string, timeout *time.Duration) error

ContainerRestart provides a mock function with given fields: ctx, _a1, timeout

func (*DockerClient) ContainerStart

func (_m *DockerClient) ContainerStart(ctx context.Context, _a1 string, options types.ContainerStartOptions) error

ContainerStart provides a mock function with given fields: ctx, _a1, options

func (*DockerClient) ContainerStatPath

func (_m *DockerClient) ContainerStatPath(ctx context.Context, _a1 string, path string) (types.ContainerPathStat, error)

ContainerStatPath provides a mock function with given fields: ctx, _a1, path

func (*DockerClient) ContainerStats

func (_m *DockerClient) ContainerStats(ctx context.Context, _a1 string, stream bool) (types.ContainerStats, error)

ContainerStats provides a mock function with given fields: ctx, _a1, stream

func (*DockerClient) ContainerStop

func (_m *DockerClient) ContainerStop(ctx context.Context, _a1 string, timeout *time.Duration) error

ContainerStop provides a mock function with given fields: ctx, _a1, timeout

func (*DockerClient) ContainerTop

func (_m *DockerClient) ContainerTop(ctx context.Context, _a1 string, arguments []string) (container.ContainerTopOKBody, error)

ContainerTop provides a mock function with given fields: ctx, _a1, arguments

func (*DockerClient) ContainerUnpause

func (_m *DockerClient) ContainerUnpause(ctx context.Context, _a1 string) error

ContainerUnpause provides a mock function with given fields: ctx, _a1

func (*DockerClient) ContainerUpdate

func (_m *DockerClient) ContainerUpdate(ctx context.Context, _a1 string, updateConfig container.UpdateConfig) (container.ContainerUpdateOKBody, error)

ContainerUpdate provides a mock function with given fields: ctx, _a1, updateConfig

func (*DockerClient) ContainerWait

func (_m *DockerClient) ContainerWait(ctx context.Context, _a1 string, condition container.WaitCondition) (<-chan container.ContainerWaitOKBody, <-chan error)

ContainerWait provides a mock function with given fields: ctx, _a1, condition

func (*DockerClient) ContainersPrune

func (_m *DockerClient) ContainersPrune(ctx context.Context, pruneFilters filters.Args) (types.ContainersPruneReport, error)

ContainersPrune provides a mock function with given fields: ctx, pruneFilters

func (*DockerClient) CopyFromContainer

func (_m *DockerClient) CopyFromContainer(ctx context.Context, _a1 string, srcPath string) (io.ReadCloser, types.ContainerPathStat, error)

CopyFromContainer provides a mock function with given fields: ctx, _a1, srcPath

func (*DockerClient) CopyToContainer

func (_m *DockerClient) CopyToContainer(ctx context.Context, _a1 string, path string, content io.Reader, options types.CopyToContainerOptions) error

CopyToContainer provides a mock function with given fields: ctx, _a1, path, content, options

func (*DockerClient) DiskUsage

func (_m *DockerClient) DiskUsage(ctx context.Context) (types.DiskUsage, error)

DiskUsage provides a mock function with given fields: ctx

func (*DockerClient) Events

func (_m *DockerClient) Events(ctx context.Context, options types.EventsOptions) (<-chan events.Message, <-chan error)

Events provides a mock function with given fields: ctx, options

func (*DockerClient) ImageBuild

ImageBuild provides a mock function with given fields: ctx, _a1, options

func (*DockerClient) ImageCreate

func (_m *DockerClient) ImageCreate(ctx context.Context, parentReference string, options types.ImageCreateOptions) (io.ReadCloser, error)

ImageCreate provides a mock function with given fields: ctx, parentReference, options

func (*DockerClient) ImageHistory

func (_m *DockerClient) ImageHistory(ctx context.Context, _a1 string) ([]image.HistoryResponseItem, error)

ImageHistory provides a mock function with given fields: ctx, _a1

func (*DockerClient) ImageImport

func (_m *DockerClient) ImageImport(ctx context.Context, source types.ImageImportSource, ref string, options types.ImageImportOptions) (io.ReadCloser, error)

ImageImport provides a mock function with given fields: ctx, source, ref, options

func (*DockerClient) ImageInspectWithRaw

func (_m *DockerClient) ImageInspectWithRaw(ctx context.Context, _a1 string) (types.ImageInspect, []byte, error)

ImageInspectWithRaw provides a mock function with given fields: ctx, _a1

func (*DockerClient) ImageList

func (_m *DockerClient) ImageList(ctx context.Context, options types.ImageListOptions) ([]types.ImageSummary, error)

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

func (*DockerClient) ImageLoad

func (_m *DockerClient) ImageLoad(ctx context.Context, input io.Reader, quiet bool) (types.ImageLoadResponse, error)

ImageLoad provides a mock function with given fields: ctx, input, quiet

func (*DockerClient) ImagePull

func (_m *DockerClient) ImagePull(ctx context.Context, ref string, options types.ImagePullOptions) (io.ReadCloser, error)

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

func (*DockerClient) ImagePush

func (_m *DockerClient) ImagePush(ctx context.Context, ref string, options types.ImagePushOptions) (io.ReadCloser, error)

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

func (*DockerClient) ImageRemove

ImageRemove provides a mock function with given fields: ctx, _a1, options

func (*DockerClient) ImageSave

func (_m *DockerClient) ImageSave(ctx context.Context, images []string) (io.ReadCloser, error)

ImageSave provides a mock function with given fields: ctx, images

func (*DockerClient) ImageSearch

func (_m *DockerClient) ImageSearch(ctx context.Context, term string, options types.ImageSearchOptions) ([]registry.SearchResult, error)

ImageSearch provides a mock function with given fields: ctx, term, options

func (*DockerClient) ImageTag

func (_m *DockerClient) ImageTag(ctx context.Context, _a1 string, ref string) error

ImageTag provides a mock function with given fields: ctx, _a1, ref

func (*DockerClient) ImagesPrune

func (_m *DockerClient) ImagesPrune(ctx context.Context, pruneFilter filters.Args) (types.ImagesPruneReport, error)

ImagesPrune provides a mock function with given fields: ctx, pruneFilter

func (*DockerClient) Info

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

Info provides a mock function with given fields: ctx

func (*DockerClient) NetworkConnect

func (_m *DockerClient) NetworkConnect(ctx context.Context, _a1 string, _a2 string, config *network.EndpointSettings) error

NetworkConnect provides a mock function with given fields: ctx, _a1, _a2, config

func (*DockerClient) NetworkCreate

func (_m *DockerClient) NetworkCreate(ctx context.Context, name string, options types.NetworkCreate) (types.NetworkCreateResponse, error)

NetworkCreate provides a mock function with given fields: ctx, name, options

func (*DockerClient) NetworkDisconnect

func (_m *DockerClient) NetworkDisconnect(ctx context.Context, _a1 string, _a2 string, force bool) error

NetworkDisconnect provides a mock function with given fields: ctx, _a1, _a2, force

func (*DockerClient) NetworkInspect

func (_m *DockerClient) NetworkInspect(ctx context.Context, _a1 string, options types.NetworkInspectOptions) (types.NetworkResource, error)

NetworkInspect provides a mock function with given fields: ctx, _a1, options

func (*DockerClient) NetworkInspectWithRaw

func (_m *DockerClient) NetworkInspectWithRaw(ctx context.Context, _a1 string, options types.NetworkInspectOptions) (types.NetworkResource, []byte, error)

NetworkInspectWithRaw provides a mock function with given fields: ctx, _a1, options

func (*DockerClient) NetworkList

func (_m *DockerClient) NetworkList(ctx context.Context, options types.NetworkListOptions) ([]types.NetworkResource, error)

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

func (*DockerClient) NetworkRemove

func (_m *DockerClient) NetworkRemove(ctx context.Context, _a1 string) error

NetworkRemove provides a mock function with given fields: ctx, _a1

func (*DockerClient) NetworksPrune

func (_m *DockerClient) NetworksPrune(ctx context.Context, pruneFilter filters.Args) (types.NetworksPruneReport, error)

NetworksPrune provides a mock function with given fields: ctx, pruneFilter

func (*DockerClient) NodeInspectWithRaw

func (_m *DockerClient) NodeInspectWithRaw(ctx context.Context, nodeID string) (swarm.Node, []byte, error)

NodeInspectWithRaw provides a mock function with given fields: ctx, nodeID

func (*DockerClient) NodeList

func (_m *DockerClient) NodeList(ctx context.Context, options types.NodeListOptions) ([]swarm.Node, error)

NodeList provides a mock function with given fields: ctx, options

func (*DockerClient) NodeRemove

func (_m *DockerClient) NodeRemove(ctx context.Context, nodeID string, options types.NodeRemoveOptions) error

NodeRemove provides a mock function with given fields: ctx, nodeID, options

func (*DockerClient) NodeUpdate

func (_m *DockerClient) NodeUpdate(ctx context.Context, nodeID string, version swarm.Version, node swarm.NodeSpec) error

NodeUpdate provides a mock function with given fields: ctx, nodeID, version, node

func (*DockerClient) Ping

func (_m *DockerClient) Ping(ctx context.Context) (types.Ping, error)

Ping provides a mock function with given fields: ctx

func (*DockerClient) RegistryLogin

func (_m *DockerClient) RegistryLogin(ctx context.Context, auth types.AuthConfig) (registry.AuthenticateOKBody, error)

RegistryLogin provides a mock function with given fields: ctx, auth

func (*DockerClient) ServerVersion

func (_m *DockerClient) ServerVersion(ctx context.Context) (types.Version, error)

ServerVersion provides a mock function with given fields: ctx

func (*DockerClient) VolumeCreate

func (_m *DockerClient) VolumeCreate(ctx context.Context, options volume.VolumeCreateBody) (types.Volume, error)

VolumeCreate provides a mock function with given fields: ctx, options

func (*DockerClient) VolumeInspect

func (_m *DockerClient) VolumeInspect(ctx context.Context, volumeID string) (types.Volume, error)

VolumeInspect provides a mock function with given fields: ctx, volumeID

func (*DockerClient) VolumeInspectWithRaw

func (_m *DockerClient) VolumeInspectWithRaw(ctx context.Context, volumeID string) (types.Volume, []byte, error)

VolumeInspectWithRaw provides a mock function with given fields: ctx, volumeID

func (*DockerClient) VolumeList

func (_m *DockerClient) VolumeList(ctx context.Context, filter filters.Args) (volume.VolumeListOKBody, error)

VolumeList provides a mock function with given fields: ctx, filter

func (*DockerClient) VolumeRemove

func (_m *DockerClient) VolumeRemove(ctx context.Context, volumeID string, force bool) error

VolumeRemove provides a mock function with given fields: ctx, volumeID, force

func (*DockerClient) VolumesPrune

func (_m *DockerClient) VolumesPrune(ctx context.Context, pruneFilter filters.Args) (types.VolumesPruneReport, error)

VolumesPrune provides a mock function with given fields: ctx, pruneFilter

type Env

type Env struct {
	mock.Mock
}

Env is an autogenerated mock type for the Env type

func (*Env) AuditClient

func (_m *Env) AuditClient() env.AuditClient

AuditClient provides a mock function with given fields:

func (*Env) DockerClient

func (_m *Env) DockerClient() env.DockerClient

DockerClient provides a mock function with given fields:

func (*Env) EtcGroupPath

func (_m *Env) EtcGroupPath() string

EtcGroupPath provides a mock function with given fields:

func (*Env) EvaluateFromCache

func (_m *Env) EvaluateFromCache(e eval.Evaluatable) (interface{}, error)

EvaluateFromCache provides a mock function with given fields: e

func (*Env) Hostname

func (_m *Env) Hostname() string

Hostname provides a mock function with given fields:

func (*Env) IsLeader

func (_m *Env) IsLeader() bool

IsLeader provides a mock function with given fields:

func (*Env) KubeClient

func (_m *Env) KubeClient() env.KubeClient

KubeClient provides a mock function with given fields:

func (*Env) NormalizeToHostRoot

func (_m *Env) NormalizeToHostRoot(path string) string

NormalizeToHostRoot provides a mock function with given fields: path

func (*Env) RelativeToHostRoot

func (_m *Env) RelativeToHostRoot(path string) string

RelativeToHostRoot provides a mock function with given fields: path

func (*Env) Reporter

func (_m *Env) Reporter() event.Reporter

Reporter provides a mock function with given fields:

type Evaluatable

type Evaluatable struct {
	mock.Mock
}

Evaluatable is an autogenerated mock type for the Evaluatable type

func (*Evaluatable) Evaluate

func (_m *Evaluatable) Evaluate(instance *eval.Instance) (interface{}, error)

Evaluate provides a mock function with given fields: instance

type Iterator

type Iterator struct {
	mock.Mock
}

Iterator is an autogenerated mock type for the Iterator type

func (*Iterator) Done

func (_m *Iterator) Done() bool

Done provides a mock function with given fields:

func (*Iterator) Next

func (_m *Iterator) Next() (*eval.Instance, error)

Next provides a mock function with given fields:

type Reporter

type Reporter struct {
	mock.Mock
}

Reporter is an autogenerated mock type for the Reporter type

func (*Reporter) Report

func (_m *Reporter) Report(_a0 *event.Event)

Report provides a mock function with given fields: _a0

func (*Reporter) ReportRaw

func (_m *Reporter) ReportRaw(_a0 []byte, tags ...string)

ReportRaw provides a mock function with given fields: _a0

type Scheduler

type Scheduler struct {
	mock.Mock
}

Scheduler is an autogenerated mock type for the Scheduler type

func (*Scheduler) Cancel

func (_m *Scheduler) Cancel(id check.ID) error

Cancel provides a mock function with given fields: id

func (*Scheduler) Enter

func (_m *Scheduler) Enter(_a0 check.Check) error

Enter provides a mock function with given fields: _a0

func (*Scheduler) IsCheckScheduled

func (_m *Scheduler) IsCheckScheduled(id check.ID) bool

IsCheckScheduled provides a mock function with given fields: id

func (*Scheduler) Run

func (_m *Scheduler) Run()

Run provides a mock function with given fields:

func (*Scheduler) Stop

func (_m *Scheduler) Stop() error

Stop provides a mock function with given fields:

Jump to

Keyboard shortcuts

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