Documentation ¶
Index ¶
- func GetPodName(container containers.Container) string
- func InitialisePodModel(container containers.Container, namespace, name, hostname string) model.Pod
- func MapContainerStatusToInternalModel(container containers.Container, status containerd.Status) model.ContainerStatus
- func MapContainerToInternalModel(container containers.Container) model.Container
- func MapContainersToInternalModel(containers []containers.Container) (result []model.Container)
- func MapMountToContainerdModel(mount model.Mount) specs.Mount
- func MapPipeToContainerdModel(pipe model.PipeSet) extensions.PipeSet
- func RequireTty(container containers.Container) bool
- type ContainerLabels
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 ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.