ecrauth

package
v0.0.0-...-90deddd Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package ecrauth provides an interface and utilities for authenticating AWS EC2 ECR Docker repositories.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Login

func Login(ctx context.Context, auth Interface) (string, error)

Login authenticates via the provided authenticator and then returns the corresponding Docker login command.

Types

type Interface

type Interface interface {
	// Authenticates tells whether this authenticator can authenticate the
	// provided image URI.
	Authenticates(ctx context.Context, image string) (bool, error)

	// Authenticate writes authentication information into the provided config struct.
	Authenticate(ctx context.Context, cfg *types.AuthConfig) error
}

Interface is the interface that is implemented by ECR authentication providers.

Jump to

Keyboard shortcuts

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