utils

package
v0.2.1-0...-d3ae3b1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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

func GetContainerCgroupDir(subsystemDir, containerID string) string

GetContainerCgroupDir finds container path in one specified subsystem directory

func GetProcessInContainer

func GetProcessInContainer(cgroupParentDir, containerID string) ([]string, error)

GetProcessInContainer gets the IDs of all processes in the container.

func ServerActiveAt

func ServerActiveAt(socket string) bool

ServerActiveAt checks if a gRPC server is accepting connections at the socket.

func WaitForServer

func WaitForServer(socket string, timeout time.Duration, opts ...interface{}) error

WaitForServer waits for a gRPC server to start accepting connections on a socket.

Types

This section is empty.

Jump to

Keyboard shortcuts

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