kubernetes: k8s.io/kubernetes/pkg/kubelet/cm/containermap Index | Files

package containermap

import "k8s.io/kubernetes/pkg/kubelet/cm/containermap"

Index

Package Files

container_map.go

type ContainerMap Uses

type ContainerMap map[string]struct {
    // contains filtered or unexported fields
}

ContainerMap maps (containerID)->(*v1.Pod, *v1.Container)

func NewContainerMap Uses

func NewContainerMap() ContainerMap

NewContainerMap creates a new ContainerMap struct

func (ContainerMap) Add Uses

func (cm ContainerMap) Add(podUID, containerName, containerID string)

Add adds a mapping of (containerID)->(podUID, containerName) to the ContainerMap

func (ContainerMap) GetContainerID Uses

func (cm ContainerMap) GetContainerID(podUID, containerName string) (string, error)

GetContainerID retrieves a ContainerID from the ContainerMap

func (ContainerMap) GetContainerRef Uses

func (cm ContainerMap) GetContainerRef(containerID string) (string, string, error)

GetContainerRef retrieves a (podUID, containerName) pair from the ContainerMap

func (ContainerMap) RemoveByContainerID Uses

func (cm ContainerMap) RemoveByContainerID(containerID string)

RemoveByContainerID removes a mapping of (containerID)->(podUID, containerName) from the ContainerMap

func (ContainerMap) RemoveByContainerRef Uses

func (cm ContainerMap) RemoveByContainerRef(podUID, containerName string)

RemoveByContainerRef removes a mapping of (containerID)->(podUID, containerName) from the ContainerMap

Package containermap imports 1 packages (graph) and is imported by 25 packages. Updated 2020-03-26. Refresh now. Tools for package owners.