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 ¶
type MetadataStore interface {
ImageMetadataStore
SandboxMetadataStore
ContainerMetadataStore
}
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
Click to show internal directories.
Click to hide internal directories.