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 ExistsAndExecutable(path string) bool
- 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 UnescapeKernelParams(s string) 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 ExistsAndExecutable ¶ added in v0.6.0
func GetCurrentContainerId ¶ added in v0.5.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 ¶
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.