fb

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2019 License: GPL-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 AlertsItem

type AlertsItem struct {
	Name             string            `json:"name"`
	Created          int               `json:"created"`
	Index            int               `json:"index"`
	Code             int               `json:"code"`
	Severity         string            `json:"severity"`
	Component        string            `json:"component"`
	State            string            `json:"state"`
	Flagged          bool              `json:"flagged"`
	Updated          int               `json:"updated"`
	Notified         int               `json:"notified"`
	Subject          string            `json:"subject"`
	Description      string            `json:"description"`
	KnowledgeBaseURL string            `json:"knowledge_base_url"`
	Acion            string            `json:"action"`
	Variables        map[string]string `json:"variables"`
}

type AlertsResponse

type AlertsResponse struct {
	Items []AlertsItem `json:"items"`
}

type ArrayPerformanceItem

type ArrayPerformanceItem struct {
	Name           string  `json:"name"`
	BytesPerOp     float64 `json:"bytes_per_op"`
	BytesPerRead   float64 `json:"bytes_per_read"`
	BytesPerWrite  float64 `json:"bytes_per_write"`
	OthersPerSec   float64 `json:"others_per_sec"`
	OutputPerSec   float64 `json:"output_per_sec"`
	ReadsPerSec    float64 `json:"reads_per_sec"`
	Time           float64 `json:"time"`
	UsecPerOtherOp float64 `json:"usec_per_other_op"`
	UsecPerReadOp  float64 `json:"usec_per_read_op"`
	UsecPerWriteOp float64 `json:"usec_per_write_op"`
	InputPerSec    float64 `json:"input_per_sec"`
	WritesPerSec   float64 `json:"writes_per_sec"`
}

type ArrayPerformanceResponse

type ArrayPerformanceResponse struct {
	Items [1]ArrayPerformanceItem `json:"items"`
}

type ArraySpaceItem

type ArraySpaceItem struct {
	Name     string  `json:"name"`
	Capacity float64 `json:"capacity"`
	Parity   float64 `json:"parity"`
	Space    Space   `json:"space"`
	Time     float64 `json:"time"`
}

type ArraySpaceResponse

type ArraySpaceResponse struct {
	Items [1]ArraySpaceItem `json:"items"`
}

type BladesItem

type BladesItem struct {
	Name        string  `json:"name"`
	Details     string  `json:"details"`
	RawCapacity int     `json:"raw_capacity"`
	Target      string  `json:"target"`
	Progress    float64 `json:"progress"`
	Status      string  `json:"status"`
}

type BladesResponse

type BladesResponse struct {
	Items []BladesItem `json:"items"`
}

type BucketItem

type BucketItem struct {
	Name          string `json:"name"`
	Created       int    `json:"created"`
	Space         Space  `json:"space"`
	Destroyed     bool   `json:"destroyed"`
	TimeRemaining int    `json:"time_remaining"`
	ObjectCount   int    `json:"object_count"`
	Versioning    string `json:"versioning"`
}

type FSPerformanceItem

type FSPerformanceItem struct {
	Name             string  `json:"name"`
	BytesPerOp       float64 `json:"bytes_per_op"`
	BytesPerRead     float64 `json:"bytes_per_read"`
	BytesPerWrite    float64 `json:"bytes_per_write"`
	OthersPerSec     float64 `json:"others_per_sec"`
	ReadBytesPerSec  float64 `json:"read_bytes_per_sec"`
	ReadsPerSec      float64 `json:"reads_per_sec"`
	Time             float64 `json:"time"`
	UsecPerOtherOp   float64 `json:"usec_per_other_op"`
	UsecPerReadOp    float64 `json:"usec_per_read_op"`
	UsecPerWriteOp   float64 `json:"usec_per_write_op"`
	WritesPerSec     float64 `json:"writes_per_sec"`
	WriteBytesPerSec float64 `json:"write_bytes_per_sec"`
}

type FSPerformanceResponse

type FSPerformanceResponse struct {
	Items []FSPerformanceItem `json:"items"`
}

type FilesystemsItem

type FilesystemsItem struct {
	Name                       string      `json:"name"`
	Created                    int         `json:"created"`
	FastRemoveDirectoryEnabled bool        `json:"fast_remove_directory_enabled"`
	Provisioned                int         `json:"target"`
	SnapshotDirectoryEnabled   bool        `json:"progress"`
	Space                      Space       `json:"space"`
	NFS                        interface{} `json:"nfs"`
	HTTP                       interface{} `json:"http"`
	SMB                        interface{} `json:"smb"`
	Destroyed                  bool        `json:"destroyed"`
	TimeRemaining              int         `json:"time_remaining"`
}

type FilesystemsResponse

type FilesystemsResponse struct {
	Total FilesystemsItem   `json:"total"`
	Items []FilesystemsItem `json:"items"`
}

type FlashbladeClient

type FlashbladeClient struct {
	Host string

	ApiVersion string
	// contains filtered or unexported fields
}

func NewFlashbladeClient

func NewFlashbladeClient(host string, insecure bool, version string) *FlashbladeClient

func (FlashbladeClient) ArrayPerformance

func (fbClient FlashbladeClient) ArrayPerformance() (ArrayPerformanceResponse, error)

func (FlashbladeClient) ArraySpace

func (fbClient FlashbladeClient) ArraySpace() (ArraySpaceResponse, error)

func (FlashbladeClient) Blades

func (fbClient FlashbladeClient) Blades() (BladesResponse, error)

func (FlashbladeClient) FSPerformance

func (fbClient FlashbladeClient) FSPerformance() (FSPerformanceResponse, error)

func (FlashbladeClient) Filesystems

func (fbClient FlashbladeClient) Filesystems() (FilesystemsResponse, error)

func (*FlashbladeClient) Get

func (fbClient *FlashbladeClient) Get(endpoint string, params map[string]string) *http.Response

func (*FlashbladeClient) GetJSON

func (fbClient *FlashbladeClient) GetJSON(endpoint string, params map[string]string, target interface{}) error

func (FlashbladeClient) OpenAlerts

func (fbClient FlashbladeClient) OpenAlerts() (AlertsResponse, error)

func (FlashbladeClient) S3Buckets

func (fbClient FlashbladeClient) S3Buckets() (S3BucketsResponse, error)

func (FlashbladeClient) Usage

func (fbClient FlashbladeClient) Usage(fsFilterFlag string) (UsageResponse, error)

With the default value of fsFilterFlag, this function makes a call for every filesystem, which can take a significant amount of time. This can be limited with the --filesystem-filter-regexp flag.

type NameID

type NameID struct {
	Id   int    `json:"id"`
	Name string `json:"name"`
}

type PaginationData

type PaginationData struct {
	ContinuationToken string `json:"continuation_token"`
	Total             int    `json:"total_item_count"`
}

type S3BucketsResponse

type S3BucketsResponse struct {
	Total BucketItem   `json:"total"`
	Items []BucketItem `json:"items"`
}

type Space

type Space struct {
	Virtual       int     `json:"virtual"`
	DataReduction float64 `json:"data_reduction"`
	Unique        int     `json:"unique"`
	Snapshots     int     `json:"snapshots"`
	TotalPhysical int     `json:"total_physical"`
}

type UsageGroup

type UsageGroup struct {
	Items          []UsageItemGroup `json:"items"`
	PaginationInfo PaginationData   `json:"pagination_info"`
}

type UsageItemGroup

type UsageItemGroup struct {
	FileSystem             map[string]string `json:"file_system"`
	FileSystemDefaultQuota int               `json:"file_system_default_quota"`
	Group                  NameID            `json:"group"`
	Name                   string            `json:"name"`
	Quota                  int               `json:"quota"`
	Usage                  int               `json:"usage"`
}

type UsageItemUser

type UsageItemUser struct {
	FileSystem             map[string]string `json:"file_system"`
	FileSystemDefaultQuota int               `json:"file_system_default_quota"`
	User                   NameID            `json:"user"`
	Name                   string            `json:"name"`
	Quota                  int               `json:"quota"`
	Usage                  int               `json:"usage"`
}

type UsageResponse

type UsageResponse struct {
	Groups []UsageGroup
	Users  []UsageUser
}

type UsageUser

type UsageUser struct {
	Items          []UsageItemUser `json:"items"`
	PaginationInfo PaginationData  `json:"pagination_info"`
}

type Version

type Version struct {
	Versions []string `json:"versions"`
}

Jump to

Keyboard shortcuts

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