Documentation ¶
Index ¶
- func DockerClient(t *testing.T, ctx context.Context) *dockerfake.MockClient
- func Execer(ctx context.Context) *xunixfake.FakeExec
- func FS(ctx context.Context) *xunixfake.MemFS
- func FakeCPUGroups(t *testing.T, fs afero.Fs, quota, period string)
- func FakeSysboxManagerReady(t *testing.T, fs afero.Fs)
- func GetNetLink(t *testing.T) netlink.Link
- func Mounter(ctx context.Context) *mount.FakeMounter
- func New(t *testing.T, cmd string, args ...string) (context.Context, *cobra.Command)
- func NewFakeDockerClient() dockerutil.Client
- func NewFakeExecer() *xunixfake.FakeExec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DockerClient ¶
func DockerClient(t *testing.T, ctx context.Context) *dockerfake.MockClient
nolint
func New ¶
New returns an instantiated Command as well as a context populated with mocked values for the command. All mock/fakes have been minimally configured to induce a successful call to the command.
func NewFakeDockerClient ¶
func NewFakeDockerClient() dockerutil.Client
func NewFakeExecer ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.