utils

package
v0.0.0-...-aff87ba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckKernel

func CheckKernel(k, major, minor int) error

CheckKernel returns nil if current kernel version is not lower than the given one

func CompareDockerVersion

func CompareDockerVersion(curVersion, comVersion string) (bool, error)

CompareDockerVersion compares current docker version with specified docker version curVersion: 1.10.0 comVersion: 1.2.0 return true

func GetDirDiskSpace

func GetDirDiskSpace(path string) float64

GetDirDiskSpace returns disk space a directory including all files takes

func GetDirInodes

func GetDirInodes(path string) int64

GetDirInodes returns inodes consumed by a directory FIXME: it is not accurate

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL