Documentation
¶
Index ¶
- func FromEnv(c *Client) error
- func WithVersionNegotiation(c *Client) error
- type Client
- func (c *Client) AuthProvider() provider.AuthProvider
- func (c *Client) Close() error
- func (c *Client) ImageBuild(ctx context.Context, buildContext io.Reader, opts build.ImageBuildOptions) (build.ImageBuildResponse, error)
- func (c *Client) ImageGetManifest(ctx context.Context, ref reference.Named, platform *v1.Platform) (v1.Hash, *v1.Manifest, error)
- func (c *Client) ImagePullSimple(ctx context.Context, ref reference.Named, options image.PullOptions) (digest.Digest, error)
- func (c *Client) ImagePullWithEvents(ctx context.Context, ref reference.Named, options image.PullOptions) (v1.Hash, *v1.Manifest, chan events.PullEvent, error)
- func (c *Client) ImagePullWithState(ctx context.Context, ref reference.Named, options image.PullOptions) (v1.Hash, *v1.Manifest, chan state.Pull, error)
- func (c *Client) Logger() *zap.SugaredLogger
- func (c *Client) RequestAuthenticate(req *http.Request, ref reference.Named) error
- func (c *Client) StreamLogs(ctx context.Context, id string, follow bool) (*stream.MultiplexedStream, error)
- func (c *Client) SystemDefaultPlatform(ctx context.Context) (*v1.Platform, error)
- func (c *Client) SystemHostIPFromContainers(ctx context.Context, netId *string) (net.IP, error)
- func (c *Client) SystemIsPodman(ctx context.Context) (bool, error)
- type Opt
- func WithAuthProvider(authProvider provider.AuthProvider) Opt
- func WithDockerOpts(opts ...client.Opt) Opt
- func WithHTTPClient(httpClient *http.Client) Opt
- func WithImageProvider(imageProvider provider.ImageProvider) Opt
- func WithLogger(logger *zap.Logger) Opt
- func WithSugaredLogger(logger *zap.SugaredLogger) Opt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithVersionNegotiation ¶ added in v0.5.0
Types ¶
type Client ¶
func NewWithOpts ¶
func (*Client) AuthProvider ¶ added in v0.7.0
func (c *Client) AuthProvider() provider.AuthProvider
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 (*Client) ImagePullSimple ¶ added in v0.7.0
func (*Client) ImagePullWithEvents ¶ added in v0.2.0
func (*Client) ImagePullWithState ¶ added in v0.2.0
func (*Client) Logger ¶ added in v0.7.0
func (c *Client) Logger() *zap.SugaredLogger
func (*Client) RequestAuthenticate ¶ added in v0.2.1
func (*Client) StreamLogs ¶ added in v0.7.0
func (*Client) SystemDefaultPlatform ¶ added in v0.7.0
func (*Client) SystemHostIPFromContainers ¶ added in v0.7.0
type Opt ¶
func WithAuthProvider ¶
func WithAuthProvider(authProvider provider.AuthProvider) Opt
func WithDockerOpts ¶
func WithHTTPClient ¶ added in v0.4.0
func WithImageProvider ¶ added in v0.7.0
func WithImageProvider(imageProvider provider.ImageProvider) Opt
func WithLogger ¶
func WithSugaredLogger ¶
func WithSugaredLogger(logger *zap.SugaredLogger) Opt
Source Files
¶
Click to show internal directories.
Click to hide internal directories.