tagcheck

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageTagChecker

type ImageTagChecker interface {
	AllTagsExist(tags []string, repo string) (bool, []string, error)
}

ImageTagChecker describes an object that can see if a tag exists for an image in a registry

type RegistryTagChecker

type RegistryTagChecker struct {
	// contains filtered or unexported fields
}

RegistryTagChecker is an object that can check a remote registry for a set of tags

func NewRegistryTagChecker

func NewRegistryTagChecker(dockercfg *config.Dockerconfig, loggerFunc func(string, ...interface{})) *RegistryTagChecker

NewRegistryTagChecker returns a RegistryTagChecker using the specified dockercfg for authentication

func (*RegistryTagChecker) AllTagsExist

func (rtc *RegistryTagChecker) AllTagsExist(tags []string, repo string) (bool, []string, error)

AllTagsExist checks a remote registry to see if all tags exist for the given repository. It returns the missing tags, if any. Only quay.io is supported for now as each registry demonstrates different behavior when using the Docker Registry V2 API

Jump to

Keyboard shortcuts

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