Documentation ¶
Index ¶
- type Client
- func (c *Client) GetAllEndpoints() ([]byte, error)
- func (c *Client) GetAllNetworks() ([]byte, error)
- func (c *Client) GetEndpoint(id string) ([]byte, error)
- func (c *Client) GetNetwork(id string) ([]byte, error)
- func (c *Client) PostAddConfig(cfg *intent.Config) error
- func (c *Client) PostDeleteConfig(cfg *intent.Config) error
- func (c *Client) PostDesiredConfig(cfg *intent.Config) error
- func (c *Client) PostHostBindings(cfg *intent.Config) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides the methods for issuing post and get requests to netmaster
func (*Client) GetAllEndpoints ¶
GetAllEndpoints requests info of all endpoints from netmaster
func (*Client) GetAllNetworks ¶
GetAllNetworks requests info of all networks from netmaster
func (*Client) GetEndpoint ¶
GetEndpoint requests info of a specified endpoint from netmaster
func (*Client) GetNetwork ¶
GetNetwork requests info of a specified network from netmaster
func (*Client) PostAddConfig ¶
PostAddConfig posts the configuration additions to netmaster
func (*Client) PostDeleteConfig ¶
PostDeleteConfig posts the configuration deletions to netmaster
func (*Client) PostDesiredConfig ¶
PostDesiredConfig posts the net desired configuration to netmaster
Click to show internal directories.
Click to hide internal directories.