pullsecret

package
v0.0.0-...-823d357 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(oc *api.OpenShiftCluster, ps string) (string, error)

func Merge

func Merge(_base, _ps string) (string, bool, error)

Merge returns _ps over _base. If both _ps and _base have a given key, the version of it in _ps wins.

func RemoveKey

func RemoveKey(_ps, key string) (string, error)

func SetRegistryProfiles

func SetRegistryProfiles(_ps string, rps ...*api.RegistryProfile) (string, bool, error)

func UnmarshalSecretData

func UnmarshalSecretData(ps *corev1.Secret) (map[string]string, error)

Unmarshal pull-secret data which is stored in corev1.Secret.Data the data has form:

{"auths": {"secret key": {"auth": "secret value"}, "secret key": {"auth": "secret value"}}}

returns map of extracted secrets in a form:

{"secret key": "secret value"}

error is returned when parsing fails

func Validate

func Validate(_ps string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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