client

package
v0.7.0-dev.19 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2025 License: Apache-2.0 Imports: 32 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() auth.Provider

func (*Client) Close

func (c *Client) Close() error

func (*Client) HostIPFromContainers

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

func (*Client) ImageBuild added in v0.2.0

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

func (*Client) ImageDefaultPlatform added in v0.4.0

func (c *Client) ImageDefaultPlatform(ctx context.Context) (*v1.Platform, 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) ImagePull added in v0.2.0

func (c *Client) ImagePull(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) IsPodman

func (c *Client) IsPodman(ctx context.Context) (bool, 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)

type Opt

type Opt func(*Client) error

func WithAuthProvider

func WithAuthProvider(authProvider auth.Provider) 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 image.Provider) 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