Documentation ¶
Index ¶
- func GetMajMinNumOfDevice(device string) (string, bool)
- func ParseCgroupFile(text string) map[string]string
- func PartialEqual(obtain, expect string) error
- func StringSliceTrimSpace(input []string) ([]string, error)
- func TmpFileWithContent(content string) (string, error)
- func TrimAllSpaceAndNewline(input string) string
- func WaitTimeout(timeout time.Duration, condition func() bool) bool
- type Goroutine
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMajMinNumOfDevice ¶
GetMajMinNumOfDevice is used for getting major:minor device number
func ParseCgroupFile ¶
ParseCgroupFile parse cgroup path from cgroup file
func PartialEqual ¶
PartialEqual is used for check if string 'obtain' has substring 'expect', return can be used in check.Assert() or somewhere else.
func StringSliceTrimSpace ¶
StringSliceTrimSpace delete empty items from string slice
func TmpFileWithContent ¶
TmpFileWithContent provide tmp file
func TrimAllSpaceAndNewline ¶
TrimAllSpaceAndNewline is used to strip all empty space and newline from a string.
Types ¶
Click to show internal directories.
Click to hide internal directories.