providers

package
v0.0.0-...-cfe5cd0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACR

type ACR struct {
	ACRConfig
}

func (*ACR) Enabled

func (p *ACR) Enabled() bool

func (*ACR) GetAuthToken

func (p *ACR) GetAuthToken() ([]AuthToken, error)

type ACRConfig

type ACRConfig struct {
	RegistryURL string
	ClientID    string
	Password    string
}

type AuthToken

type AuthToken struct {
	AccessToken string
	Endpoint    string
}

AuthToken represents an Access Token and an Endpoint for a registry service

type DPR

type DPR struct {
	DPRConfig
}

func (*DPR) Enabled

func (p *DPR) Enabled() bool

func (*DPR) GetAuthToken

func (p *DPR) GetAuthToken() ([]AuthToken, error)

type DPRConfig

type DPRConfig struct {
	User     string
	Password string
	Server   string
}

type ECR

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

func (*ECR) Enabled

func (p *ECR) Enabled() bool

func (*ECR) GetAuthToken

func (p *ECR) GetAuthToken() ([]AuthToken, error)

type ECRConfig

type ECRConfig struct {
	AwsAccountIds []string
	AwsRegion     string
	AWSAssumeRole *string
}

type GCR

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

func (*GCR) Enabled

func (p *GCR) Enabled() bool

func (*GCR) GetAuthToken

func (p *GCR) GetAuthToken() ([]AuthToken, error)

type GCRClient

type GCRClient struct{}

func (GCRClient) DefaultTokenSource

func (gcr GCRClient) DefaultTokenSource(ctx context.Context, scope ...string) (oauth2.TokenSource, error)

type GCRInterface

type GCRInterface interface {
	DefaultTokenSource(ctx context.Context, scope ...string) (oauth2.TokenSource, error)
}

type Provider

type Provider interface {
	GetAuthToken() ([]AuthToken, error)
	Enabled() bool
}

func NewACR

func NewACR(config ACRConfig) Provider

func NewDPR

func NewDPR(config DPRConfig) Provider

func NewECR

func NewECR(config ECRConfig) Provider

func NewGCR

func NewGCR(url string) Provider

Jump to

Keyboard shortcuts

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