admin_user

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateUser

type CreateUser struct {
	Name string `arg:"" name:"name" help:"The name of the new user"`
}

func (*CreateUser) Run

func (u *CreateUser) Run(ctx context.Context, userHandler client.UserHandler, logger log.FLogger, parent *User) error

type ListUsers

type ListUsers struct {
}

func (*ListUsers) Help

func (u *ListUsers) Help() string

func (*ListUsers) Run

func (u *ListUsers) Run(ctx context.Context, userHandler client.UserHandler, logger log.FLogger, parent *User) error

type User

type User struct {
	Create CreateUser `cmd:"" name:"create" aliases:"c" help:"Create a new FunLess user"`
	List   ListUsers  `cmd:"" name:"list" aliases:"l" help:"List all FunLess users"`

	Host string `short:"H" help:"API host/port of the platform (no protocol)"`
}

func (*User) Help

func (u *User) Help() string

Jump to

Keyboard shortcuts

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