podman

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultSocket   string = "unix:/run/podman/io.podman"
	LabelGeneration string = "io.kubevirt/pack8s.generation"
)

Variables

This section is empty.

Functions

func SprintError

func SprintError(methodname string, err error) string

Types

type ExecContainer_methods

type ExecContainer_methods struct{}

ExecContainer executes a command in the given container.

func ExecContainer

func ExecContainer() ExecContainer_methods

func (ExecContainer_methods) Call

func (ExecContainer_methods) Upgrade added in v0.0.2

type Handle

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

func NewHandle

func NewHandle(ctx context.Context, socket string, log *logger.Logger) (*Handle, error)

func (*Handle) CreateContainer

func (hnd *Handle) CreateContainer(conf iopodman.Create) (string, error)

func (*Handle) CreateNamedVolume

func (hnd *Handle) CreateNamedVolume(name string) (string, error)

func (*Handle) Exec

func (hnd *Handle) Exec(container string, args []string, out io.Writer) error

func (*Handle) FindPrefixedContainer

func (hnd *Handle) FindPrefixedContainer(prefixedName string) (iopodman.Container, error)

func (*Handle) GetAllVolumes added in v0.0.2

func (hnd *Handle) GetAllVolumes() ([]iopodman.Volume, error)

GetAllVolumes returns all volumes

func (*Handle) GetPrefixedContainers

func (hnd *Handle) GetPrefixedContainers(prefix string) ([]iopodman.Container, error)

func (*Handle) GetPrefixedVolumes

func (hnd *Handle) GetPrefixedVolumes(prefix string) ([]iopodman.Volume, error)

func (*Handle) ListImages added in v0.0.2

func (hnd *Handle) ListImages() ([]iopodman.Image, error)

ListImages returns all images on host

func (*Handle) PruneVolumes

func (hnd *Handle) PruneVolumes() error

PruneVolumes removes all unused volumes on the host.

func (*Handle) PullClusterImages added in v0.1.0

func (hnd *Handle) PullClusterImages(reqs images.Requests, clusterImage string) error

func (*Handle) PullImage

func (hnd *Handle) PullImage(ref string) error

func (*Handle) RemoveContainer

func (hnd *Handle) RemoveContainer(cont iopodman.Container, force, removeVolumes bool) (string, error)

func (*Handle) RemoveVolumes

func (hnd *Handle) RemoveVolumes(volumes []iopodman.Volume) error

func (*Handle) StartContainer

func (hnd *Handle) StartContainer(contID string) (string, error)

func (*Handle) StopContainer

func (hnd *Handle) StopContainer(name string, timeout int64) (string, error)

func (*Handle) WaitContainer

func (hnd *Handle) WaitContainer(name string, interval int64) (int64, error)

type ReaderContext added in v0.0.2

type ReaderContext interface {
	Read(context.Context, []byte) (int, error)
}

Jump to

Keyboard shortcuts

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