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 AnkaRuntimeName + const ItzoRuntimeName + const PodmanRuntimeName + type ContainerService interface + ContainerStatus func(unitName, unitImage string) (*api.UnitStatus, error) + CreateContainer func(unit api.Unit, spec *api.PodSpec, podName string, ...) (*api.UnitStatus, error) + GetLogBuffer func(options LogOptions) (*logbuf.LogBuffer, error) + GetPid func(unitName string) (int, bool) + RemoveContainer func(unit *api.Unit) error + SetPodNetwork func(netNS, podIP string) + StartContainer func(unit api.Unit, spec *api.PodSpec, podName string) (*api.UnitStatus, error) + UnitRunning func(unitName string) bool + type ImagePuller struct — darwin/amd64, linux/amd64 + func (i ImagePuller) PullImage(rootdir, name, image string, ...) error + func (ip *ImagePuller) PullImage(rootdir, name, image string, ...) error + type ImageService interface + PullImage func(rootdir, name, image string, ...) error + type ItzoRuntime struct — darwin/amd64, linux/amd64 + ImgPuller ImageService + MountCtl Mounter + UnitMgr UnitRunner + func NewItzoRuntime(rootdir string, unitMgr UnitRunner, mounter Mounter, imgPuller ImageService) *ItzoRuntime + func (i *ItzoRuntime) ContainerStatus(unitName, unitImage string) (*api.UnitStatus, error) + func (i *ItzoRuntime) CreateContainer(unit api.Unit, spec *api.PodSpec, podName string, ...) (*api.UnitStatus, error) + func (i *ItzoRuntime) GetLogBuffer(options LogOptions) (*logbuf.LogBuffer, error) + func (i *ItzoRuntime) GetPid(unitName string) (int, bool) + func (i *ItzoRuntime) RemoveContainer(unit *api.Unit) error + func (i *ItzoRuntime) RemovePodSandbox(spec *api.PodSpec) error + func (i *ItzoRuntime) RunPodSandbox(spec *api.PodSpec) error + func (i *ItzoRuntime) SetPodNetwork(netNS, podIP string) + func (i *ItzoRuntime) StartContainer(unit api.Unit, podSpec *api.PodSpec, podName string) (*api.UnitStatus, error) + func (i *ItzoRuntime) StopPodSandbox(spec *api.PodSpec) error + func (i *ItzoRuntime) UnitRunning(unitName string) bool + func (i ItzoRuntime) ContainerStatus(unitName, unitImage string) (*api.UnitStatus, error) + func (i ItzoRuntime) CreateContainer(unit api.Unit, spec *api.PodSpec, podName string, ...) (*api.UnitStatus, error) + func (i ItzoRuntime) GetLogBuffer(options LogOptions) (*logbuf.LogBuffer, error) + func (i ItzoRuntime) GetPid(unitName string) (int, bool) + func (i ItzoRuntime) ReadSystemMetrics(s string) api.ResourceMetrics + func (i ItzoRuntime) ReadUnitMetrics(s string) api.ResourceMetrics + func (i ItzoRuntime) RemoveContainer(unit *api.Unit) error + func (i ItzoRuntime) RemovePodSandbox(spec *api.PodSpec) error + func (i ItzoRuntime) RunPodSandbox(spec *api.PodSpec) error + func (i ItzoRuntime) SetPodNetwork(netNS, podIP string) + func (i ItzoRuntime) StartContainer(unit api.Unit, spec *api.PodSpec, podName string) (*api.UnitStatus, error) + func (i ItzoRuntime) StopPodSandbox(spec *api.PodSpec) error + func (i ItzoRuntime) UnitRunning(unitName string) bool + type LogOptions struct + BytesNum int + Follow bool + LineNum int + UnitName string + WithMetadata bool + func NewLogOptionsFromURL(logUrl *url.URL) (*LogOptions, error) + type Mounter interface + AttachMount func(unitname, src, dst string) error + CreateMount func(*api.Volume) error + DeleteMount func(*api.Volume) error + DetachMount func(unitname, dst string) error + type PodSandbox interface + RemovePodSandbox func(spec *api.PodSpec) error + RunPodSandbox func(spec *api.PodSpec) error + StopPodSandbox func(spec *api.PodSpec) error + type Puller interface + PullImage func(rootdir, name, image, server, username, password string) error + type RuntimeService interface + type UnitRunner interface + GetLogBuffer func(unitName string) (*logbuf.LogBuffer, error) + GetPid func(string) (int, bool) + ReadLogBuffer func(unitName string, n int) ([]logbuf.LogEntry, error) + RemoveUnit func(string) error + StartUnit func(string, string, string, string, string, []string, []string, []string, ...) error + StopUnit func(string) error + UnitRunning func(string) bool