client

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2017 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AddressFamilyIPv6 = "ipv6"
	AddressFamilyIPv4 = "ipv4"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	clientapi.Cilium
}

func NewClient

func NewClient(host string) (*Client, error)

NewClient creates a client for the given `host`.

func NewDefaultClient

func NewDefaultClient() (*Client, error)

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

func (c *Client) DeleteServiceID(id int64) error

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