util

package
v1.2.0-alpha.5....-8a98da9 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashObject

func HashObject(obj runtime.Object, codec runtime.Codec) (string, error)

func ParseFileSource

func ParseFileSource(source string) (keyName, filePath string, err error)

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

func ParseLiteralSource(source string) (keyName, value string, err error)

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

func ParseRFC3339(s string, nowFn func() metav1.Time) (metav1.Time, error)

ParseRFC3339 parses an RFC3339 date in either RFC3339Nano or RFC3339 format.

func Umask

func Umask(mask int) (old int, err error)

Types

This section is empty.

Directories

Path Synopsis
Package transport provides a round tripper capable of caching HTTP responses.
Package transport provides a round tripper capable of caching HTTP responses.

Jump to

Keyboard shortcuts

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