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 GenerateDindEngineScript(name 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 RemoveDindEngineScript(name 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 ¶
func ConvertIgnoreOmitEmpty(from, to interface{}) error
func ExistsAndExecutable ¶
func GetCurrentContainerID ¶
func GetHypervisor ¶
func GetHypervisor() string
GetHypervisor tries to detect if we're running in a VM, and returns a string for its type
func HTTPDownloadToFile ¶
func IsRunningInTty ¶
func IsRunningInTty() bool
func KVPairs2Map ¶
func Map2KVPairs ¶
func RemoveDindEngineScript ¶
func RemoveString ¶
func ResolveDevice ¶
ResolveDevice this isn't reliable - blkid -L LABEL works more often :(
func RunCommandSequence ¶
func RunCommandSequence(commandSequence []osYaml.StringandSlice) error
func TrimSplitN ¶
func UnescapeKernelParams ¶
Types ¶
type Backoff ¶
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.