matchers

package
v0.1.0-M4 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: Apache-2.0, EPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsString

func ContainsString(s string) gomock.Matcher

ContainsString returns a Matcher interface for checking whether the actual argument contains the provided string

func MatchesCioAttach

func MatchesCioAttach(cioCtr cio.Attach) gomock.Matcher

MatchesCioAttach returns a Matcher interface for cio attach function

func MatchesCioCreator

func MatchesCioCreator(cioCtr cio.Creator) gomock.Matcher

MatchesCioCreator returns a Matcher interface for cio creator function

func MatchesContainerID

func MatchesContainerID(t string) gomock.Matcher

MatchesContainerID returns a Matcher interface for the Container's ID

func MatchesContainerImage

func MatchesContainerImage(name, image string) gomock.Matcher

MatchesContainerImage returns a Matcher interface for the Container's name and image name

func MatchesContainerName

func MatchesContainerName(t string) gomock.Matcher

MatchesContainerName returns a Matcher interface for the Container's name

func MatchesContainerState

func MatchesContainerState(id string, state types.State) gomock.Matcher

MatchesContainerState returns a Matcher interface for the Container's state

func MatchesContainerUpdate

func MatchesContainerUpdate(rp *types.RestartPolicy, r *types.Resources) gomock.Matcher

MatchesContainerUpdate returns a Matcher interface for the Container after update Nil field means: do not match.

func MatchesImageDeleteOpts

func MatchesImageDeleteOpts(opts ...images.DeleteOpt) gomock.Matcher

MatchesImageDeleteOpts returns a Matcher interface for images.DeleteOpt used in variadic functions

func MatchesNewContainerOpts

func MatchesNewContainerOpts(opts ...containerd.NewContainerOpts) gomock.Matcher

MatchesNewContainerOpts returns a Matcher interface for the New Container Opts

func MatchesNewTaskOpts

func MatchesNewTaskOpts(opts ...containerd.NewTaskOpts) gomock.Matcher

MatchesNewTaskOpts returns a Matcher interface for the New Task Opts

func MatchesResolverOpts

func MatchesResolverOpts(opts ...containerd.RemoteOpt) gomock.Matcher

MatchesResolverOpts returns a Matcher interface for containerd.RemoteOpt

func MatchesTaskKillOpts

func MatchesTaskKillOpts(opts ...containerd.KillOpts) gomock.Matcher

MatchesTaskKillOpts returns a Matcher interface for containerd task kill opts

func MatchesUnpackOpts

func MatchesUnpackOpts(opts ...containerd.UnpackOpt) gomock.Matcher

MatchesUnpackOpts returns a Matcher interface for the provided list of containerd.UnpackOpt

func MatchesUpdateTaskOpts

func MatchesUpdateTaskOpts(opts ...containerd.UpdateTaskOpts) gomock.Matcher

MatchesUpdateTaskOpts returns a Matcher interface for the containerd.UpdateTaskOpts

Types

This section is empty.

Jump to

Keyboard shortcuts

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