Documentation ¶
Index ¶
- Constants
- func GetPodmanConnection() (context.Context, error)
- type PodmanContainerService
- func (pcs *PodmanContainerService) ContainerStatus(unitName, unitImage string) (*api.UnitStatus, error)
- func (pcs *PodmanContainerService) CreateContainer(unit api.Unit, spec *api.PodSpec, podName string, ...) (*api.UnitStatus, error)
- func (pcs *PodmanContainerService) RemoveContainer(unit *api.Unit) error
- func (pcs *PodmanContainerService) StartContainer(unit api.Unit, spec *api.PodSpec, podName string) (*api.UnitStatus, error)
- type PodmanImageService
- type PodmanRuntime
- type PodmanSandbox
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 ¶
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) 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
Click to show internal directories.
Click to hide internal directories.