tagcheck

package
v0.0.0-...-e6eacfd Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2017 License: MIT Imports: 6 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

Jump to

Keyboard shortcuts

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