config

package
v0.1.1-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SourceDir        = "src"
	PublishDir       = "publish"
	InternalDir      = "internal"
	HelmDir          = "charts"
	MetadataFile     = ".metadata.json"
	AssociationsFile = "image-associations.gob"
)

Variables

View Source
var (
	MetadataBasePath = filepath.Join(PublishDir, MetadataFile)

	// AssociationsBasePath stores image association data in opaque binary format.
	AssociationsBasePath = filepath.Join(InternalDir, AssociationsFile)
)

Functions

func BasicFromKeyring

func BasicFromKeyring(keyring credentialprovider.DockerKeyring, target *url.URL) (string, string)

BasicFromKeyring finds Basic authorization credentials from a Docker keyring for the given URL as username and password. It returns empty strings if no such URL matches.

func CreateContext

func CreateContext(secret []byte, skipVerification, skipTLS bool) (*registryclient.Context, error)

CreateContext a new context for the registryClient of `oc mirror`

func CreateDefaultContext

func CreateDefaultContext(skipTLS bool) (*registryclient.Context, error)

CreateDefault a default context for the registryClient of `oc mirror`

func LoadConfig

func LoadConfig(configPath string) (c v1alpha1.ImageSetConfiguration, err error)

func New

func New(secret []byte) (auth.CredentialStore, error)

New creates a new credential store for the provided secret content

func ValidateSecret

func ValidateSecret(cfg v1alpha1.ImageSetConfiguration) error

Types

This section is empty.

Directories

Path Synopsis
Package v1alpha1 provides the ImageSetConfiguration and Metadata used for configuring oc imageset.
Package v1alpha1 provides the ImageSetConfiguration and Metadata used for configuring oc imageset.

Jump to

Keyboard shortcuts

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