fake

package
v1.137.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: Apache-2.0 Imports: 4 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
}

Client is a fake containerd client used for testing

func NewClient

func NewClient() *Client

NewClient returns a new fake containerd client

func (*Client) SetFakeContainerdVersion

func (f *Client) SetFakeContainerdVersion(version string)

SetFakeContainerdVersion sets the version of the (fake) containerd to the desired value

func (*Client) SetReturnError

func (f *Client) SetReturnError(returnError bool)

SetReturnError sets whether or not the fake containerd client returns an error

func (Client) Version

func (f Client) Version(_ context.Context) (containerd.Version, error)

Version returns the version of the (fake) containerd represented by the FakeContainerdClient

Jump to

Keyboard shortcuts

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