const ( AddressFamilyIPv6 = "ipv6" AddressFamilyIPv4 = "ipv4" )
DefaultSockPath returns default UNIX domain socket path or path set using CILIUM_SOCK env variable
func FormatStatusResponse(w io.Writer, sr *models.StatusResponse, allAddresses, allControllers, allNodes, allRedirects bool)
FormatStatusResponse writes a StatusResponse as a string to the writer.
The parameters 'allAddresses', 'allControllers', 'allNodes', respectively, cause all details about that aspect of the status to be printed to the terminal. For each of these, if they are false then only a summary will be printed, with perhaps some detail if there are errors.
FormatStatusResponseBrief writes a one-line status to the writer. If everything ok, this is "ok", otherwise a message of the form "error in ..."
Hint tries to improve the error message displayed to the user.
NewClient creates a client for the given `host`. If host is nil then use SockPath provided by CILIUM_SOCK or the cilium default SockPath
NewDefaultClient creates a client with default parameters connecting to UNIX domain socket.
NewDefaultClientWithTimeout creates a client with default parameters connecting to UNIX domain socket and waits for cilium-agent availability.
ConfigGet returns a daemon configuration.
ConfigPatch modifies the daemon configuration.
DeletePrefilter deletes a list of CIDR prefixes
DeleteServiceID deletes a service by ID.
EndpointConfigGet returns endpoint configuration
EndpointConfigPatch modifies endpoint configuration
EndpointCreate creates a new endpoint
EndpointDelete deletes endpoint
EndpointGet returns endpoint by ID
EndpointHealthGet returns endpoint healthz
EndpointLabelsGet returns endpoint label configuration
EndpointLabelsPut modifies endpoint label configuration add: List of labels to add and enable. If the label is an orchestration system label which has been disabled before, it will be removed from the disabled list and readded to the orchestration list. Otherwise it will be added to the custom label list.
delete: List of labels to delete. If the label is an orchestration system label, then it will be deleted from the orchestration list and added to the disabled list. Otherwise it will be removed from the custom list.
EndpointList returns a list of all endpoints
EndpointLogGet returns endpoint log
EndpointPatch modifies the endpoint
GetPrefilter returns a list of all CIDR prefixes
GetServiceID returns a service by ID.
GetServices returns a list of all services.
IPAMAllocate allocates an IP address out of address family specific pool.
IPAMAllocateIP tries to allocate a particular IP address.
IPAMReleaseIP releases a IP address back to the pool.
IdentityGet returns a security identity.
PatchPrefilter sets a list of CIDR prefixes
PolicyCacheGet returns the contents of a SelectorCache.
PolicyDelete deletes policy rules
PolicyGet returns policy rules
PolicyPut inserts the `policyJSON`
func (c *Client) PolicyResolveGet(traceSelector *models.TraceSelector) (*models.PolicyTraceResult, error)
PolicyResolveGet resolves policy for a Trace Selector with source and destination identity.
PutServiceID creates or updates a service. Returns true if service was created.