Documentation
¶
Index ¶
- func DumpJSON(r interface{}) string
- func GetContainerCgroupDir(subsystemDir, containerID string) string
- func GetProcessInContainer(cgroupParentDir, containerID string) ([]string, error)
- func ParseEnabled(value string) (bool, error)
- func ServerActiveAt(socket string) bool
- func SortUint64s(a []uint64)
- func WaitForServer(socket string, timeout time.Duration, opts ...interface{}) error
- type Uint64Slice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DumpJSON ¶
func DumpJSON(r interface{}) string
DumpJSON dumps a json-compatible struct in human-readable form
func GetContainerCgroupDir ¶
GetContainerCgroupDir finds container path in one specified subsystem directory
func GetProcessInContainer ¶
GetProcessInContainer gets the IDs of all processes in the container.
func ParseEnabled ¶
ParseEnabled returns whether the given string represents an 'enabled' state.
func ServerActiveAt ¶
ServerActiveAt checks if a gRPC server is accepting connections at the socket.
func SortUint64s ¶
func SortUint64s(a []uint64)
SortUint64s sorts a slice of uint64 in increasing order.
Types ¶
type Uint64Slice ¶
type Uint64Slice []uint64
Uint64Slice implmenents sort.Interface for a slice of uint64.
func (Uint64Slice) Less ¶
func (s Uint64Slice) Less(i, j int) bool
Less returns true if element at 'i' is less than the element at 'j'
Click to show internal directories.
Click to hide internal directories.