api

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// GroupFilePath is the unix group file path.
	GroupFilePath = "/etc/group"
	// HubbleGroupName is the hubble's default unix group name. Set HUBBLE_GROUP_NAME environment
	// variable to override.
	HubbleGroupName = "hubble"
	// HubbleGroupNameKey is the environment variable name to override the group for unix domain socket.
	HubbleGroupNameKey = "HUBBLE_GROUP_NAME"
	// SocketFileMode is the default file mode for the sockets.
	SocketFileMode os.FileMode = 0660
	// ClientTimeout specifies timeout to be used by clients
	ClientTimeout = 90 * time.Second

	// DefaultSocketPath which hubble listens to
	DefaultSocketPath = "unix:///var/run/hubble.sock"
	// DefaultSocketPathKey is the environment variable name to override the default socket path for
	// observe and status commands.
	DefaultSocketPathKey = "HUBBLE_DEFAULT_SOCKET_PATH"

	// ConnectionTimeout ...
	ConnectionTimeout = 12 * time.Second
)

Variables

This section is empty.

Functions

func GetDefaultSocketPath

func GetDefaultSocketPath() string

GetDefaultSocketPath returns the default server for status and observe command.

func GetGroupIDByName

func GetGroupIDByName(grpName string) (int, error)

GetGroupIDByName returns the group ID for the given grpName.

func GetGroupName

func GetGroupName() string

GetGroupName returns Hubble's group name.

func SetDefaultPermissions

func SetDefaultPermissions(socketPath, group string) error

SetDefaultPermissions sets the socket's group to the given group and permissions to SocketFileMode.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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