Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthCommand ¶
type AuthCommand struct {
Value string `arg:"" help:"Token value"`
}
type AuthCommands ¶
type AuthCommands struct {
Auth AuthCommand `cmd:"" group:"AUTH" help:"Return a user from an auth token"`
}
type TokenCommands ¶
type TokenCommands struct {
Tokens TokenListCommand `cmd:"" group:"AUTH" help:"List tokens for user"`
Token TokenGetCommand `cmd:"" group:"AUTH" help:"Get token for user"`
CreateToken TokenCreateCommand `cmd:"" group:"AUTH" help:"Create new token for user"`
UpdateToken TokenUpdateCommand `cmd:"" group:"AUTH" help:"Update token for user"`
DeleteToken TokenDeleteCommand `cmd:"" group:"AUTH" help:"Delete token for user"`
}
type TokenCreateCommand ¶
type TokenDeleteCommand ¶
type TokenGetCommand ¶
type TokenListCommand ¶
type TokenListCommand struct {
User string `arg:"" help:"User name"`
schema.TokenListRequest
}
type TokenUpdateCommand ¶
type UserCommands ¶
type UserCommands struct {
Users UserListCommand `cmd:"" group:"AUTH" help:"List users"`
User UserGetCommand `cmd:"" group:"AUTH" help:"Get a user"`
CreateUser UserCreateCommand `cmd:"" group:"AUTH" help:"Create a new user"`
DeleteUser UserDeleteCommand `cmd:"" group:"AUTH" help:"Delete a user"`
UpdateUser UserUpdateCommand `cmd:"" group:"AUTH" help:"Update user metatdata"`
}
type UserCreateCommand ¶
type UserDeleteCommand ¶
type UserDeleteCommand struct {
UserGetCommand
Force bool `help:"Force delete"`
}
type UserGetCommand ¶
type UserGetCommand struct {
Name string `arg:"" help:"User name"`
}
type UserListCommand ¶
type UserListCommand struct {
schema.UserListRequest
}
Click to show internal directories.
Click to hide internal directories.