oci

package
v0.0.0-...-c1ac5a8 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2024 License: MIT Imports: 15 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertSecrets

func ConvertSecrets(img RegistryImage, proxyRegistryMap map[string]string) []image.RegistryCredentials

func LegacyLoadFromReader

func LegacyLoadFromReader(configData io.Reader, configFile *configfile.ConfigFile) error

LegacyLoadFromReader reads the non-nested configuration data given and sets up the auth config information with given directory and populates the receiver object

func ResolveAuthConfig

func ResolveAuthConfig(image RegistryImage) (types.AuthConfig, error)

func ResolveAuthConfigWithPullSecret

func ResolveAuthConfigWithPullSecret(image RegistryImage, pullSecret KubeCreds) (types.AuthConfig, error)

Types

type KubeCreds

type KubeCreds struct {
	SecretName      string
	SecretCredsData []byte
	IsLegacySecret  bool
}

type RegistryImage

type RegistryImage struct {
	ImageID     string
	Image       string
	PullSecrets []*KubeCreds
}

Jump to

Keyboard shortcuts

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