token

package
v0.0.10-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CredExtractor

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

func CreateCredExtractor

func CreateCredExtractor() *CredExtractor

func (*CredExtractor) GetCredentials

func (c *CredExtractor) GetCredentials(ctx context.Context, named reference.Named) (username, password string, err error)

type Extractor

type Extractor interface {
	// Prints the name of the extractor
	Name() string
	// Returns true if extractor is supported for extracting credentials for the given image
	IsSupported(named reference.Named) bool
	// Returns the proper credentials for the given image
	GetCredentials(ctx context.Context, named reference.Named) (username, password string, err error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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