Documentation ¶
Index ¶
- func HandleConfigMapFromEnvFileSource(configMap *v1.ConfigMap, envFileSource string) error
- func HandleConfigMapFromFileSources(configMap *v1.ConfigMap, fileSources []string) error
- func HandleConfigMapFromLiteralSources(configMap *v1.ConfigMap, literalSources []string) error
- func HandleFromEnvFileSource(secret *v1.Secret, envFileSource string) error
- func HandleFromFileSources(secret *v1.Secret, fileSources []string) error
- func HandleFromLiteralSources(secret *v1.Secret, literalSources []string) error
- func HashObject(obj runtime.Object, codec runtime.Codec) (string, error)
- func ParseFileSource(source string) (keyName, filePath string, err error)
- func ParseLiteralSource(source string) (keyName, value string, err error)
- func ParseRFC3339(s string, nowFn func() metav1.Time) (metav1.Time, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleConfigMapFromEnvFileSource ¶
handleConfigMapFromEnvFileSource adds the specified env file source information into the provided configMap
func HandleConfigMapFromFileSources ¶
handleConfigMapFromFileSources adds the specified file source information into the provided configMap
func HandleConfigMapFromLiteralSources ¶
handleConfigMapFromLiteralSources adds the specified literal source information into the provided configMap.
func HandleFromEnvFileSource ¶
HandleFromEnvFileSource adds the specified env file source information into the provided secret
func HandleFromFileSources ¶
HandleFromFileSources adds the specified file source information into the provided secret
func HandleFromLiteralSources ¶
HandleFromLiteralSources adds the specified literal source information into the provided secret
func ParseFileSource ¶
ParseFileSource parses the source given.
Acceptable formats include: 1. source-path: the basename will become the key name 2. source-name=source-path: the source-name will become the key name and source-path is the path to the key file.
Key names cannot include '='.
func ParseLiteralSource ¶
ParseLiteralSource parses the source key=val pair into its component pieces. This functionality is distinguished from strings.SplitN(source, "=", 2) since it returns an error in the case of empty keys, values, or a missing equals sign.
Types ¶
This section is empty.