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 HTTPDownloadToFile(url, dest string) error
- 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 ExistsAndExecutable ¶ added in v0.6.0
func GetCurrentContainerID ¶ added in v0.8.0
func GetHypervisor ¶ added in v1.4.0
func GetHypervisor() string
GetHypervisor tries to detect if we're running in a VM, and returns a string for its type
func HTTPDownloadToFile ¶ added in v1.4.0
func IsRunningInTty ¶
func IsRunningInTty() bool
func KVPairs2Map ¶ added in v0.3.1
func Map2KVPairs ¶ added in v0.3.1
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 RemoveString ¶ added in v0.5.0
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 TrimSplitN ¶ added in v0.4.0
func UnescapeKernelParams ¶ added in v0.6.0
Types ¶
type Backoff ¶ added in v0.4.0
type Backoff struct {
StartMillis, MaxIntervalMillis, MaxMillis int
// contains filtered or unexported fields
}
type ReturnsErr ¶
type ReturnsErr func() error
Click to show internal directories.
Click to hide internal directories.