registry

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupSyncStart

func CleanupSyncStart() error

func ProviderByRepo

func ProviderByRepo(repoARN string) string

ProviderByRepo generates Type based on image ARN

func SetSyncStatus

func SetSyncStatus() error

func SyncCheck

func SyncCheck(d time.Duration) error

Types

type Syncer

type Syncer interface {
	Sync() error
}

Syncer offers capability to periodically sync with docker registry

type Tagger

type Tagger interface {
	// Add adds list of tags to the image identified with version
	Add(ecr string, version string, tags ...string) error
	// Remove removes the list of tags from ECR repository such that no image contains these
	// tags
	Remove(ecr string, tags ...string) error
	// Get gets the list of tags to the image identified with version
	Get(ecr string, version string) ([]string, error)
}

Tagger provides capability of adding/removing environment tags on ECR This interface is purely designed for CI/CD purposes such that the version tag ex git SHA is unique on images (images can be uniquely identified by such version tags). Environment tags or any other tags are then added or removed from the ECR images.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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