runtime

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	ID           string
	Pid          string
	PodNamespace string
	PodName      string
	Type         string // io.kubernetes.docker.type podsandbox/container
	State        string
}

type Create

type Create func() Interface

type DockerService

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

func NewDockerClient

func NewDockerClient(timeout time.Duration) (*DockerService, error)

func (*DockerService) ListContainer

func (c *DockerService) ListContainer() ([]Container, error)

func (*DockerService) ListPodSandbox

func (c *DockerService) ListPodSandbox() ([]Container, error)

type Interface

type Interface interface {
	ListPodSandbox() ([]Container, error)
}

func GetRuntime

func GetRuntime() Interface

type RemoteRuntimeService

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

RemoteRuntimeService is a gRPC implementation of internalapi.RuntimeService.

func NewRemoteRuntimeService

func NewRemoteRuntimeService(endpoint string, connectionTimeout time.Duration) (*RemoteRuntimeService, error)

NewRemoteRuntimeService creates a new internalapi.RuntimeService.

func (*RemoteRuntimeService) ListPodSandbox

func (r *RemoteRuntimeService) ListPodSandbox() ([]Container, error)

ListPodSandbox returns a list of PodSandboxes.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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