Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetImageTag ¶ added in v1.0.7
GetImageTag checks if the image has tag suffix, if it does, then it returns it
func ParseImageID ¶ added in v1.0.1
ParseImageID checks if passed in imageID is just id, if it is it returns it. If it is not, then it parses image and returns only image ID
Types ¶
type Client ¶
type Client struct { Namespace string // contains filtered or unexported fields }
func (Client) ListRegistries ¶
func (c Client) ListRegistries(allNamespaces bool) (Registries, error)
type Container ¶
type Containers ¶
type Containers []Container
type ID ¶ added in v1.0.1
type ID struct { Name string // contains filtered or unexported fields }
ID is container image digest/ID, it comes from container status after image is pulled
func (ID) ListContainers ¶ added in v1.0.1
type ImageName ¶
func ParseImageName ¶
type Node ¶ added in v1.0.5
type Node struct { Name string Created time.Time NodeImages NodeImages }
type NodeImages ¶ added in v1.0.5
type NodeImages []nodeImage
func (NodeImages) GetSizeBytes ¶ added in v1.0.5
func (n NodeImages) GetSizeBytes(imageName ImageName) int64
GetSizeBytes return size in bytes if the image is found on this node, 0 is returned otherwise
type Registries ¶
Registries map where key is registry name (e.g. gcr.io) and value is Registry struct
func NewRegistries ¶
func NewRegistries(nodes map[string]Node, pods []v1.Pod) Registries
func (Registries) List ¶
func (r Registries) List() []Registry
type Registry ¶
type Registry struct { Name string // contains filtered or unexported fields }
Registry (e.g. gcr.io) 'bucket' of repositories (and images)
func (Registry) ListRepositories ¶
func (r Registry) ListRepositories() []Repository
type Repository ¶
Repository (image name without registry and tag/id e.g. jacksontj/promxy) 'bucket' of tags/ids
func (Repository) ListIDs ¶ added in v1.0.7
func (r Repository) ListIDs() []ID
Click to show internal directories.
Click to hide internal directories.