Documentation ¶
Index ¶
- func CmdOpts() exec.CmdOpts
- func GetBoolFlag(key string) bool
- func GetFlag(key, fallback string) string
- func MarshalLocalYAMLFile(path string, obj interface{}) error
- func ReadRemoteFile(url string) ([]byte, error)
- func UnmarshalLocalFile(path string, obj interface{}) error
- func UnmarshalReader(reader io.Reader, obj interface{}) error
- func UnmarshalRemoteFile(url string, obj interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBoolFlag ¶ added in v0.12.0
func MarshalLocalYAMLFile ¶ added in v0.7.0
MarshalLocalYAMLFile writes JSON or YAML to a file on disk. The caller is responsible for checking error return values.
func ReadRemoteFile ¶ added in v0.9.0
ReadRemoteFile issues a GET request to retrieve the contents of the specified URL as a byte array. The caller is responsible for checking error return values.
func UnmarshalLocalFile ¶ added in v0.7.0
UnmarshalLocalFile retrieves JSON or YAML from a file on disk. The caller is responsible for checking error return values.
func UnmarshalReader ¶ added in v1.3.0
UnmarshalReader is used to read manifests from stdin
func UnmarshalRemoteFile ¶ added in v0.7.0
UnmarshalRemoteFile retrieves JSON or YAML through a GET request. The caller is responsible for checking error return values.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.