client

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2019 License: GPL-3.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bwc

type Bwc struct {
	NumOccured      int64
	NumSeconds      int64
	TotalWeightInKb int64
}

Bwc Bwc

type Client

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

Client represents ScaleIO client.

func New

func New(client web.Client, request web.Request) (*Client, error)

Client creates new ScaleIO client.

func (*Client) GetAPIVersion

func (c *Client) GetAPIVersion() (*Version, error)

GetAPIVersion returns FxFlex Gateway API version.

func (*Client) GetSelectedStatistics

func (c *Client) GetSelectedStatistics(dst interface{}, query string) error

GetSelectedStatistics makes the query and decodes response into the passed structure.

func (Client) IsLoggedIn

func (c Client) IsLoggedIn() bool

IsLoggedIn reports whether the client is logged in.

func (*Client) Login

func (c *Client) Login() error

Login connects to FxFlex Gateway to get the token that is used for later authentication for other requests.

func (*Client) Logout

func (c *Client) Logout() error

Logout sends logout request.

type Version

type Version struct {
	Major int64
	Minor int64
}

Version represents ScaleIO REST API Version

Jump to

Keyboard shortcuts

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