registry

package
v0.9.12 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: Apache-2.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetECRBasicAuthToken

func GetECRBasicAuthToken(ecrEndpoint, username, password string) (string, error)

func IsECREndpoint

func IsECREndpoint(host string) bool

func TestPushAccess added in v0.9.12

func TestPushAccess(endpoint, username, password, org string) error

Types

type BearerToken

type BearerToken struct {
	Token       string    `json:"token"`
	AccessToken string    `json:"access_token"`
	ExpiresIn   int       `json:"expires_in"`
	IssuedAt    time.Time `json:"issued_at"`
	// contains filtered or unexported fields
}

Copied from github.com/containers/image/docker Time fields aren't used

type Login

type Login struct {
	Username string
	Password string
}

func GetECRLogin

func GetECRLogin(ecrEndpoint, username, password string) (*Login, error)

Jump to

Keyboard shortcuts

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