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(labels []string) error
- func (c *Client) PolicyGet(labels []string) (string, error)
- func (c *Client) PolicyPut(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 ¶
const ( AddressFamilyIPv6 = "ipv6" AddressFamilyIPv4 = "ipv4" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewDefaultClient ¶
NewDefaultClient creates a client with default parameters connecting to UNIX domain socket.
func (*Client) ConfigGet ¶
func (c *Client) ConfigGet() (*models.DaemonConfigurationResponse, error)
ConfigGet returns a daemon configuration.
func (*Client) ConfigPatch ¶
func (c *Client) ConfigPatch(cfg models.ConfigurationMap) error
ConfigPatch modifies the daemon configuration.
func (*Client) DeleteServiceID ¶
DeleteServiceID deletes a service by ID.
func (*Client) EndpointConfigGet ¶
func (c *Client) EndpointConfigGet(id string) (*models.Configuration, error)
EndpointConfigGet returns endpoint configuration
func (*Client) EndpointConfigPatch ¶
func (c *Client) EndpointConfigPatch(id string, cfg models.ConfigurationMap) error
EndpointConfigPatch modifies endpoint configuration
func (*Client) EndpointCreate ¶
func (c *Client) EndpointCreate(ep *models.EndpointChangeRequest) error
EndpointCreate creates a new endpoint
func (*Client) EndpointDelete ¶
EndpointDelete deletes endpoint
func (*Client) EndpointGet ¶
EndpointGet returns endpoint by ID
func (*Client) EndpointLabelsGet ¶
func (c *Client) EndpointLabelsGet(id string) (*models.LabelConfiguration, error)
EndpointLabelsGet returns endpoint label configuration
func (*Client) EndpointLabelsPut ¶
func (c *Client) EndpointLabelsPut(id string, cfg *models.LabelConfigurationModifier) error
EndpointLabelsPut modifies endpoint label configuration
func (*Client) EndpointList ¶
EndpointList returns list of endpoints
func (*Client) EndpointPatch ¶
func (c *Client) EndpointPatch(id string, ep *models.EndpointChangeRequest) error
EndpointPatch modifies the endpoint
func (*Client) GetServiceID ¶
GetServiceID returns a service by ID.
func (*Client) GetServices ¶
GetServices returns a list of all services.
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) IPAMReleaseIP ¶
IPAMReleaseIP releases a IP address back to the pool.
func (*Client) IdentityGet ¶
IdentityGet returns a security identity.
func (*Client) PolicyDelete ¶
PolicyDelete deletes policy rules
func (*Client) PolicyResolveGet ¶
func (c *Client) PolicyResolveGet(context *models.IdentityContext) (*models.PolicyTraceResult, error)
PolicyResolveGet resolves policy for a context with source and destination identity.