fake

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientOpt added in v0.3.4

type ClientOpt func(client *CrioClient)

func WithCachedContainer added in v0.3.4

func WithCachedContainer(podUID, podSandboxID string, netnsPath string) ClientOpt

type CrioClient added in v0.3.4

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

func NewFakeClient added in v0.3.4

func NewFakeClient(opts ...ClientOpt) *CrioClient

func (CrioClient) Attach added in v0.3.4

func (CrioClient) ContainerStats added in v0.3.4

func (CrioClient) ContainerStatus added in v0.3.4

func (CrioClient) Exec added in v0.3.4

func (CrioClient) ExecSync added in v0.3.4

func (CrioClient) ListContainers added in v0.3.4

func (CrioClient) ListPodSandbox added in v0.3.4

func (cc CrioClient) ListPodSandbox(
	_ context.Context,
	listPodSandboxRequest *crioruntime.ListPodSandboxRequest,
	_ ...grpc.CallOption,
) (*crioruntime.ListPodSandboxResponse, error)

func (CrioClient) PodSandboxStats added in v0.3.4

func (CrioClient) PodSandboxStatus added in v0.3.4

func (cc CrioClient) PodSandboxStatus(
	_ context.Context,
	podSandboxStatusRequest *crioruntime.PodSandboxStatusRequest,
	_ ...grpc.CallOption,
) (*crioruntime.PodSandboxStatusResponse, error)

func (CrioClient) PortForward added in v0.3.4

func (CrioClient) RunPodSandbox added in v0.3.4

func (CrioClient) RuntimeConfig added in v0.3.4

func (CrioClient) StartContainer added in v0.3.4

func (CrioClient) Status added in v0.3.4

func (CrioClient) StopContainer added in v0.3.4

func (CrioClient) StopPodSandbox added in v0.3.4

func (CrioClient) Version added in v0.3.4

type Runtime

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

func NewFakeRuntime

func NewFakeRuntime(pods ...v1.Pod) *Runtime

func (*Runtime) NetworkNamespace added in v0.3.4

func (r *Runtime) NetworkNamespace(_ context.Context, podUID string) (string, error)

func (*Runtime) PodSandboxID added in v0.3.4

func (r *Runtime) PodSandboxID(_ context.Context, podUID string) (string, error)

Jump to

Keyboard shortcuts

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