mapping

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPodName

func GetPodName(container containers.Container) string

GetPodName resolves pod name where the container belongs

func InitialisePodModel

func InitialisePodModel(container containers.Container, namespace, name, hostname string) model.Pod

InitialisePodModel creates new Pod struct with name and namespace metadata

func MapContainerStatusToInternalModel

func MapContainerStatusToInternalModel(container containers.Container, status containerd.Status) model.ContainerStatus

MapContainerStatusToInternalModel maps containerd model to internal container status model

func MapContainerToInternalModel

func MapContainerToInternalModel(container containers.Container) model.Container

MapContainerToInternalModel maps containerd model to internal model

func MapContainersToInternalModel

func MapContainersToInternalModel(containers []containers.Container) (result []model.Container)

MapContainersToInternalModel maps containerd models to internal model

func MapMountToContainerdModel

func MapMountToContainerdModel(mount model.Mount) specs.Mount

MapMountToContainerdModel maps model.Mount to containerd spec struct

func MapPipeToContainerdModel

func MapPipeToContainerdModel(pipe model.PipeSet) extensions.PipeSet

MapPipeToContainerdModel maps model.PipeSet to containerd extension PipeSet

func RequireTty

func RequireTty(container containers.Container) bool

RequireTty find out is the container configured to create TTY

Types

type ContainerLabels

type ContainerLabels map[string]string

ContainerLabels is helper type for managing container labels

func NewLabels

func NewLabels(pod model.Pod, container model.Container) ContainerLabels

NewLabels constructs new labels map for new container

Jump to

Keyboard shortcuts

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