command

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2025 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SKIP = iota
	REPLACE
	KEEP_BOTH
)

Variables

This section is empty.

Functions

func Execute

func Execute(cfg *config.Config) error

Execute is the entry point for the opencloud-storage-users command.

func GetCommands

func GetCommands(cfg *config.Config) cli.Commands

GetCommands provides all commands for this service

func Health

func Health(cfg *config.Config) *cli.Command

Health is the entrypoint for the health command.

func ListUploadSessions

func ListUploadSessions(cfg *config.Config) *cli.Command

ListUploadSessions prints a list of upload sessiens

func PurgeExpiredResources

func PurgeExpiredResources(cfg *config.Config) *cli.Command

PurgeExpiredResources cli command removes old trash-bin items.

func Server

func Server(cfg *config.Config) *cli.Command

Server is the entry point for the server command.

func TrashBin

func TrashBin(cfg *config.Config) *cli.Command

TrashBin wraps trash-bin related sub-commands.

func Uploads

func Uploads(cfg *config.Config) *cli.Command

Uploads is the entry point for the uploads command

func Version

func Version(cfg *config.Config) *cli.Command

Version prints the service versions of all running instances.

Types

type Session

type Session struct {
	ID         string         `json:"id"`
	Space      string         `json:"space"`
	Filename   string         `json:"filename"`
	Offset     int64          `json:"offset"`
	Size       int64          `json:"size"`
	Executant  userpb.UserId  `json:"executant"`
	SpaceOwner *userpb.UserId `json:"spaceowner,omitempty"`
	Expires    time.Time      `json:"expires"`
	Processing bool           `json:"processing"`
	ScanDate   time.Time      `json:"virus_scan_date"`
	ScanResult string         `json:"virus_scan_result"`
}

Session contains the information of an upload session

Jump to

Keyboard shortcuts

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