Documentation
¶
Overview ¶
Copyright (c) 2019 Dell EMC Corporation All Rights Reserved
Copyright (c) 2019 Dell EMC Corporation All Rights Reserved
Copyright (c) 2019 Dell EMC Corporation All Rights Reserved
Index ¶
Constants ¶
View Source
const (
LunNameMaxLength = 63
)
Variables ¶
View Source
var HostNotFoundError = errors.New("unable to find host")
View Source
var NotFoundError = errors.New("Unable to find volume")
Functions ¶
func NewSnapshot ¶
func NewSnapshot(client *Client) *snapshot
func NewStoragePool ¶
func NewStoragePool(client *Client) *storagepool
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Struct holds the configuration & REST Client.
func NewClientWithArgs ¶
NewClientWithArgs initialize the new REST Client with the given arguments.
func (*Client) Authenticate ¶
func (c *Client) Authenticate(configConnect *ConfigConnect) error
Authenticate make a REST API call [/loginSessionInfo] to Unity to get authenticate the given credentials. The response contains the EMC-CSRF-TOKEN and the client caches it for further communication.
type ConfigConnect ¶
Struct holds the endpoint & credential info.
Click to show internal directories.
Click to hide internal directories.