Documentation ¶
Index ¶
- func CopyFile(source string, destination string) (int64, error)
- func DecodeYAML(r io.ReadCloser, as interface{}) error
- func EncodeToYAML(obj interface{}) ([]byte, error)
- func IsDirectory(path string) (bool, error)
- func ReadYAMLFromFile(path string, as interface{}) error
- func RemoveSymLink(path string) error
- type OSArchPair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeYAML ¶
func DecodeYAML(r io.ReadCloser, as interface{}) error
DecodeYAML tries to decode file as YAML format
func EncodeToYAML ¶
func IsDirectory ¶ added in v0.0.7
func ReadYAMLFromFile ¶
ReadYAMLFromFile loads a file from the FS into the provided object.
func RemoveSymLink ¶
RemoveSymLink removes a symlink reference if exists.
Types ¶
type OSArchPair ¶
type OSArchPair struct {
OS, Arch string
}
OSArchPair is wrapper around operating system and architecture
func OSArch ¶
func OSArch() OSArchPair
OSArch returns the OS/arch combination to be used on the current system
func (OSArchPair) String ¶
func (p OSArchPair) String() string
String converts environment into a string
Click to show internal directories.
Click to hide internal directories.