Documentation
¶
Index ¶
- type AlertsItem
- type AlertsResponse
- type ArrayPerformanceItem
- type ArrayPerformanceResponse
- type ArraySpaceItem
- type ArraySpaceResponse
- type BladesItem
- type BladesResponse
- type BucketItem
- type FSPerformanceItem
- type FSPerformanceResponse
- type FilesystemsItem
- type FilesystemsResponse
- type FlashbladeClient
- func (fbClient FlashbladeClient) ArrayPerformance() (ArrayPerformanceResponse, error)
- func (fbClient FlashbladeClient) ArraySpace() (ArraySpaceResponse, error)
- func (fbClient FlashbladeClient) Blades() (BladesResponse, error)
- func (fbClient FlashbladeClient) FSPerformance() (FSPerformanceResponse, error)
- func (fbClient FlashbladeClient) Filesystems() (FilesystemsResponse, error)
- func (fbClient *FlashbladeClient) Get(endpoint string, params map[string]string) *http.Response
- func (fbClient *FlashbladeClient) GetJSON(endpoint string, params map[string]string, target interface{}) error
- func (fbClient FlashbladeClient) OpenAlerts() (AlertsResponse, error)
- func (fbClient FlashbladeClient) S3Buckets() (S3BucketsResponse, error)
- func (fbClient FlashbladeClient) Usage(fsFilterFlag string) (UsageResponse, error)
- type NameID
- type PaginationData
- type S3BucketsResponse
- type Space
- type UsageGroup
- type UsageItemGroup
- type UsageItemUser
- type UsageResponse
- type UsageUser
- type Version
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 ArraySpaceResponse ¶
type ArraySpaceResponse struct {
Items [1]ArraySpaceItem `json:"items"`
}
type BladesItem ¶
type BladesResponse ¶
type BladesResponse struct {
Items []BladesItem `json:"items"`
}
type BucketItem ¶
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) 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 PaginationData ¶
type S3BucketsResponse ¶
type S3BucketsResponse struct { Total BucketItem `json:"total"` Items []BucketItem `json:"items"` }
type UsageGroup ¶
type UsageGroup struct { Items []UsageItemGroup `json:"items"` PaginationInfo PaginationData `json:"pagination_info"` }
type UsageItemGroup ¶
type UsageItemUser ¶
type UsageResponse ¶
type UsageResponse struct { Groups []UsageGroup Users []UsageUser }
type UsageUser ¶
type UsageUser struct { Items []UsageItemUser `json:"items"` PaginationInfo PaginationData `json:"pagination_info"` }
Click to show internal directories.
Click to hide internal directories.