Help us shape the future of Go! Take the 2026 Go Developer Survey

updates

package
v0.53.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImageReleaseIndex

func ImageReleaseIndex(kcdConfig *model.KubeCDConfig, filters ...ReleaseFilterFunc) (map[string][]*model.Release, error)

func TestHelperProcess

func TestHelperProcess(t *testing.T)

TestHelperProcess is required boilerplate (one per package) for using exec.TestRunner

Types

type ChartUpdate

type ChartUpdate struct {
	Release    *model.Release
	OldVersion string
	NewVersion string
	Reason     string
}

type ImageUpdate

type ImageUpdate struct {
	OldTag    string
	NewTag    string
	Release   *model.Release
	TagValue  string
	ImageRepo string
	Reason    string
}

func FindImageUpdatesForRelease

func FindImageUpdatesForRelease(release *model.Release, tagIndex TagIndex) ([]ImageUpdate, error)

type ReleaseFilterFunc

type ReleaseFilterFunc func(*model.Release) bool

func ClusterReleaseFilter

func ClusterReleaseFilter(clusterName string) ReleaseFilterFunc

func EnvironmentReleaseFilter

func EnvironmentReleaseFilter(envName string) ReleaseFilterFunc

func ImageReleaseFilter

func ImageReleaseFilter(imageRepo string) ReleaseFilterFunc

func ReleaseFilter

func ReleaseFilter(releaseNames []string) ReleaseFilterFunc

type TagIndex

type TagIndex map[string][]image.TimestampedTag

TagIndex maps image repos (without tag) to a list of tags with timestamps

func BuildTagIndexFromDockerRegistries

func BuildTagIndexFromDockerRegistries(imageIndex map[string][]*model.Release) (TagIndex, error)

func BuildTagIndexFromNewImageRef

func BuildTagIndexFromNewImageRef(newImageRef *image.DockerImageRef, imageIndex map[string][]*model.Release) TagIndex

BuildTagIndexFromNewImageRef builds a tag index from an image index, with all tags being used from the input image.

func (TagIndex) GetTagTimestamp

func (i TagIndex) GetTagTimestamp(imageRef *image.DockerImageRef) int64

func (TagIndex) GetTags

func (i TagIndex) GetTags(imageRef *image.DockerImageRef) []image.TimestampedTag

Jump to

Keyboard shortcuts

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