Documentation ¶
Index ¶
- type Runtime
- func (r *Runtime) ContainerStatus(ctx context.Context, containerID string, verbose bool) (*runtimeapi.ContainerStatusResponse, error)
- func (r *Runtime) CreateContainer(ctx context.Context, podSandboxID string, config *runtimeapi.ContainerConfig, ...) (id string, retErr error)
- func (r *Runtime) ImageStatus(ctx context.Context, image *runtimeapi.ImageSpec, verbose bool) (*runtimeapi.ImageStatusResponse, error)
- func (r *Runtime) ListContainers(ctx context.Context, filter *runtimeapi.ContainerFilter) ([]*runtimeapi.Container, error)
- func (r *Runtime) ListPodSandbox(ctx context.Context, filter *runtimeapi.PodSandboxFilter) ([]*runtimeapi.PodSandbox, error)
- func (r *Runtime) PodSandboxStatus(ctx context.Context, podSandboxID string, verbose bool) (*runtimeapi.PodSandboxStatusResponse, error)
- func (r *Runtime) PullImage(ctx context.Context, image *runtimeapi.ImageSpec, auth *runtimeapi.AuthConfig, ...) (string, error)
- func (r *Runtime) RemoveContainer(ctx context.Context, containerID string) error
- func (r *Runtime) RemovePodSandbox(ctx context.Context, podSandboxID string) error
- func (r *Runtime) ReopenContainerLog(ctx context.Context, containerID string) error
- func (r *Runtime) RunPodSandbox(ctx context.Context, config *runtimeapi.PodSandboxConfig, ...) (id string, retErr error)
- func (r *Runtime) StartContainer(ctx context.Context, containerID string) error
- func (r *Runtime) StopContainer(ctx context.Context, containerID string, timeout int64) error
- func (r *Runtime) StopPodSandbox(ctx context.Context, podSandboxID string) error
- func (r *Runtime) Version(ctx context.Context, apiVersion string) (*runtimeapi.VersionResponse, error)
- type RuntimeDependence
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Runtime ¶
func NewRuntime ¶
func NewRuntime(dep *RuntimeDependence) (*Runtime, error)
func (*Runtime) ContainerStatus ¶
func (r *Runtime) ContainerStatus(ctx context.Context, containerID string, verbose bool) (*runtimeapi.ContainerStatusResponse, error)
func (*Runtime) CreateContainer ¶
func (r *Runtime) CreateContainer(ctx context.Context, podSandboxID string, config *runtimeapi.ContainerConfig, sandboxConfig *runtimeapi.PodSandboxConfig) (id string, retErr error)
func (*Runtime) ImageStatus ¶
func (r *Runtime) ImageStatus(ctx context.Context, image *runtimeapi.ImageSpec, verbose bool) (*runtimeapi.ImageStatusResponse, error)
func (*Runtime) ListContainers ¶
func (r *Runtime) ListContainers(ctx context.Context, filter *runtimeapi.ContainerFilter) ([]*runtimeapi.Container, error)
func (*Runtime) ListPodSandbox ¶
func (r *Runtime) ListPodSandbox(ctx context.Context, filter *runtimeapi.PodSandboxFilter) ([]*runtimeapi.PodSandbox, error)
func (*Runtime) PodSandboxStatus ¶
func (r *Runtime) PodSandboxStatus(ctx context.Context, podSandboxID string, verbose bool) (*runtimeapi.PodSandboxStatusResponse, error)
func (*Runtime) PullImage ¶
func (r *Runtime) PullImage(ctx context.Context, image *runtimeapi.ImageSpec, auth *runtimeapi.AuthConfig, podSandboxConfig *runtimeapi.PodSandboxConfig) (string, error)
func (*Runtime) RemoveContainer ¶
func (*Runtime) RemovePodSandbox ¶
func (*Runtime) ReopenContainerLog ¶
func (*Runtime) RunPodSandbox ¶
func (r *Runtime) RunPodSandbox(ctx context.Context, config *runtimeapi.PodSandboxConfig, runtimeHandler string) (id string, retErr error)
func (*Runtime) StartContainer ¶
func (*Runtime) StopContainer ¶
func (*Runtime) StopPodSandbox ¶
func (*Runtime) Version ¶
func (r *Runtime) Version(ctx context.Context, apiVersion string) (*runtimeapi.VersionResponse, error)
type RuntimeDependence ¶
Click to show internal directories.
Click to hide internal directories.