Documentation ¶
Index ¶
- Constants
- type Config
- type FSRestClient
- func (c *FSRestClient) CheckFlashsystemClusterState() (bool, error)
- func (c *FSRestClient) CheckUserRole() (bool, error)
- func (c *FSRestClient) CheckVersion() (bool, error)
- func (c *FSRestClient) LsAllMDisk() (MDisksList, error)
- func (c *FSRestClient) LsSingleMDisk(diskID int) (SingleMDiskInfo, error)
- func (c *FSRestClient) Lscurrentuser() (Users, error)
- func (c *FSRestClient) Lsmdiskgrp() (PoolList, error)
- func (c *FSRestClient) Lsnode() (Nodes, error)
- func (c *FSRestClient) Lssystem() (StorageSystem, error)
- func (c *FSRestClient) Lssystemstats() (SystemStats, error)
- func (c *FSRestClient) NewFSRestClient(config Config, driverManager *drivermanager.DriverManager) (*FSRestClient, error)
- func (c *FSRestClient) UpdateCredentials(newConfig Config) error
- type MDisksList
- type Nodes
- type PoolList
- type Poster
- type Requester
- type SingleMDiskInfo
- type StorageSystem
- type SystemStats
- type Users
Constants ¶
View Source
const ( VersionKey = "code_level" UserRoleKey = "role" ValidVersion = "8.3.1" )
View Source
const (
FailedEventThreshold = time.Minute * 2 // 2 minutes
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FSRestClient ¶
type FSRestClient struct { Client *http.Client RestConfig Config BaseURL string DriverManager *drivermanager.DriverManager PostRequester *Requester // contains filtered or unexported fields }
func (*FSRestClient) CheckFlashsystemClusterState ¶
func (c *FSRestClient) CheckFlashsystemClusterState() (bool, error)
func (*FSRestClient) CheckUserRole ¶
func (c *FSRestClient) CheckUserRole() (bool, error)
func (*FSRestClient) CheckVersion ¶
func (c *FSRestClient) CheckVersion() (bool, error)
func (*FSRestClient) LsAllMDisk ¶ added in v1.3.0
func (c *FSRestClient) LsAllMDisk() (MDisksList, error)
func (*FSRestClient) LsSingleMDisk ¶ added in v1.3.0
func (c *FSRestClient) LsSingleMDisk(diskID int) (SingleMDiskInfo, error)
func (*FSRestClient) Lscurrentuser ¶
func (c *FSRestClient) Lscurrentuser() (Users, error)
func (*FSRestClient) Lsmdiskgrp ¶
func (c *FSRestClient) Lsmdiskgrp() (PoolList, error)
func (*FSRestClient) Lsnode ¶
func (c *FSRestClient) Lsnode() (Nodes, error)
func (*FSRestClient) Lssystem ¶
func (c *FSRestClient) Lssystem() (StorageSystem, error)
func (*FSRestClient) Lssystemstats ¶
func (c *FSRestClient) Lssystemstats() (SystemStats, error)
func (*FSRestClient) NewFSRestClient ¶ added in v1.3.0
func (c *FSRestClient) NewFSRestClient(config Config, driverManager *drivermanager.DriverManager) (*FSRestClient, error)
func (*FSRestClient) UpdateCredentials ¶ added in v1.3.0
func (c *FSRestClient) UpdateCredentials(newConfig Config) error
type MDisksList ¶ added in v1.3.0
type MDisksList []map[string]interface{}
type Requester ¶
type Requester struct {
// contains filtered or unexported fields
}
func NewRequester ¶
type SingleMDiskInfo ¶ added in v1.3.0
type SingleMDiskInfo map[string]interface{}
type StorageSystem ¶
type StorageSystem map[string]interface{}
type SystemStats ¶
Click to show internal directories.
Click to hide internal directories.