client

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2025 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromEnv

func FromEnv(c *Client) error

func WithVersionNegotiation added in v0.5.0

func WithVersionNegotiation(c *Client) error

Types

type Client

type Client struct {
	*client.Client
	// contains filtered or unexported fields
}

func NewWithOpts

func NewWithOpts(opts ...Opt) (*Client, error)

func (*Client) AuthProvider added in v0.7.0

func (c *Client) AuthProvider() provider.AuthProvider

func (*Client) Close

func (c *Client) Close() error

func (*Client) ImageBuild added in v0.2.0

func (c *Client) ImageBuild(
	ctx context.Context, buildContext io.Reader, opts build.ImageBuildOptions,
) (build.ImageBuildResponse, error)

func (*Client) ImageGetManifest added in v0.4.0

func (c *Client) ImageGetManifest(ctx context.Context, ref reference.Named, platform *v1.Platform) (
	v1.Hash, *v1.Manifest, error,
)

func (*Client) ImagePullSimple added in v0.7.0

func (c *Client) ImagePullSimple(ctx context.Context, ref reference.Named, options image.PullOptions) (
	digest.Digest, error,
)

func (*Client) ImagePullWithEvents added in v0.2.0

func (c *Client) ImagePullWithEvents(ctx context.Context, ref reference.Named, options image.PullOptions) (
	v1.Hash, *v1.Manifest, chan events.PullEvent, error,
)

func (*Client) ImagePullWithState added in v0.2.0

func (c *Client) ImagePullWithState(ctx context.Context, ref reference.Named, options image.PullOptions) (
	v1.Hash, *v1.Manifest, chan state.Pull, error,
)

func (*Client) Logger added in v0.7.0

func (c *Client) Logger() *zap.SugaredLogger

func (*Client) RequestAuthenticate added in v0.2.1

func (c *Client) RequestAuthenticate(req *http.Request, ref reference.Named) error

func (*Client) StreamLogs added in v0.7.0

func (c *Client) StreamLogs(ctx context.Context, id string, follow bool) (*stream.MultiplexedStream, error)

func (*Client) SystemDefaultPlatform added in v0.7.0

func (c *Client) SystemDefaultPlatform(ctx context.Context) (*v1.Platform, error)

func (*Client) SystemHostIPFromContainers added in v0.7.0

func (c *Client) SystemHostIPFromContainers(ctx context.Context, netId *string) (net.IP, error)

func (*Client) SystemIsPodman added in v0.7.0

func (c *Client) SystemIsPodman(ctx context.Context) (bool, error)

type Opt

type Opt func(*Client) error

func WithAuthProvider

func WithAuthProvider(authProvider provider.AuthProvider) Opt

func WithDockerOpts

func WithDockerOpts(opts ...client.Opt) Opt

func WithHTTPClient added in v0.4.0

func WithHTTPClient(httpClient *http.Client) Opt

func WithImageProvider added in v0.7.0

func WithImageProvider(imageProvider provider.ImageProvider) Opt

func WithLogger

func WithLogger(logger *zap.Logger) Opt

func WithSugaredLogger

func WithSugaredLogger(logger *zap.SugaredLogger) Opt

Jump to

Keyboard shortcuts

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