netapp

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aggregate

type Aggregate struct {
	Name                string
	OwnerName           string
	SizeUsed            float64
	SizeTotal           float64
	SizeAvailable       float64
	TotalReservedSpace  float64
	PercentUsedCapacity float64
	PhysicalUsed        float64
	PhysicalUsedPercent float64
	IsEncrypted         bool
	State               string
}

type Client

type Client struct {
	*n.Client
	// contains filtered or unexported fields
}

func NewClient

func NewClient(host, username, password, version string) (*Client, error)

func (*Client) CheckCluster

func (c *Client) CheckCluster() (statusCode int, err error)

func (*Client) Do

func (c *Client) Do(method string, body interface{}) (*http.Response, error)

Do request with internal http client. Useful to do quick checks.

func (*Client) GetSystemVersion

func (c *Client) GetSystemVersion() (string, error)

func (*Client) ListAggregates

func (c *Client) ListAggregates() (aggregates []*Aggregate, err error)

func (*Client) ListVolumes

func (c *Client) ListVolumes() (volumes []*Volume, err error)

type Volume

type Volume struct {
	Aggregate                         string
	Comment                           string
	InodeFilesTotal                   float64
	InodeFilesUsed                    float64
	IsEncrypted                       bool
	IsSpaceReportingLogical           bool
	IsSpaceEnforcementLogical         bool
	Node                              string
	PercentageSizeUsed                float64
	PercentageSnapshotReserve         float64
	PercentageCompressionSpaceSaved   float64
	PercentageDeduplicationSpaceSaved float64
	PercentageTotalSpaceSaved         float64
	ProjectID                         string
	ShareID                           string
	ShareName                         string
	ShareType                         string
	Size                              int
	SizeTotal                         float64
	SizeAvailable                     float64
	SizeAvailableForSnapshots         float64
	SizeLogicalUsed                   float64
	SizeUsed                          float64
	SizeUsedBySnapshots               float64
	SisCompressionSpaceSaved          float64
	SisDeduplicationSpaceSaved        float64
	SisTotalSpaceSaved                float64
	SisDeduplicationSpaceShared       float64
	SnapshotPolicy                    string
	SnapshotReserveSize               float64
	State                             int
	Volume                            string
	VolumeType                        string
	VolumeState                       string
	Vserver                           string
}

Jump to

Keyboard shortcuts

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