fake

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(opts ...ClientOpt) *Client

func (Client) LoadContainer

func (c Client) LoadContainer(_ context.Context, id string) (containerd.Container, error)

type ClientOpt

type ClientOpt func(client *Client)

func WithCachedContainer

func WithCachedContainer(containerID string, container containerd.Container) ClientOpt

type Container

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

func NewFakeContainer

func NewFakeContainer(id string, netnsPath string) *Container

func NewFakeContainerWithoutNetworkNamespace

func NewFakeContainerWithoutNetworkNamespace(id string) *Container

func NewFakeNonLinuxContainer

func NewFakeNonLinuxContainer(id string) *Container

func (Container) Delete

func (Container) Extensions

func (Container) Extensions(context.Context) (map[string]typeurl.Any, error)

func (Container) ID

func (c Container) ID() string

func (Container) Image

func (Container) Info

func (Container) Labels

func (Container) Labels(context.Context) (map[string]string, error)

func (Container) SetLabels

func (Container) SetLabels(context.Context, map[string]string) (map[string]string, error)

func (Container) Spec

func (c Container) Spec(context.Context) (*oci.Spec, error)

func (Container) Task

func (Container) Update

Jump to

Keyboard shortcuts

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