{"modulePath":"github.com/opencloud-eu/opencloud","version":"v1.1.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package command\n\n## Constants\n\n```go\nconst (\n\tSKIP = iota\n\tREPLACE\n\tKEEP_BOTH\n)\n```\n\n## Functions\n\n```go\nfunc Execute(cfg *config.Config) error\n```\nExecute is the entry point for the opencloud-storage-users command.\n\n```go\nfunc GetCommands(cfg *config.Config) cli.Commands\n```\nGetCommands provides all commands for this service\n\n```go\nfunc Health(cfg *config.Config) *cli.Command\n```\nHealth is the entrypoint for the health command.\n\n```go\nfunc ListUploadSessions(cfg *config.Config) *cli.Command\n```\nListUploadSessions prints a list of upload sessiens\n\n```go\nfunc PurgeExpiredResources(cfg *config.Config) *cli.Command\n```\nPurgeExpiredResources cli command removes old trash-bin items.\n\n```go\nfunc Server(cfg *config.Config) *cli.Command\n```\nServer is the entry point for the server command.\n\n```go\nfunc TrashBin(cfg *config.Config) *cli.Command\n```\nTrashBin wraps trash-bin related sub-commands.\n\n```go\nfunc Uploads(cfg *config.Config) *cli.Command\n```\nUploads is the entry point for the uploads command\n\n```go\nfunc Version(cfg *config.Config) *cli.Command\n```\nVersion prints the service versions of all running instances.\n\n## Types\n\n```go\ntype Session struct {\n\tID         string         `json:\"id\"`\n\tSpace      string         `json:\"space\"`\n\tFilename   string         `json:\"filename\"`\n\tOffset     int64          `json:\"offset\"`\n\tSize       int64          `json:\"size\"`\n\tExecutant  userpb.UserId  `json:\"executant\"`\n\tSpaceOwner *userpb.UserId `json:\"spaceowner,omitempty\"`\n\tExpires    time.Time      `json:\"expires\"`\n\tProcessing bool           `json:\"processing\"`\n\tScanDate   time.Time      `json:\"virus_scan_date\"`\n\tScanResult string         `json:\"virus_scan_result\"`\n}\n```\nSession contains the information of an upload session\n\n","path":"github.com/opencloud-eu/opencloud/services/storage-users/pkg/command","name":"command","synopsis":"","isRedistributable":true}
