Documentation ¶
Index ¶
- func Build(oc *api.OpenShiftCluster, ps string) (string, error)
- func Merge(_base, _ps string) (string, bool, error)
- func RemoveKey(_ps, key string) (string, error)
- func SetRegistryProfiles(_ps string, rps ...*api.RegistryProfile) (string, bool, error)
- func UnmarshalSecretData(ps *corev1.Secret) (map[string]string, error)
- func Validate(_ps string) error
- type UserPass
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Merge ¶
Merge returns _ps over _base. If both _ps and _base have a given key, the version of it in _ps wins.
func SetRegistryProfiles ¶
func UnmarshalSecretData ¶
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
Types ¶
Click to show internal directories.
Click to hide internal directories.