metadata

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerInfo

type ContainerInfo struct {
	Name                string
	CreatedAt           int64
	StartedAt           int64
	SandboxId           string
	Image               string
	RootImageVolumeName string
	Labels              map[string]string
	Annotations         map[string]string
	SandBoxAnnotations  map[string]string
	Attempt             uint32
	State               kubeapi.ContainerState
}

ContainerInfo contains metadata informations about container instance

type ContainerMetadataStore

type ContainerMetadataStore interface {
	SetContainer(name, containerId, sandboxId, image, rootImageVolumeName string, labels, annotations map[string]string, attempt uint32, clock clockwork.Clock) error
	UpdateStartedAt(containerId string, startedAt string) error
	UpdateState(containerId string, state byte) error
	GetContainerInfo(containerId string) (*ContainerInfo, error)
	RemoveContainer(containerId string) error
}

ContainerMetadataStore contains methods to operate on containers (VMs)

type ImageMetadataStore

type ImageMetadataStore interface {
	SetImageName(volumeName, imageName string) error
	GetImageName(volumeName string) (string, error)
	RemoveImage(volumeName string) error
}

ImageMetadataStore contains methods to operate on VM images

type MetadataStore

MetadataStore provides single interface for metadata storage implementation

type SandboxMetadataStore

type SandboxMetadataStore interface {
	SetPodSandbox(config *kubeapi.PodSandboxConfig, networkConfiguration []byte, state kubeapi.PodSandboxState, clock clockwork.Clock) error
	UpdatePodState(podId string, state byte) error
	RemovePodSandbox(podId string) error
	GetPodSandboxContainerID(podId string) (string, error)
	GetPodSandboxAnnotations(podId string) (map[string]string, error)
	GetPodSandboxStatus(podId string) (*kubeapi.PodSandboxStatus, error)
	ListPodSandbox(filter *kubeapi.PodSandboxFilter) ([]*kubeapi.PodSandbox, error)
	GetPodNetworkConfigurationAsBytes(podId string) ([]byte, error)
}

SandboxMetadataStore contains methods to operate on POD sandboxes

Jump to

Keyboard shortcuts

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