api

package
v1.6.9 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: Apache-2.0 Imports: 14 Imported by: 44

Documentation

Overview

Package api provides the Cilium useful helpers for the external API

Index

Constants

View Source
const (
	// GroupFilePath is the unix group file path.
	GroupFilePath = "/etc/group"
	// CiliumGroupName is the cilium's unix group name.
	CiliumGroupName = "cilium"
	// 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
)

Variables

This section is empty.

Functions

func GetGroupIDByName added in v1.5.0

func GetGroupIDByName(grpName string) (int, error)

GetGroupIDByName returns the group ID for the given grpName.

func SetDefaultPermissions

func SetDefaultPermissions(socketPath