servers

package
v2.11.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BucketInfoDetailDescriptionStringFormat added in v2.9.1

func BucketInfoDetailDescriptionStringFormat() string

Types

type BucketInfo

type BucketInfo struct {
	Id                  *data.String `json:"id"`
	Tbl                 *data.String `json:"tbl"`
	CTime               *data.Int    `json:"ctime"` // 返回为 0
	FileNum             *data.Int64  `json:"file_num"`
	StorageSize         *data.Int64  `json:"storage_size"`
	Region              *data.String `json:"region"`
	Global              *data.Bool   `json:"global"`
	Perm                *data.Int    `json:"perm"`
	ShareUsers          []*UserInfo  `json:"share_users"`
	Versioning          *data.Bool   `json:"versioning"`
	AllowNullKey        *data.Bool   `json:"allow_nullkey"`
	EncryptionEnabled   *data.Bool   `json:"encryption_enabled"`
	NotAllowAccessByTbl *data.Bool   `json:"not_allow_access_by_tbl"`
}

func AllBuckets

func AllBuckets(info ListApiInfo) (buckets []BucketInfo, err *data.CodeError)

AllBuckets List list 所有 bucket

func (*BucketInfo) DescriptionString

func (i *BucketInfo) DescriptionString() string

func (*BucketInfo) DetailDescriptionString

func (i *BucketInfo) DetailDescriptionString() string

type BucketQuota

type BucketQuota struct {
}

type ListApiInfo

type ListApiInfo struct {
	Shared bool
	Region string
}

type UserInfo

type UserInfo struct {
	UserId *data.Int `json:"uid"`
	Perm   *data.Int `json:"perm"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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