cmd

package
v1.5.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

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"`
}

func (AuthCommand) Run

func (cmd AuthCommand) Run(ctx server.Cmd) error

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 TokenCreateCommand struct {
	User string `arg:"" help:"User name"`
	schema.TokenMeta
}

func (TokenCreateCommand) Run

func (cmd TokenCreateCommand) Run(ctx server.Cmd) error

type TokenDeleteCommand

type TokenDeleteCommand struct {
	schema.TokenId
	Force bool `help:"Force delete"`
}

func (TokenDeleteCommand) Run

func (cmd TokenDeleteCommand) Run(ctx server.Cmd) error

type TokenGetCommand

type TokenGetCommand struct {
	schema.TokenId
}

func (TokenGetCommand) Run

func (cmd TokenGetCommand) Run(ctx server.Cmd) error

type TokenListCommand

type TokenListCommand struct {
	User string `arg:"" help:"User name"`
	schema.TokenListRequest
}

func (TokenListCommand) Run

func (cmd TokenListCommand) Run(ctx server.Cmd) error

type TokenUpdateCommand

type TokenUpdateCommand struct {
	schema.TokenId
	schema.TokenMeta
}

func (TokenUpdateCommand) Run

func (cmd TokenUpdateCommand) Run(ctx server.Cmd) error

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 UserCreateCommand struct {
	schema.UserMeta
}

func (UserCreateCommand) Run

func (cmd UserCreateCommand) Run(ctx server.Cmd) error

type UserDeleteCommand

type UserDeleteCommand struct {
	UserGetCommand
	Force bool `help:"Force delete"`
}

func (UserDeleteCommand) Run

func (cmd UserDeleteCommand) Run(ctx server.Cmd) error

type UserGetCommand

type UserGetCommand struct {
	Name string `arg:"" help:"User name"`
}

func (UserGetCommand) Run

func (cmd UserGetCommand) Run(ctx server.Cmd) error

type UserListCommand

type UserListCommand struct {
	schema.UserListRequest
}

func (UserListCommand) Run

func (cmd UserListCommand) Run(ctx server.Cmd) error

type UserUpdateCommand

type UserUpdateCommand struct {
	Name *string `help:"New user name"`
	schema.UserMeta
}

func (UserUpdateCommand) Run

func (cmd UserUpdateCommand) Run(ctx server.Cmd) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL