dockerruntime

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerRuntime

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

DockerRuntime docker runtime object

func NewDockerRuntime

func NewDockerRuntime(client libdocker.Interface) (*DockerRuntime, error)

NewDockerRuntime instantiate a docker runtime object

func (*DockerRuntime) GetNetNS

func (dr *DockerRuntime) GetNetNS(podSandboxID string) (string, error)

GetNetNS returns the network namespace of the given containerID. The ID supplied is typically the ID of a pod sandbox. This getter doesn't try to map non-sandbox IDs to their respective sandboxes.

func (*DockerRuntime) GetSandboxID

func (dr *DockerRuntime) GetSandboxID(containerID string) (string, error)

GetSandboxID returns kubernete's docker "pause" container ID

Jump to

Keyboard shortcuts

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