docker

package
v0.3.27 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const DistributionInspectError = `Could not inspect image %q - could be due to repo/image not existing, ` +
	`or registry needing authorization`
View Source
const ImagePullError = `Could not pull image %q - could be due to repo/image not existing, ` +
	`or registry needing authorization`

Variables

This section is empty.

Functions

func MaybeNeedDocker

func MaybeNeedDocker(t testingT, needDocker bool)

MaybeNeedDocker will skip the test if the test is running in an environment that cannot support cross-platform Docker images, and the passed boolean flag is true.

func MustHaveDocker

func MustHaveDocker(t testingT)

MustHaveDocker will skip the test if the test is running in an environment that cannot support cross-platform Docker images.

Types

type Client

type Client struct {
	tracing.TracedClient
}

func NewDockerClient

func NewDockerClient() (*Client, error)

func (*Client) FindContainer added in v0.3.25

func (c *Client) FindContainer(ctx context.Context, label string, value string) (string, error)

func (*Client) FollowLogs

func (c *Client) FollowLogs(ctx context.Context, id string) (stdout, stderr io.Reader, err error)

func (*Client) GetOutputStream added in v0.3.25

func (c *Client) GetOutputStream(ctx context.Context, id string, since string, follow bool) (io.ReadCloser, error)

func (*Client) HostGatewayIP

func (c *Client) HostGatewayIP(ctx context.Context) (net.IP, error)

func (*Client) ImagePlatforms added in v0.3.24

func (c *Client) ImagePlatforms(ctx context.Context, image string, dockerCreds config.DockerCredentials) ([]v1.Platform, error)

func (*Client) IsInstalled

func (c *Client) IsInstalled(ctx context.Context) bool

func (*Client) PullImage

func (c *Client) PullImage(ctx context.Context, image string, dockerCreds config.DockerCredentials) error

func (*Client) RemoveContainer

func (c *Client) RemoveContainer(ctx context.Context, id string) error

func (*Client) RemoveObjectsWithLabel

func (c *Client) RemoveObjectsWithLabel(ctx context.Context, labelName, labelValue string) error

func (*Client) SupportedPlatforms added in v0.3.24

func (c *Client) SupportedPlatforms(ctx context.Context) ([]v1.Platform, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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