Documentation ¶
Index ¶
- Constants
- Variables
- func DefaultSockPath() string
- func Hint(err error) error
- type Client
- func (c *Client) IPAMAllocate(family, owner string, expiration bool) (*models.IPAMResponse, error)
- func (c *Client) IPAMAllocateIP(ip, owner string) error
- func (c *Client) IPAMCNIAllocate(family, owner, containerID, netns string) (*models.IPAMResponse, error)
- func (c *Client) IPAMCNIRDMAAllocate(family, owner, containerID, netns string) ([]*models.RDMAIPAMResponse, error)
- func (c *Client) IPAMCNIRDMAReleaseIP(owner, containerID, netns string) error
- func (c *Client) IPAMCNIReleaseIP(owner, containerID, netns string) error
- func (c *Client) IPAMReleaseIP(ip string) error
- type StatusDetails
Constants ¶
const ( AddressFamilyIPv6 = "ipv6" AddressFamilyIPv4 = "ipv4" )
Variables ¶
var ( // StatusAllDetails causes no additional status details to be printed by // FormatStatusResponse. StatusNoDetails = StatusDetails{} // StatusAllDetails causes all status details to be printed by FormatStatusResponse. StatusAllDetails = StatusDetails{ AllAddresses: true, AllControllers: true, AllNodes: true, AllRedirects: true, AllClusters: true, BPFMapDetails: true, KubeProxyReplacementDetails: true, ClockSourceDetails: true, } )
Functions ¶
func DefaultSockPath ¶
func DefaultSockPath() string
DefaultSockPath returns default UNIX domain socket path or path set using CILIUM_SOCK env variable
Types ¶
type Client ¶
func NewClient ¶
NewClient creates a client for the given `host`. If host is nil then use SockPath provided by CILIUM_SOCK or the cce default SockPath
func NewDefaultClient ¶
NewDefaultClient creates a client with default parameters connecting to UNIX domain socket.
func NewDefaultClientWithTimeout ¶
NewDefaultClientWithTimeout creates a client with default parameters connecting to UNIX domain socket and waits for cce-agent availability.
func (*Client) IPAMAllocate ¶
IPAMAllocate allocates an IP address out of address family specific pool.
func (*Client) IPAMAllocateIP ¶
IPAMAllocateIP tries to allocate a particular IP address.
func (*Client) IPAMCNIAllocate ¶
func (c *Client) IPAMCNIAllocate(family, owner, containerID, netns string) (*models.IPAMResponse, error)
IPAMCNIAllocate allocates an IP address out of address family specific pool.
func (*Client) IPAMCNIRDMAAllocate ¶
func (c *Client) IPAMCNIRDMAAllocate(family, owner, containerID, netns string) ([]*models.RDMAIPAMResponse, error)
func (*Client) IPAMCNIRDMAReleaseIP ¶
func (*Client) IPAMCNIReleaseIP ¶
IPAMCNIReleaseIP releases a IP address back to the pool.
func (*Client) IPAMReleaseIP ¶
IPAMReleaseIP releases a IP address back to the pool.
type StatusDetails ¶
type StatusDetails struct { // AllAddress causes all addresses to be printed by FormatStatusResponse. AllAddresses bool // AllControllers causes all controllers to be printed by FormatStatusResponse. AllControllers bool // AllNodes causes all nodes to be printed by FormatStatusResponse. AllNodes bool // AllRedirects causes all redirects to be printed by FormatStatusResponse. AllRedirects bool // AllClusters causes all clusters to be printed by FormatStatusResponse. AllClusters bool // BPFMapDetails causes BPF map details to be printed by FormatStatusResponse. BPFMapDetails bool // KubeProxyReplacementDetails causes BPF kube-proxy details to be printed by FormatStatusResponse. KubeProxyReplacementDetails bool // ClockSourceDetails causes BPF time-keeping internals to be printed by FormatStatusResponse. ClockSourceDetails bool }