cmd

package
v1.5.9 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2025 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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