ecr

package module
v0.0.0-...-6bae25f Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 6 Imported by: 53

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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.

Directories

Path Synopsis
api
cli

Jump to

Keyboard shortcuts

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