Documentation ¶
Index ¶
- Constants
- func ParseImageName(imageName string) (string, string, string, error)
- type CheckResult
- type DockerAuth
- type DockerConfig
- type Outdated
- type RunningImage
- type SemverTagCollection
- func (c SemverTagCollection) Len() int
- func (c SemverTagCollection) Less(i, j int) bool
- func (c SemverTagCollection) RemoveLeastSpecific() []*semver.Version
- func (c SemverTagCollection) Swap(i, j int)
- func (c SemverTagCollection) Unique() ([]*semver.Version, error)
- func (c SemverTagCollection) VersionsBehind(currentVersion *semver.Version) ([]*semver.Version, error)
- type V1History
- type VersionTag
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 ¶
Types ¶
type CheckResult ¶
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 SemverTagCollection ¶
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 ¶
type VersionTag ¶
Click to show internal directories.
Click to hide internal directories.