powerstore

package
v0.0.0-...-99f3e5b Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PowerStore

type PowerStore struct {
	APIEndPoint string
	User        string
	Password    string
	// contains filtered or unexported fields
}

PowerStore array object

func NewPowerStore

func NewPowerStore(address, user, password string) *PowerStore

NewPowerStore init a PowerStore object

func (PowerStore) DetectMetricNames

func (ps PowerStore) DetectMetricNames(resType string, resID string, rollup bool) []string

DetectMetricNames detect supported metrics

func (PowerStore) Get

func (ps PowerStore) Get(uri string, headers map[string]string, params map[string]string) (*resty.Response, error)

Get PowerStore HTTP GET encapsulation

func (PowerStore) GetLatestMetric

func (ps PowerStore) GetLatestMetric(resType string, resID string, rollup bool) map[string]float64

GetLatestMetric Get the latest metric

func (PowerStore) ListResources

func (ps PowerStore) ListResources(resType string) []map[string]string

ListResources List PowerStore resources

func (*PowerStore) Logout

func (ps *PowerStore) Logout()

Logout Log out the connection

func (PowerStore) Post

func (ps PowerStore) Post(uri string, body map[string]string) (*resty.Response, error)

Post PowerStore HTTP POST encapsulation

Jump to

Keyboard shortcuts

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