podman

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(opts ...ClientOption) (*Client, error)

func (*Client) ContainerCopy

func (c *Client) ContainerCopy(ctx context.Context, srcPath, containerName, destPath string) error

func (*Client) ContainerCopyContent

func (c *Client) ContainerCopyContent(ctx context.Context, content []byte, containerName, destPath string, mode int64) error

func (*Client) ContainerCreate

func (c *Client) ContainerCreate(ctx context.Context, opts *ContainerCreateOptions) (string, error)

func (*Client) ContainerExec

func (c *Client) ContainerExec(ctx context.Context, name string, cmd []string) (string, error)

func (*Client) ContainerExecInteractive

func (c *Client) ContainerExecInteractive(ctx context.Context, name string, cmd []string) error

func (*Client) ContainerExecQuiet

func (c *Client) ContainerExecQuiet(ctx context.Context, name string, cmd []string) error

func (*Client) ContainerExists

func (c *Client) ContainerExists(ctx context.Context, name string) (bool, error)

func (*Client) ContainerInspect

func (c *Client) ContainerInspect(ctx context.Context, name, format string) (string, error)

func (*Client) ContainerList

func (c *Client) ContainerList(ctx context.Context, filter string) ([]string, error)

func (*Client) ContainerRemove

func (c *Client) ContainerRemove(ctx context.Context, name string, force bool) error

func (*Client) ContainerRunQuiet

func (c *Client) ContainerRunQuiet(ctx context.Context, image string, cmd []string, volumeMounts []string) error

func (*Client) ContainerStart

func (c *Client) ContainerStart(ctx context.Context, name string) error

func (*Client) ContainerStatus

func (c *Client) ContainerStatus(ctx context.Context, name string) (string, error)

func (*Client) ContainerStop

func (c *Client) ContainerStop(ctx context.Context, name string) error

func (*Client) ContainerWait

func (c *Client) ContainerWait(ctx context.Context, name string) (int64, error)

func (*Client) EnsureImage

func (c *Client) EnsureImage(ctx context.Context, image string) error

func (*Client) GetPublishedPort

func (c *Client) GetPublishedPort(ctx context.Context, containerName, containerPort string) (int, error)

func (*Client) ImageExists

func (c *Client) ImageExists(ctx context.Context, name string) (bool, error)

func (*Client) ImageInspectLabels

func (c *Client) ImageInspectLabels(ctx context.Context, name string) (map[string]string, error)

func (*Client) ImagePull

func (c *Client) ImagePull(ctx context.Context, rawImage string, skipTLSVerify bool) ([]string, error)

func (*Client) ImagePush

func (c *Client) ImagePush(ctx context.Context, source, destination string, skipTLSVerify bool) error

func (*Client) ImageRemove

func (c *Client) ImageRemove(ctx context.Context, names []string, force bool) error

func (*Client) ImageTag

func (c *Client) ImageTag(ctx context.Context, nameOrID, tag, repo string) error

func (*Client) NetworkCreate

func (c *Client) NetworkCreate(ctx context.Context, name, subnet string) error

func (*Client) NetworkExists

func (c *Client) NetworkExists(ctx context.Context, name string) (bool, error)

func (*Client) NetworkInspect

func (c *Client) NetworkInspect(ctx context.Context, name, format string) (string, error)

func (*Client) NetworkRemove

func (c *Client) NetworkRemove(ctx context.Context, name string) error

func (*Client) VolumeCreate

func (c *Client) VolumeCreate(ctx context.Context, name string, labels map[string]string) error

func (*Client) VolumeExists

func (c *Client) VolumeExists(ctx context.Context, name string) (bool, error)

func (*Client) VolumeInspectLabels

func (c *Client) VolumeInspectLabels(ctx context.Context, name string) (map[string]string, error)

func (*Client) VolumeList

func (c *Client) VolumeList(ctx context.Context, filter string) ([]string, error)

func (*Client) VolumeRemove

func (c *Client) VolumeRemove(ctx context.Context, name string) error

type ClientOption

type ClientOption func(*Client)

type ContainerCreateOptions

type ContainerCreateOptions struct {
	Name           string
	Image          string
	Entrypoint     []string
	Command        []string
	Network        string
	NetworkOptions map[string]nettypes.PerNetworkOptions
	Devices        []specs.LinuxDevice
	Volumes        []*specgen.NamedVolume
	Mounts         []specs.Mount
	ImageVolumes   []*specgen.ImageVolume
	PortMappings   []nettypes.PortMapping
	Environment    map[string]string
	Labels         map[string]string
	CapAdd         []string
	SelinuxOpts    []string
	Privileged     bool
}

Jump to

Keyboard shortcuts

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