import "k8s.io/kubernetes/pkg/kubelet/cm/containermap"
ContainerMap maps (containerID)->(*v1.Pod, *v1.Container)
func NewContainerMap() ContainerMap
NewContainerMap creates a new ContainerMap struct
func (cm ContainerMap) Add(podUID, containerName, containerID string)
Add adds a mapping of (containerID)->(podUID, containerName) to the ContainerMap
func (cm ContainerMap) GetContainerID(podUID, containerName string) (string, error)
GetContainerID retrieves a ContainerID from the ContainerMap
GetContainerRef retrieves a (podUID, containerName) pair from the ContainerMap
func (cm ContainerMap) RemoveByContainerID(containerID string)
RemoveByContainerID removes a mapping of (containerID)->(podUID, containerName) from the ContainerMap
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 30 packages. Updated 2020-03-26. Refresh now. Tools for package owners.