Documentation ¶
Index ¶
- type GeneralResp
- type RWMutex
- type SimpleVolView
- type Token
- type UserPermission
- type Vol
- type VolumeClient
- func (c *VolumeClient) CreateVolume(ctx context.Context, authenticate bool, capacity uint64, crossZone bool, ...) (*Vol, error)
- func (c *VolumeClient) DeleteVolume(ctx context.Context, authKey string, name string) (*GeneralResp, error)
- func (c *VolumeClient) GetVolume(ctx context.Context, name string) (*Vol, error)
- func (c *VolumeClient) ListVolume(ctx context.Context, keyword *string, userID *string) ([]Vol, error)
- func (c *VolumeClient) UpdateVolume(ctx context.Context, authKey string, authenticate *bool, capacity *uint64, ...) (*Vol, error)
- func (c *VolumeClient) VolPermission(ctx context.Context, userID *string, volName string) ([]UserPermission, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GeneralResp ¶
type SimpleVolView ¶
type SimpleVolView struct { Authenticate bool Capacity uint64 CreateTime string CrossZone bool Description string DpCnt int DpReplicaNum uint8 EnableToken bool FollowerRead bool ID uint64 MpCnt int MpReplicaNum uint8 Name string NeedToLowerReplica bool Owner string RwDpCnt int Status uint8 ZoneName string }
type UserPermission ¶
type VolumeClient ¶
type VolumeClient struct {
*client.MasterGClient
}
func NewVolumeClient ¶
func NewVolumeClient(c *client.MasterGClient) *VolumeClient
func (*VolumeClient) CreateVolume ¶
func (c *VolumeClient) CreateVolume(ctx context.Context, authenticate bool, capacity uint64, crossZone bool, dataPartitionSize uint64, description string, dpReplicaNum uint64, enableToken bool, followerRead bool, mpCount uint64, name string, owner string, zoneName string) (*Vol, error)
function begin .....
func (*VolumeClient) DeleteVolume ¶
func (c *VolumeClient) DeleteVolume(ctx context.Context, authKey string, name string) (*GeneralResp, error)
func (*VolumeClient) ListVolume ¶
func (*VolumeClient) UpdateVolume ¶
func (*VolumeClient) VolPermission ¶
func (c *VolumeClient) VolPermission(ctx context.Context, userID *string, volName string) ([]UserPermission, error)
Click to show internal directories.
Click to hide internal directories.