Documentation ¶
Index ¶
- func Create(c *gin.Context, clusterAddr string, input *CreateInput) (interface{}, error)
- func Delete(c *gin.Context, clusterAddr string, input *DeleteInput) (interface{}, error)
- func Expand(c *gin.Context, clusterAddr string, input *ExpandInput) error
- func Get(c *gin.Context, clusterAddr, keywords string) (*[]proto.VolInfo, error)
- func GetByName(c *gin.Context, clusterAddr, name string) (*proto.SimpleVolView, error)
- func Shrink(c *gin.Context, clusterAddr string, input *ExpandInput) error
- func Update(c *gin.Context, clusterAddr string, input *UpdateInput) (interface{}, error)
- type ClientVol
- type CreateInput
- type DeleteInput
- type ExpandInput
- type UpdateInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(c *gin.Context, clusterAddr string, input *CreateInput) (interface{}, error)
func Delete ¶
func Delete(c *gin.Context, clusterAddr string, input *DeleteInput) (interface{}, error)
Types ¶
type ClientVol ¶
type ClientVol struct { ID uint64 Name string Owner string OSSAccessKey string OSSSecretKey string Status uint8 Capacity uint64 // GB VolType int EbsBlkSize int CacheCapacity uint64 CacheAction int CacheThreshold int CacheTTL int CacheHighWater int CacheLowWater int CacheLRUInterval int CacheRule string PreloadCacheOn bool NeedToLowerReplica bool FollowerRead bool // contains filtered or unexported fields }
type CreateInput ¶
type CreateInput struct { Name string `json:"name"` Owner string `json:"owner"` Capacity uint64 `json:"capacity"` Description string `json:"description"` VolType int `json:"volType"` CrossZone bool `json:"crossZone"` DefaultPriority bool `json:"defaultPriority"` ReplicaNumber int `json:"replicaNum"` CacheCap int `json:"cacheCap"` FollowerRead bool `json:"followerRead"` }
func (*CreateInput) QueryParams ¶
func (c *CreateInput) QueryParams() string
type DeleteInput ¶
type ExpandInput ¶
type UpdateInput ¶
Click to show internal directories.
Click to hide internal directories.