...

Package ecr

import "github.com/awslabs/amazon-ecr-credential-helper/ecr-login"
Overview
Index
Subdirectories

Overview ▾

type ECRHelper

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

func NewECRHelper

func NewECRHelper(opts ...Option) *ECRHelper

NewECRHelper returns a new ECRHelper with the given options to override default behavior.

func (ECRHelper) Add

func (ECRHelper) Add(creds *credentials.Credentials) error

func (ECRHelper) Delete

func (ECRHelper) Delete(serverURL string) error

func (ECRHelper) Get

func (self ECRHelper) Get(serverURL string) (string, string, error)

func (ECRHelper) List

func (self ECRHelper) List() (map[string]string, error)

type Option

type Option func(*ECRHelper)

func WithClientFactory

func WithClientFactory(clientFactory api.ClientFactory) Option

WithClientFactory sets the ClientFactory used to make API requests.

func WithLogger

func WithLogger(w io.Writer) Option

WithLogger sets a new logger instance that writes to the given writer, instead of the default writer which writes to stderr.

This can be useful if callers want to redirect logging emitted by this tool to another location.

Subdirectories