Versions in this module Expand all Collapse all v1 v1.0.0 Jan 25, 2023 Changes in this version + const DriveStateCorrupt + const DriveStateMissing + const DriveStateOffline + const DriveStateOk + const HealItemBucket + const HealItemBucketMetadata + const HealItemMetadata + const HealItemObject + const ProfilerBlock + const ProfilerCPU + const ProfilerMEM + const ProfilerMutex + const ProfilerTrace + func DecryptData(password string, data io.Reader) ([]byte, error) + func EncryptData(password string, data []byte) ([]byte, error) + func ErrInvalidArgument(message string) error + type AccountStatus string + const AccountDisabled + const AccountEnabled + type AdminAPIVersionInfo struct + Version string + type AdminClient struct + func New(endpoint string, accessKeyID, secretAccessKey string, secure bool) (*AdminClient, error) + func (adm *AdminClient) AddCannedPolicy(policyName, policy string) error + func (adm *AdminClient) AddUser(accessKey, secretKey string) error + func (adm *AdminClient) DownloadProfilingData() (io.ReadCloser, error) + func (adm *AdminClient) GetConfig() ([]byte, error) + func (adm *AdminClient) GetConfigKeys(keys []string) ([]byte, error) + func (adm *AdminClient) Heal(bucket, prefix string, healOpts HealOpts, clientToken string, ...) (healStart HealStartSuccess, healTaskStatus HealTaskStatus, err error) + func (adm *AdminClient) ListCannedPolicies() (map[string][]byte, error) + func (adm *AdminClient) ListUsers() (map[string]UserInfo, error) + func (adm *AdminClient) RemoveCannedPolicy(policyName string) error + func (adm *AdminClient) RemoveUser(accessKey string) error + func (adm *AdminClient) ServerCPULoadInfo() ([]ServerCPULoadInfo, error) + func (adm *AdminClient) ServerDrivesPerfInfo() ([]ServerDrivesPerfInfo, error) + func (adm *AdminClient) ServerInfo() ([]ServerInfo, error) + func (adm *AdminClient) ServerMemUsageInfo() ([]ServerMemUsageInfo, error) + func (adm *AdminClient) ServiceSendAction(action ServiceActionValue) error + func (adm *AdminClient) ServiceStatus() (ss ServiceStatus, err error) + func (adm *AdminClient) SetAdminCredentials(access, secret string) error + func (adm *AdminClient) SetAppInfo(appName string, appVersion string) + func (adm *AdminClient) SetConfig(config io.Reader) (err error) + func (adm *AdminClient) SetConfigKeys(params map[string]string) error + func (adm *AdminClient) SetCustomTransport(customHTTPTransport http.RoundTripper) + func (adm *AdminClient) SetUser(accessKey, secretKey string, status AccountStatus) error + func (adm *AdminClient) SetUserPolicy(accessKey, policyName string) error + func (adm *AdminClient) SetUserStatus(accessKey string, status AccountStatus) error + func (adm *AdminClient) StartProfiling(profiler ProfilerType) ([]StartProfilingResult, error) + func (adm *AdminClient) TopLocks() (LockEntries, error) + func (adm *AdminClient) TraceOff() + func (adm *AdminClient) TraceOn(outputStream io.Writer) + func (adm *AdminClient) VersionInfo() (verInfo AdminAPIVersionInfo, err error) + type BackendType int + const Erasure + const FS + const Unknown + type DriveInfo HealDriveInfo + type ErrorResponse struct + BucketName string + Code string + HostID string + Key string + Message string + Region string + RequestID string + XMLName xml.Name + func (e ErrorResponse) Error() string + type HealDriveInfo struct + Endpoint string + State string + UUID string + type HealItemType string + type HealOpts struct + DryRun bool + Recursive bool + Remove bool + ScanMode HealScanMode + type HealResultItem struct + After struct{ ... } + Before struct{ ... } + Bucket string + DataBlocks int + Detail string + DiskCount int + Object string + ObjectSize int64 + ParityBlocks int + ResultIndex int64 + SetCount int + Type HealItemType + func (hri *HealResultItem) GetCorruptedCounts() (b, a int) + func (hri *HealResultItem) GetMissingCounts() (b, a int) + func (hri *HealResultItem) GetOfflineCounts() (b, a int) + func (hri *HealResultItem) GetOnlineCounts() (b, a int) + type HealScanMode int + const HealDeepScan + const HealNormalScan + type HealStartSuccess struct + ClientAddress string + ClientToken string + StartTime time.Time + type HealStopSuccess HealStartSuccess + type HealTaskStatus struct + FailureDetail string + HealSettings HealOpts + Items []HealResultItem + NumDisks int + StartTime time.Time + Summary string + type LockEntries []LockEntry + func (l LockEntries) Len() int + func (l LockEntries) Less(i, j int) bool + func (l LockEntries) Swap(i, j int) + type LockEntry struct + ID string + Owner string + Resource string + ServerList []string + Source string + Timestamp time.Time + Type string + type ProfilerType string + type ServerCPULoadInfo struct + Addr string + Error string + HistoricLoad []cpu.Load + Load []cpu.Load + type ServerConnStats struct + TotalInputBytes uint64 + TotalOutputBytes uint64 + type ServerDrivesPerfInfo struct + Addr string + Error string + Perf []disk.Performance + type ServerHTTPMethodStats struct + AvgDuration string + Count uint64 + type ServerHTTPStats struct + SuccessDELETEStats ServerHTTPMethodStats + SuccessGETStats ServerHTTPMethodStats + SuccessHEADStats ServerHTTPMethodStats + SuccessPOSTStats ServerHTTPMethodStats + SuccessPUTStats ServerHTTPMethodStats + TotalDELETEStats ServerHTTPMethodStats + TotalGETStats ServerHTTPMethodStats + TotalHEADStats ServerHTTPMethodStats + TotalPOSTStats ServerHTTPMethodStats + TotalPUTStats ServerHTTPMethodStats + type ServerInfo struct + Addr string + Data *ServerInfoData + Error string + type ServerInfoData struct + ConnStats ServerConnStats + HTTPStats ServerHTTPStats + Properties ServerProperties + StorageInfo StorageInfo + type ServerMemUsageInfo struct + Addr string + Error string + HistoricUsage []mem.Usage + Usage []mem.Usage + type ServerProperties struct + CommitID string + Region string + SQSARN []string + Uptime time.Duration + Version string + type ServerVersion struct + CommitID string + Version string + type ServiceAction struct + Action ServiceActionValue + type ServiceActionValue string + const ServiceActionValueRestart + const ServiceActionValueStop + type ServiceStatus struct + ServerVersion ServerVersion + Uptime time.Duration + type SetCredsReq struct + AccessKey string + SecretKey string + type StartProfilingResult struct + Error string + NodeName string + Success bool + type StorageInfo struct + Backend struct{ ... } + Used uint64 + type UserInfo struct + PolicyName string + SecretKey string + Status AccountStatus Incompatible versions in this module v3.0.0+incompatible Nov 17, 2023 v2.0.0+incompatible May 16, 2023