outdated

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SemverOutlierMajorVersionThreshold defines the number of major versions that must be skipped before
	// the next version is considered an outlier
	// setting this to 2 allows only 1 major version to be skipped
	SemverOutlierMajorVersionThreshold = 2
)

Variables

This section is empty.

Functions

func ParseImageName

func ParseImageName(imageName string) (string, string, string, error)

Types

type CheckResult

type CheckResult struct {
	IsAccessible   bool
	LatestVersion  string
	VersionsBehind int64
	CheckError     string
	Path           string
}

type DockerAuth added in v0.3.3

type DockerAuth struct {
	Auth string `json:"auth"`
}

type DockerConfig added in v0.3.3

type DockerConfig struct {
	Auths map[string]DockerAuth `json:"auths"`
}

type Outdated

type Outdated struct {
}

func (Outdated) ListImages

func (o Outdated) ListImages(configFlags *genericclioptions.ConfigFlags, imageNameCh chan string, ignoreNs []string) ([]RunningImage, error)

func (Outdated) ParseImage

func (o Outdated) ParseImage(image string, pullableImage string) (*CheckResult, error)

type RunningImage

type RunningImage struct {
	Namespace     string
	Pod           string
	InitContainer *string
	Container     *string
	Image         string
	PullableImage string
}

type SemverTagCollection

type SemverTagCollection []*semver.Version

func (SemverTagCollection) Len

func (c SemverTagCollection) Len() int

func (SemverTagCollection) Less

func (c SemverTagCollection) Less(i, j int) bool

func (SemverTagCollection) RemoveLeastSpecific

func (c SemverTagCollection) RemoveLeastSpecific() []*semver.Version

RemoveLeastSpecific given a sorted collection will remove the least specific version

func (SemverTagCollection) Swap

func (c SemverTagCollection) Swap(i, j int)

func (SemverTagCollection) Unique

func (c SemverTagCollection) Unique() ([]*semver.Version, error)

Unique will create a new sorted slice with the same versions that have different tags removed. While this is valid in semver, it's used in docker images differently For example: redis:4-alpine and redis:4-debian are the same version

func (SemverTagCollection) VersionsBehind

func (c SemverTagCollection) VersionsBehind(currentVersion *semver.Version) ([]*semver.Version, error)

type V1History

type V1History struct {
	Created string `json:"created,omitempty"`
}

type VersionTag

type VersionTag struct {
	Sort    int    `json:"sort"`
	Version string `json:"version"`
	Date    string `json:"date"`
}

Jump to

Keyboard shortcuts

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