ecr

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PolicyDocument

type PolicyDocument struct {
	Version   string
	Statement []StatementEntry
}

PolicyDocument in an IAM Policy

type PrincipalEntry

type PrincipalEntry struct {
	AWS []string
}

PrincipalEntry in an IAM Policy

type ProgressDisplay

type ProgressDisplay struct {
	Bars  map[string]int
	Lines int
}

func (*ProgressDisplay) Update

func (p *ProgressDisplay) Update(data *ProgressLine)

Update the progress and print the output

type ProgressLine

type ProgressLine struct {
	ID             string
	Status         string
	Progress       string
	ProgressDetail map[string]int
	Error          string
}

type PushCommand

type PushCommand struct{}

type Registry

type Registry struct {
	Repositories map[string]Repository
	// contains filtered or unexported fields
}

Registry represents your an ECR in a region

func NewRegistry

func NewRegistry() *Registry

NewRegistry creates a new Registry object

func (*Registry) CreateRepository

func (r *Registry) CreateRepository(name string) (*ecr.Repository, error)

CreateRepository creates the named repository

func (*Registry) FetchAll

func (r *Registry) FetchAll() error

FetchAll gets all the repositories and updates their tags and latest

func (*Registry) GetRepositories

func (r *Registry) GetRepositories() []Repository

GetRepositories gets a list of repositories in alphabetical order

func (*Registry) PushRepository

func (r *Registry) PushRepository(name string, versions []string) error

PushRepository pushes

type Repository

type Repository struct {
	URI       string
	Name      string
	LatestTag string
	Tags      []string
}

Repository represents a repository within the registry

type StatementEntry

type StatementEntry struct {
	Sid       string
	Effect    string
	Principal PrincipalEntry
	Action    []string
}

StatementEntry in an IAM Policy

Jump to

Keyboard shortcuts

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