podman

package
v0.0.0-...-46b3556 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Duration

func Duration(d time.Duration) *time.Duration

Types

type Client

type Client struct {
	Client *context.Context
}

func NewEnvClient

func NewEnvClient() (*Client, error)

func (*Client) ContainerCreate

func (c *Client) ContainerCreate(config *specgen.SpecGenerator) (string, error)

func (*Client) ContainerExec

func (c *Client) ContainerExec(id string, cmd []string) (int, []byte, error)

func (*Client) ContainerInspect

func (c *Client) ContainerInspect(id string) (string, error)

func (*Client) ContainerList

func (c *Client) ContainerList() ([]entities.ListContainer, error)

func (*Client) ContainerLogs

func (c *Client) ContainerLogs(id string) ([]byte, error)

func (*Client) ContainerRemove

func (c *Client) ContainerRemove(id string) ([]*reports.RmReport, error)

func (*Client) ContainerStart

func (c *Client) ContainerStart(id string) error

func (*Client) ContainerStop

func (c *Client) ContainerStop(id string, timeout int) error

func (*Client) ContainerStopAndRemove

func (c *Client) ContainerStopAndRemove(id string, timeout int) ([]*reports.RmReport, error)

func (*Client) ContainerWait

func (c *Client) ContainerWait(id string) (int32, error)

func (*Client) ExecInActiveContainers

func (c *Client) ExecInActiveContainers(w io.Writer, ctx context.Context, cmd []string)

func (*Client) ImagesRemove

func (c *Client) ImagesRemove(names []string) (*entities.ImageRemoveReport, []error)

func (*Client) InspectActiveContainers

func (c *Client) InspectActiveContainers(w io.Writer, ctx context.Context)

func (*Client) VolumeCreate

func (c *Client) VolumeCreate() (*entities.VolumeConfigResponse, error)

func (*Client) VolumeRemove

func (c *Client) VolumeRemove(name string) error

Jump to

Keyboard shortcuts

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