podman

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RestartPolicyNo = "no"
	// RestartPolicyAlways unconditionally restarts the container.
	RestartPolicyAlways = "always"
	// RestartPolicyOnFailure restarts the container on non-0 exit code,
	// with an optional maximum number of retries.
	RestartPolicyOnFailure = "on-failure"
)

Variables

This section is empty.

Functions

func GetPodmanConnection

func GetPodmanConnection() (context.Context, error)

Types

type PodmanContainerService

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

func NewPodmanContainerService

func NewPodmanContainerService(ctx context.Context, rootdir string) *PodmanContainerService

func (*PodmanContainerService) ContainerStatus

func (pcs *PodmanContainerService) ContainerStatus(unitName, unitImage string) (*api.UnitStatus, error)

func (*PodmanContainerService) CreateContainer

func (pcs *PodmanContainerService) CreateContainer(unit api.Unit, spec *api.PodSpec, podName string, registryCredentials map[string]api.RegistryCredentials, useOverlayfs bool) (*api.UnitStatus, error)

func (*PodmanContainerService) RemoveContainer

func (pcs *PodmanContainerService) RemoveContainer(unit *api.Unit) error

func (*PodmanContainerService) StartContainer

func (pcs *PodmanContainerService) StartContainer(unit api.Unit, spec *api.PodSpec, podName string) (*api.UnitStatus, error)

type PodmanImageService

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

func (*PodmanImageService) PullImage

func (p *PodmanImageService) PullImage(rootdir, name, image string, registryCredentials map[string]api.RegistryCredentials, useOverlayfs bool) error

func (*PodmanImageService) RemoveImage

func (p *PodmanImageService) RemoveImage(rootdir, image string) error

type PodmanRuntime

type PodmanRuntime struct {
	PodmanSandbox
	PodmanContainerService
}

func NewRuntime

func NewRuntime(rootdir string) (*PodmanRuntime, error)

func (*PodmanRuntime) GetLogBuffer

func (p *PodmanRuntime) GetLogBuffer(options runtime.LogOptions) (*logbuf.LogBuffer, error)

func (*PodmanRuntime) GetPid

func (p *PodmanRuntime) GetPid(unitName string) (int, bool)

func (*PodmanRuntime) SetPodNetwork

func (p *PodmanRuntime) SetPodNetwork(netNS, podIP string)

func (*PodmanRuntime) UnitRunning

func (p *PodmanRuntime) UnitRunning(unitName string) bool

type PodmanSandbox

type PodmanSandbox struct {
	metrics.PodmanMetricsProvider
	// contains filtered or unexported fields
}

func (*PodmanSandbox) RemovePodSandbox

func (ps *PodmanSandbox) RemovePodSandbox(spec *api.PodSpec) error

func (*PodmanSandbox) RunPodSandbox

func (ps *PodmanSandbox) RunPodSandbox(spec *api.PodSpec) error

func (*PodmanSandbox) StopPodSandbox

func (ps *PodmanSandbox) StopPodSandbox(spec *api.PodSpec) error

Jump to

Keyboard shortcuts

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