Documentation ¶
Index ¶
- Constants
- Variables
- func BasicFromKeyring(keyring credentialprovider.DockerKeyring, target *url.URL) (string, string)
- func CreateContext(secret []byte, skipVerification, skipTLS bool) (*registryclient.Context, error)
- func CreateDefaultContext(skipTLS bool) (*registryclient.Context, error)
- func LoadConfig(configPath string) (c v1alpha1.ImageSetConfiguration, err error)
- func New(secret []byte) (auth.CredentialStore, error)
- func ValidateSecret(cfg v1alpha1.ImageSetConfiguration) error
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.
Click to show internal directories.
Click to hide internal directories.