cmd

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 29, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute runs root command

Types

type Image

type Image struct {
	Image          string `json:"image"`
	CurrentVersion string `json:"current_version"`
	LatestVersion  string `json:"latest_version"`
	IsLatest       bool   `json:"is_latest"`
	Pods           []Pod  `json:"pods"`
}

Image is the image version info and its pods

func (*Image) AddPod

func (i *Image) AddPod(p Pod)

AddPod adds a new pod to the list

func (*Image) Version

func (i *Image) Version() string

Version returns a formatted image version

type Pod

type Pod struct {
	Namespace string `json:"namespace"`
	Pod       string `json:"pod"`
	Container string `json:"container"`
}

Pod describes the location where an image is used

Jump to

Keyboard shortcuts

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