package util
import "k8s.io/kubernetes/pkg/kubectl/util"
Index ¶
- 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)
- func Umask(mask int) (old int, err error)
Functions ¶
func HashObject ¶
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.
func ParseRFC3339 ¶
ParseRFC3339 parses an RFC3339 date in either RFC3339Nano or RFC3339 format.
func Umask ¶
Source Files ¶
umask.go util.go
Directories ¶
Path | Synopsis |
---|---|
pkg/kubectl/util/crlf | |
pkg/kubectl/util/hash | |
pkg/kubectl/util/i18n | |
pkg/kubectl/util/logs | |
pkg/kubectl/util/slice | |
pkg/kubectl/util/term |
- Version
- v1.9.6
- Published
- Mar 20, 2018
- Platform
- js/wasm
- Imports
- 9 packages
- Last checked
- 38 seconds ago –
Tools for package owners.