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 ¶
GetGroupIDByName returns the group ID for the given grpName.
func SetDefaultPermissions ¶
SetDefaultPermissions sets the socket's group to the given group and permissions to SocketFileMode.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.