Documentation
¶
Index ¶
- Variables
- func FromEnv(c *Client) error
- func WithVersionNegotiation(c *Client) error
- type Client
- func (c *Client) Close() error
- func (c *Client) GetPodmanConnection(ctx context.Context) (context.Context, error)
- func (c *Client) ImageBuild(ctx context.Context, buildContext io.Reader, opts types.ImageBuildOptions) (types.ImageBuildResponse, error)
- func (c *Client) ImageDefaultPlatform(ctx context.Context) (*v1.Platform, error)
- func (c *Client) ImageGetManifest(ctx context.Context, ref reference.Named, platform *v1.Platform) (v1.Hash, *v1.Manifest, error)
- func (c *Client) ImagePull(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) IsPodman(ctx context.Context) (bool, error)
- func (c *Client) PodmanSocket() (string, error)
- func (c *Client) RequestAuthenticate(req *http.Request, ref reference.Named) error
- type Opt
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotPodman = fmt.Errorf("not a podman server")
View Source
var ErrSocketNotEnabled = fmt.Errorf("podman socket is not enabled")
Functions ¶
func WithVersionNegotiation ¶ added in v0.5.0
Types ¶
type Client ¶
func NewWithOpts ¶
func (*Client) GetPodmanConnection ¶
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 (*Client) ImageGetManifest ¶ added in v0.4.0
func (*Client) ImagePullWithEvents ¶ added in v0.2.0
func (*Client) ImagePullWithState ¶ added in v0.2.0
func (*Client) PodmanSocket ¶
PodmanSocket returns the path to the podman socket on the podman host. When talking with a podman machine, this might not be reachable for the caller.
type Opt ¶
func WithAuthProvider ¶
func WithDockerOpts ¶
func WithHTTPClient ¶ added in v0.4.0
func WithLogger ¶
func WithSugaredLogger ¶
func WithSugaredLogger(logger *zap.SugaredLogger) Opt
Click to show internal directories.
Click to hide internal directories.