Documentation ¶
Index ¶
- type AuthorizedVols
- type GeneralResp
- type UserClient
- func (c *UserClient) CreateUser(ctx context.Context, accessKey string, description string, iD string, ...) (*UserInfo, error)
- func (c *UserClient) DeleteUser(ctx context.Context, userID string) (*GeneralResp, error)
- func (c *UserClient) GetUserAKInfo(ctx context.Context, accessKey string) (*UserInfo, error)
- func (c *UserClient) GetUserInfo(ctx context.Context, userID string) (*UserInfo, error)
- func (c *UserClient) GetUserInfoForLogin(ctx context.Context, userID string) (*UserInfo, error)
- func (c *UserClient) ListUserInfo(ctx context.Context) ([]UserInfo, error)
- func (c *UserClient) RemoveUserPolicy(ctx context.Context, userID string, volume string) (*UserInfo, error)
- func (c *UserClient) TopNUser(ctx context.Context, n int32) ([]UserUseSpace, error)
- func (c *UserClient) TransferUserVol(ctx context.Context, force bool, userDst string, userSrc string, volume string) (*UserInfo, error)
- func (c *UserClient) UpdateUser(ctx context.Context, accessKey string, description string, secretKey string, ...) (*UserInfo, error)
- func (c *UserClient) UpdateUserPolicy(ctx context.Context, policy []string, userID string, volume string) (*UserInfo, error)
- func (c *UserClient) ValidatePassword(ctx context.Context, password string, userID string) (*UserInfo, error)
- type UserInfo
- type UserPolicy
- type UserStatistical
- type UserUseSpace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorizedVols ¶
struct begin .....
type GeneralResp ¶
type UserClient ¶
type UserClient struct {
*client.MasterGClient
}
func NewUserClient ¶
func NewUserClient(c *client.MasterGClient) *UserClient
func (*UserClient) CreateUser ¶
func (*UserClient) DeleteUser ¶
func (c *UserClient) DeleteUser(ctx context.Context, userID string) (*GeneralResp, error)
function begin .....
func (*UserClient) GetUserAKInfo ¶
func (*UserClient) GetUserInfo ¶
func (*UserClient) GetUserInfoForLogin ¶
func (*UserClient) ListUserInfo ¶
func (c *UserClient) ListUserInfo(ctx context.Context) ([]UserInfo, error)
func (*UserClient) RemoveUserPolicy ¶
func (*UserClient) TopNUser ¶
func (c *UserClient) TopNUser(ctx context.Context, n int32) ([]UserUseSpace, error)
func (*UserClient) TransferUserVol ¶
func (*UserClient) UpdateUser ¶
func (*UserClient) UpdateUserPolicy ¶
func (*UserClient) ValidatePassword ¶
type UserInfo ¶
type UserInfo struct { Access_key string Create_time string Description string EMPTY bool Policy *UserPolicy Secret_key string UserStatistical *UserStatistical User_id string User_type uint8 }
type UserPolicy ¶
type UserPolicy struct { AuthorizedVols []AuthorizedVols Own_vols []string }
type UserStatistical ¶
type UserUseSpace ¶
Click to show internal directories.
Click to hide internal directories.