registry

package
v0.0.0-...-76b3e3d Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSCred

type AWSCred struct {
	Profile string
}

type Config

type Config struct {
	Type RegType

	// Common
	Path      string
	TagFormat version.TagFormat
	Log       logr.Logger

	// RegType=ECR
	AWSCred AWSCred
}

type ECRRegistry

type ECRRegistry struct {
	Config Config
}

func (*ECRRegistry) GetTags

func (e *ECRRegistry) GetTags(currentTag string) ([]version.ImageVersion, error)

GetTags filters and gets newer tags than the specified current tag

type ECRRegistryPath

type ECRRegistryPath struct {
	AWSAccountID string
	Region       string
	Repo         string
}

type RegType

type RegType int
const (
	RegECR RegType = iota
)

type Registry

type Registry interface {
	GetTags(currentTag string) ([]version.ImageVersion, error)
}

func NewRegistry

func NewRegistry(c Config) Registry

NewRegistry creates Registry according to RegType

Jump to

Keyboard shortcuts

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