client

package
v1.2.0-dev Latest Latest
Warning

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

Go to latest
Published: May 2, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAX_CONCURRENT_REQUESTS                  = 32
	VOLUME_CREATE_DURABILITY_TYPE_DISPERSION = glusterfs.DURABILITY_STRING_EC
	VOLUME_CREATE_DURABILITY_TYPE_REPLICATE  = glusterfs.DURABILITY_STRING_REPLICATE
	VOLUME_CREATE_DURABILITY_TYPE_NONE       = glusterfs.DURABILITY_STRING_DISTRIBUTE_ONLY
)

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) ClusterCreate

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

func (*Client) ClusterDelete

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

func (*Client) ClusterInfo

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

func (*Client) ClusterList

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

func (*Client) DeviceAdd

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

func (*Client) DeviceDelete

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

func (*Client) DeviceInfo

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

func (*Client) Hello

func (c *Client) Hello() error

Simple Hello test to check if the server is up

func (*Client) NodeAdd

func (*Client) NodeDelete

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

func (*Client) NodeInfo

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

func (*Client) VolumeCreate

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

func (*Client) VolumeDelete

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

func (*Client) VolumeExpand

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

func (*Client) VolumeInfo

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

func (*Client) VolumeList

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

Jump to

Keyboard shortcuts

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