client

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2015 License: Apache-2.0 Imports: 8 Imported by: 12

Documentation

Index

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 New

func New(url string) *Client

New instantiates a new netmaster client

func (*Client) GetAllEndpoints

func (c *Client) GetAllEndpoints() ([]byte, error)

GetAllEndpoints requests info of all endpoints from netmaster

func (*Client) GetAllNetworks

func (c *Client) GetAllNetworks() ([]byte, error)

GetAllNetworks requests info of all networks from netmaster

func (*Client) GetEndpoint

func (c *Client) GetEndpoint(id string) ([]byte, error)

GetEndpoint requests info of a specified endpoint from netmaster

func (*Client) GetNetwork

func (c *Client) GetNetwork(id string) ([]byte, error)

GetNetwork requests info of a specified network from netmaster

func (*Client) PostAddConfig

func (c *Client) PostAddConfig(cfg *intent.Config) error

PostAddConfig posts the configuration additions to netmaster

func (*Client) PostDeleteConfig

func (c *Client) PostDeleteConfig(cfg *intent.Config) error

PostDeleteConfig posts the configuration deletions to netmaster

func (*Client) PostDesiredConfig

func (c *Client) PostDesiredConfig(cfg *intent.Config) error

PostDesiredConfig posts the net desired configuration to netmaster

func (*Client) PostHostBindings

func (c *Client) PostHostBindings(cfg *intent.Config) error

PostHostBindings posts the host binding configuration to netmaster

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL