Documentation ¶
Index ¶
- Constants
- 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 FileCopy(src, dest string) error
- func GetCurrentContainerId() (string, error)
- func GetFsType(device string) (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, directory, fsType, options string) error
- func RemoveString(slice []string, s string) []string
- func ResolveDevice(spec string) string
- 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 WriteFileAtomic(filename string, data []byte, perm os.FileMode) error
- type AnyMap
- type Backoff
- type ReturnsErr
Constants ¶
View Source
const (
DOCKER_CGROUPS_FILE = "/proc/self/cgroup"
)
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 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 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.