Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) ConfigGet() (*models.DaemonConfigurationResponse, error)
- func (c *Client) ConfigPatch(cfg models.ConfigurationMap) error
- func (c *Client) DeleteServiceID(id int64) error
- func (c *Client) EndpointConfigGet(id string) (*models.Configuration, error)
- func (c *Client) EndpointConfigPatch(id string, cfg models.ConfigurationMap) error
- func (c *Client) EndpointCreate(ep *models.EndpointChangeRequest) error
- func (c *Client) EndpointDelete(id string) error
- func (c *Client) EndpointGet(id string) (*models.Endpoint, error)
- func (c *Client) EndpointLabelsGet(id string) (*models.LabelConfiguration, error)
- func (c *Client) EndpointLabelsPut(id string, cfg *models.LabelConfigurationModifier) error
- func (c *Client) EndpointList() ([]*models.Endpoint, error)
- func (c *Client) EndpointPatch(id string, ep *models.EndpointChangeRequest) error
- func (c *Client) GetServiceID(id int64) (*models.Service, error)
- func (c *Client) GetServices() ([]*models.Service, error)
- func (c *Client) IPAMAllocate(family string) (*models.IPAM, error)
- func (c *Client) IPAMAllocateIP(ip string) error
- func (c *Client) IPAMReleaseIP(ip string) error
- func (c *Client) IdentityGet(id string) (*models.Identity, error)
- func (c *Client) PolicyDelete(path string) error
- func (c *Client) PolicyGet(path string) (string, error)
- func (c *Client) PolicyPut(path string, policyJSON string) (string, error)
- func (c *Client) PolicyResolveGet(context *models.IdentityContext) (*models.PolicyTraceResult, error)
- func (c *Client) PutServiceID(id int64, svc *models.Service) (bool, error)
Constants ¶
View Source
const ( AddressFamilyIPv6 = "ipv6" AddressFamilyIPv4 = "ipv4" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewDefaultClient ¶
Create client with default parameters connecting to UNIX domain socket
func (*Client) ConfigGet ¶
func (c *Client) ConfigGet() (*models.DaemonConfigurationResponse, error)
Get daemon configuration
func (*Client) ConfigPatch ¶
func (c *Client) ConfigPatch(cfg models.ConfigurationMap) error
Modify daemon configuration
func (*Client) EndpointConfigGet ¶
func (c *Client) EndpointConfigGet(id string) (*models.Configuration, error)
Get endpoint configuration
func (*Client) EndpointConfigPatch ¶
func (c *Client) EndpointConfigPatch(id string, cfg models.ConfigurationMap) error
Modify endpoint configuration
func (*Client) EndpointCreate ¶
func (c *Client) EndpointCreate(ep *models.EndpointChangeRequest) error
Create endpoint
func (*Client) EndpointGet ¶
Get endpoint by ID
func (*Client) EndpointLabelsGet ¶
func (c *Client) EndpointLabelsGet(id string) (*models.LabelConfiguration, error)
Get endpoint label configuration
func (*Client) EndpointLabelsPut ¶
func (c *Client) EndpointLabelsPut(id string, cfg *models.LabelConfigurationModifier) error
Modify endpoint label configuration
func (*Client) EndpointList ¶
Get list of endpoints
func (*Client) EndpointPatch ¶
func (c *Client) EndpointPatch(id string, ep *models.EndpointChangeRequest) error
Modify endpoint
func (*Client) GetServiceID ¶
Get service by ID
func (*Client) GetServices ¶
Get list of all services
func (*Client) IPAMAllocate ¶
Allocate IP address out of address family specific pool
func (*Client) IPAMAllocateIP ¶
Try to allocate a particular IP address
func (*Client) IPAMReleaseIP ¶
Release an IP address back to the pool
func (*Client) IdentityGet ¶
Get security identity
func (*Client) PolicyDelete ¶
Delete a node in the policy tree
func (*Client) PolicyResolveGet ¶
func (c *Client) PolicyResolveGet(context *models.IdentityContext) (*models.PolicyTraceResult, error)
Resolve policy for a context with source and destination identity
Click to show internal directories.
Click to hide internal directories.