admin

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Admin

type Admin struct {
	SetBucketPlacement SetBucketPlacement `cmd:"" help:"set the default placement of a bucket"`
	UpdateUser         UpdateUser         `cmd:"" help:"update some fields of a user"`
}

type SetBucketPlacement

type SetBucketPlacement struct {
	db.WithDatabase
	Bucket    string     `arg:"" required:"" help:"name of the bucket"`
	Placement int        `arg:"" required:"" help:"placement for the bucket"`
	ProjectID *uuid.UUID `help:"project ID (leave empty to find it from UPLINK_ACCESS)"`
}

func (*SetBucketPlacement) Run

func (s *SetBucketPlacement) Run() error

type UpdateUser added in v1.15.0

type UpdateUser struct {
	db.WithDatabase
	Email    string `arg:""`
	Password string
	Status   *int `name:"status" help:"set user status"`
}

func (*UpdateUser) Run added in v1.15.0

func (s *UpdateUser) Run() error

Jump to

Keyboard shortcuts

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