Versions in this module Expand all Collapse all v1 v1.0.8 May 12, 2022 Changes in this version + const ErrUserAlreadyExistsMsg + const ErrUserBadRequestMsg + const ErrUserInvalidIDMsg + const ErrUserMismatchMsg + const ErrUserNotFoundMsg + const ErrUserPasswordInvalidMsg + type Client interface + DeleteUser func(ctx context.Context, u *model.User) error + GetUser func(ctx context.Context, username string) (*model.User, error) + NewUser func(ctx context.Context, username, email, realname, password, comments string) + UpdateUser func(ctx context.Context, u *model.User) error + UpdateUserPassword func(ctx context.Context, id int64, password *model.Password) error + type ErrUserAlreadyExists struct + func (e *ErrUserAlreadyExists) Error() string + type ErrUserBadRequest struct + func (e *ErrUserBadRequest) Error() string + type ErrUserInvalidID struct + func (e *ErrUserInvalidID) Error() string + type ErrUserMismatch struct + func (e *ErrUserMismatch) Error() string + type ErrUserNotFound struct + func (e *ErrUserNotFound) Error() string + type ErrUserPasswordInvalid struct + func (e *ErrUserPasswordInvalid) Error() string + type RESTClient struct + AuthInfo runtime.ClientAuthInfoWriter + Client *client.Harbor + func NewClient(cl *client.Harbor, authInfo runtime.ClientAuthInfoWriter) *RESTClient + func (c *RESTClient) DeleteUser(ctx context.Context, u *model.User) error + func (c *RESTClient) GetUser(ctx context.Context, username string) (*model.User, error) + func (c *RESTClient) NewUser(ctx context.Context, username, email, realname, password, comments string) (*model.User, error) + func (c *RESTClient) UpdateUser(ctx context.Context, u *model.User) error + func (c *RESTClient) UpdateUserPassword(ctx context.Context, id int64, password *model.Password) error + func (c *RESTClient) UserExists(ctx context.Context, u *model.User) (bool, error)