Documentation ¶
Index ¶
- 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 Unmarshal(data []byte, obj interface{}) 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 ¶
func MarshalLocalYAMLFile ¶
MarshalLocalYAMLFile writes JSON or YAML to a file on disk. The caller is responsible for checking error return values.
func ReadRemoteFile ¶
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 ¶
UnmarshalLocalFile retrieves JSON or YAML from a file on disk. The caller is responsible for checking error return values.
func UnmarshalReader ¶
UnmarshalReader is used to read manifests from stdin
func UnmarshalRemoteFile ¶
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.