Documentation ¶
Index ¶
- func Blkid(label string) (deviceName, deviceType string, err error)
- func Contains(values []string, value string) bool
- func Convert(from, to interface{}) error
- func ConvertIgnoreOmitEmpty(from, to interface{}) error
- func Copy(d interface{}) interface{}
- func ExistsAndExecutable(path string) bool
- func FileCopy(src, dest string) error
- func GetCurrentContainerID() (string, error)
- func GetFsType(device string) (string, error)
- func GetHypervisor() string
- func IsRunningInTty() bool
- func KVPairs2Map(kvs []string) map[string]string
- func Map2KVPairs(m map[string]string) []string
- func MapCopy(data map[interface{}]interface{}) map[interface{}]interface{}
- func Merge(left, right map[interface{}]interface{}) map[interface{}]interface{}
- func Mount(device, target, fsType, options string) error
- func RemoveString(slice []string, s string) []string
- func ResolveDevice(spec string) string
- func RunCommandSequence(commandSequence []osYaml.StringandSlice) error
- func RunScript(path string) error
- func SliceCopy(data []interface{}) []interface{}
- func ToStrings(data []interface{}) []string
- func TrimSplit(str, sep string) []string
- func TrimSplitN(str, sep string, count int) []string
- func UnescapeKernelParams(s string) string
- func Unmount(target string) error
- func WriteFileAtomic(filename string, data []byte, perm os.FileMode) error
- type AnyMap
- type Backoff
- type ReturnsErr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertIgnoreOmitEmpty ¶ added in v0.4.4
func ConvertIgnoreOmitEmpty(from, to interface{}) error
func Copy ¶ added in v0.4.0
func Copy(d interface{}) interface{}
func GetHypervisor ¶ added in v1.0.4
func GetHypervisor() string
GetHypervisor tries to detect if we're running in a VM, and returns a string for its type
func MapCopy ¶ added in v0.4.0
func MapCopy(data map[interface{}]interface{}) map[interface{}]interface{}
func Merge ¶ added in v0.5.0
func Merge(left, right map[interface{}]interface{}) map[interface{}]interface{}
func ResolveDevice ¶
ResolveDevice this isn't reliable - blkid -L LABEL works more often :(
func RunCommandSequence ¶ added in v0.8.0
func RunCommandSequence(commandSequence []osYaml.StringandSlice) error
func SliceCopy ¶ added in v0.4.0
func SliceCopy(data []interface{}) []interface{}
Types ¶
type AnyMap ¶ added in v0.4.0
type AnyMap map[interface{}]interface{}
Click to show internal directories.
Click to hide internal directories.