ecr

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package ecr provides a client to make API requests to Amazon EC2 Container Registry.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func URIFromARN

func URIFromARN(repositoryARN string) (string, error)

URIFromARN converts an ECR Repo ARN to a Repository URI

Types

type Auth

type Auth struct {
	Username string
	Password string
}

Auth represent basic authentication credentials.

type ECR added in v0.0.8

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

ECR wraps an AWS ECR client.

func New

func New(s *session.Session) ECR

New returns a ECR configured against the input session.

func (ECR) ClearRepository added in v0.0.8

func (c ECR) ClearRepository(repoName string) error

ClearRepository orchestrates a ListImages call followed by a DeleteImages call to delete all images from the input ECR repository name.

func (ECR) DeleteImages added in v0.0.8

func (c ECR) DeleteImages(images []Image, repoName string) error

DeleteImages calls the ECR BatchDeleteImage API with the input image list and repository name.

func (ECR) GetECRAuth added in v0.0.8

func (c ECR) GetECRAuth() (Auth, error)

GetECRAuth returns the basic authentication credentials needed to push images.

func (ECR) GetRepository added in v0.0.8

func (c ECR) GetRepository(name string) (string, error)

GetRepository returns the ECR repository URI.

func (ECR) ListImages added in v0.0.8

func (c ECR) ListImages(repoName string) ([]Image, error)

ListImages calls the ECR DescribeImages API and returns a list of Image metadata for images in the input ECR repository name.

type Image

type Image struct {
	Digest string
}

Image houses metadata for ECR repository images.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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