Help us shape the future of Go! Take the 2026 Go Developer Survey

fake

package
v1.147.2 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: Apache-2.0 Imports: 3 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