client

package
v3.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAX_CONCURRENT_REQUESTS = 32
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client object

func NewClient

func NewClient(host, user, key string) *Client

Creates a new client to access a Heketi server

func NewClientNoAuth

func NewClientNoAuth(host string) *Client

Create a client to access a Heketi server without authentication enabled

func (*Client) BackupDb

func (c *Client) BackupDb(w io.Writer) error

func (*Client) ClusterCreate

func (c *Client) ClusterCreate() (*api.ClusterInfoResponse, error)

func (*Client) ClusterDelete

func (c *Client) ClusterDelete(id string) error

func (*Client) ClusterInfo

func (c *Client) ClusterInfo(id string) (*api.ClusterInfoResponse, error)

func (*Client) ClusterList

func (c *Client) ClusterList() (*api.ClusterListResponse, error)

func (*Client) DeviceAdd

func (c *Client) DeviceAdd(request *api.DeviceAddRequest) error

func (*Client) DeviceDelete

func (c *Client) DeviceDelete(id string) error

func (*Client) DeviceInfo

func (c *Client) DeviceInfo(id string) (*api.DeviceInfoResponse, error)

func (*Client) DeviceState

func (c *Client) DeviceState(id string,
	request *api.StateRequest) error

func (*Client) Hello

func (c *Client) Hello() error

Simple Hello test to check if the server is up

func (*Client) NodeAdd

func (c *Client) NodeAdd(request *api.NodeAddRequest) (*api.NodeInfoResponse, error)

func (*Client) NodeDelete

func (c *Client) NodeDelete(id string) error

func (*Client) NodeInfo

func (c *Client) NodeInfo(id string) (*api.NodeInfoResponse, error)

func (*Client) NodeState

func (c *Client) NodeState(id string, request *api.StateRequest) error

func (*Client) TopologyInfo

func (c *Client) TopologyInfo() (*api.TopologyInfoResponse, error)

func (*Client) VolumeCreate

func (c *Client) VolumeCreate(request *api.VolumeCreateRequest) (
	*api.VolumeInfoResponse, error)

func (*Client) VolumeDelete

func (c *Client) VolumeDelete(id string) error

func (*Client) VolumeExpand

func (c *Client) VolumeExpand(id string, request *api.VolumeExpandRequest) (
	*api.VolumeInfoResponse, error)

func (*Client) VolumeInfo

func (c *Client) VolumeInfo(id string) (*api.VolumeInfoResponse, error)

func (*Client) VolumeList

func (c *Client) VolumeList() (*api.VolumeListResponse, error)

Jump to

Keyboard shortcuts

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