Versions in this module Expand all Collapse all v1 v1.2.1 Apr 29, 2021 v1.2.0 Apr 20, 2021 Changes in this version + const RestartPolicyAlways — js/wasm, linux/amd64, windows/amd64 + const RestartPolicyNo — js/wasm, linux/amd64, windows/amd64 + const RestartPolicyOnFailure — js/wasm, linux/amd64, windows/amd64 + func GetPodmanConnection() (context.Context, error) + type NoOpPodmanRuntime struct — darwin/amd64 + func NewRuntime(rootdir string) (*NoOpPodmanRuntime, error) + func (n NoOpPodmanRuntime) ContainerStatus(unitName, unitImage string) (*api.UnitStatus, error) + func (n NoOpPodmanRuntime) CreateContainer(unit api.Unit, spec *api.PodSpec, podName string, ...) (*api.UnitStatus, error) + func (n NoOpPodmanRuntime) GetLogBuffer(options runtime.LogOptions) (*logbuf.LogBuffer, error) + func (n NoOpPodmanRuntime) GetPid(unitName string) (int, bool) + func (n NoOpPodmanRuntime) ReadSystemMetrics(s string) api.ResourceMetrics + func (n NoOpPodmanRuntime) ReadUnitMetrics(s string) api.ResourceMetrics + func (n NoOpPodmanRuntime) RemoveContainer(unit *api.Unit) error + func (n NoOpPodmanRuntime) RemovePodSandbox(spec *api.PodSpec) error + func (n NoOpPodmanRuntime) RunPodSandbox(spec *api.PodSpec) error + func (n NoOpPodmanRuntime) SetPodNetwork(netNS, podIP string) + func (n NoOpPodmanRuntime) StartContainer(unit api.Unit, spec *api.PodSpec, podName string) (*api.UnitStatus, error) + func (n NoOpPodmanRuntime) StopPodSandbox(spec *api.PodSpec) error + func (n NoOpPodmanRuntime) UnitRunning(unitName string) bool + type PodmanContainerService struct — js/wasm, linux/amd64, windows/amd64 + func NewPodmanContainerService(ctx context.Context, rootdir string) *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 struct — js/wasm, linux/amd64, windows/amd64 + func (p *PodmanImageService) PullImage(rootdir, name, image string, ...) error + func (p *PodmanImageService) RemoveImage(rootdir, image string) error + type PodmanRuntime struct — js/wasm, linux/amd64, windows/amd64 + func NewRuntime(rootdir string) (*PodmanRuntime, error) + func (p *PodmanRuntime) GetLogBuffer(options runtime.LogOptions) (*logbuf.LogBuffer, error) + func (p *PodmanRuntime) GetPid(unitName string) (int, bool) + func (p *PodmanRuntime) SetPodNetwork(netNS, podIP string) + func (p *PodmanRuntime) UnitRunning(unitName string) bool + type PodmanSandbox struct — js/wasm, linux/amd64, windows/amd64 + func (ps *PodmanSandbox) RemovePodSandbox(spec *api.PodSpec) error + func (ps *PodmanSandbox) RunPodSandbox(spec *api.PodSpec) error + func (ps *PodmanSandbox) StopPodSandbox(spec *api.PodSpec) error