hxconnect

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiffString

func DiffString(bootTime int64) string

Types

type Connection

type Connection struct {
	Request     *request.Client
	Metrics     *metrics
	Capital     *capital
	Credentials *Creds
	// contains filtered or unexported fields
}

func New

func New() *Connection

func (*Connection) About

func (c *Connection) About() error

func (*Connection) Authenticate

func (c *Connection) Authenticate() error

func (*Connection) ClusterAppliances

func (c *Connection) ClusterAppliances() error

func (*Connection) ClusterDatastores

func (c *Connection) ClusterDatastores() error

func (*Connection) ClusterInfo

func (c *Connection) ClusterInfo() error

func (*Connection) ClusterPlatform

func (c *Connection) ClusterPlatform() error

func (*Connection) ClusterSavings

func (c *Connection) ClusterSavings() error

func (*Connection) ClusterSummary

func (c *Connection) ClusterSummary() error

func (*Connection) ClusterVM

func (c *Connection) ClusterVM() error

func (*Connection) ClusterVersion

func (c *Connection) ClusterVersion() error

func (*Connection) GetClientID

func (c *Connection) GetClientID() string

func (*Connection) GetClientSecret

func (c *Connection) GetClientSecret() string

func (*Connection) GetLicenseAgreement

func (c *Connection) GetLicenseAgreement() error

func (*Connection) GetPassword

func (c *Connection) GetPassword() string

func (*Connection) GetResponseCode

func (c *Connection) GetResponseCode() int

func (*Connection) GetResponseData

func (c *Connection) GetResponseData() interface{}

func (*Connection) GetResponseItem

func (c *Connection) GetResponseItem(item string) interface{}

func (*Connection) GetResponseItemBool

func (c *Connection) GetResponseItemBool(item string) bool

func (*Connection) GetResponseItemFloat

func (c *Connection) GetResponseItemFloat(item string) float64

func (*Connection) GetResponseItemInt

func (c *Connection) GetResponseItemInt(item string) int

func (*Connection) GetResponseItemInt64

func (c *Connection) GetResponseItemInt64(item string) int64

func (*Connection) GetResponseItemString

func (c *Connection) GetResponseItemString(item string) string

func (*Connection) GetResponseItemTime

func (c *Connection) GetResponseItemTime(item string) time.Time

func (*Connection) GetResponseOK

func (c *Connection) GetResponseOK() bool

func (*Connection) GetResponseReason

func (c *Connection) GetResponseReason() string

func (*Connection) GetResponseURL

func (c *Connection) GetResponseURL() string

func (*Connection) GetTimeout

func (c *Connection) GetTimeout() time.Duration

func (*Connection) GetToken

func (c *Connection) GetToken() string

func (*Connection) GetUrl

func (c *Connection) GetUrl() string

func (*Connection) GetUsername

func (c *Connection) GetUsername() string

func (*Connection) SetClientID

func (c *Connection) SetClientID(clientid string)

func (*Connection) SetClientSecret

func (c *Connection) SetClientSecret(clientsecret string)

func (*Connection) SetPassword

func (c *Connection) SetPassword(password string)

func (*Connection) SetTimeout

func (c *Connection) SetTimeout(timeout int)

func (*Connection) SetToken

func (c *Connection) SetToken(token string)

func (*Connection) SetUrl

func (c *Connection) SetUrl(url string)

func (*Connection) SetUsername

func (c *Connection) SetUsername(username string)

func (*Connection) ValidateContactNumberWithCisco

func (c *Connection) ValidateContactNumberWithCisco(contract string) error

type Creds

type Creds struct {
	Url           string
	Username      string
	Password      string
	Client_id     string
	Client_secret string
}

Jump to

Keyboard shortcuts

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