Documentation
¶
Index ¶
- Constants
- func SprintError(methodname string, err error) string
- type ExecContainer_methods
- func (m ExecContainer_methods) Call(ctx context.Context, c *varlink.Connection, opts_in_ iopodman.ExecOpts) (rwc_ varlink.ReadWriterContext, err_ error)
- func (m ExecContainer_methods) Upgrade(ctx context.Context, c *varlink.Connection, opts_in_ iopodman.ExecOpts) (func(ctx context.Context) (varlink.ReadWriterContext, error), error)
- type Handle
- func (hnd *Handle) CreateContainer(conf iopodman.Create) (string, error)
- func (hnd *Handle) CreateNamedVolume(name string) (string, error)
- func (hnd *Handle) Exec(container string, args []string, out io.Writer) error
- func (hnd *Handle) FindPrefixedContainer(prefixedName string) (iopodman.Container, error)
- func (hnd *Handle) GetAllVolumes() ([]iopodman.Volume, error)
- func (hnd *Handle) GetPrefixedContainers(prefix string) ([]iopodman.Container, error)
- func (hnd *Handle) GetPrefixedVolumes(prefix string) ([]iopodman.Volume, error)
- func (hnd *Handle) ListImages() ([]iopodman.Image, error)
- func (hnd *Handle) PruneVolumes() error
- func (hnd *Handle) PullClusterImages(reqs images.Requests, clusterImage string) error
- func (hnd *Handle) PullImage(ref string) error
- func (hnd *Handle) RemoveContainer(cont iopodman.Container, force, removeVolumes bool) (string, error)
- func (hnd *Handle) RemoveVolumes(volumes []iopodman.Volume) error
- func (hnd *Handle) StartContainer(contID string) (string, error)
- func (hnd *Handle) StopContainer(name string, timeout int64) (string, error)
- func (hnd *Handle) WaitContainer(name string, interval int64) (int64, error)
- type ReaderContext
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 ¶
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 (m ExecContainer_methods) Call(ctx context.Context, c *varlink.Connection, opts_in_ iopodman.ExecOpts) (rwc_ varlink.ReadWriterContext, err_ error)
func (ExecContainer_methods) Upgrade ¶ added in v0.0.2
func (m ExecContainer_methods) Upgrade(ctx context.Context, c *varlink.Connection, opts_in_ iopodman.ExecOpts) (func(ctx context.Context) (varlink.ReadWriterContext, error), error)
type Handle ¶
type Handle struct {
// contains filtered or unexported fields
}
func (*Handle) CreateContainer ¶
func (*Handle) CreateNamedVolume ¶
func (*Handle) FindPrefixedContainer ¶
func (*Handle) GetAllVolumes ¶ added in v0.0.2
GetAllVolumes returns all volumes
func (*Handle) GetPrefixedContainers ¶
func (*Handle) GetPrefixedVolumes ¶
func (*Handle) ListImages ¶ added in v0.0.2
ListImages returns all images on host
func (*Handle) PruneVolumes ¶
PruneVolumes removes all unused volumes on the host.
func (*Handle) PullClusterImages ¶ added in v0.1.0
func (*Handle) RemoveContainer ¶
func (*Handle) StopContainer ¶
Click to show internal directories.
Click to hide internal directories.