storage

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StorageCmd = &cobra.Command{
	Use:   "storage",
	Short: "Manage storage buckets and files",
	Long:  `List, create, update, and delete storage buckets and files.`,
}

StorageCmd manages storage

Functions

This section is empty.

Types

type BucketInfo

type BucketInfo struct {
	ID          string   `json:"$id"`
	Name        string   `json:"name"`
	Enabled     bool     `json:"enabled"`
	MaxFileSize int      `json:"maximumFileSize"`
	AllowedExts []string `json:"allowedFileExtensions"`
	Encryption  bool     `json:"encryption"`
	Antivirus   bool     `json:"antivirus"`
	Compression string   `json:"compression"`
	CreatedAt   string   `json:"$createdAt,omitempty"`
}

type FileInfo

type FileInfo struct {
	ID        string `json:"$id"`
	BucketID  string `json:"bucketId"`
	Name      string `json:"name"`
	Size      int    `json:"sizeOriginal"`
	MimeType  string `json:"mimeType"`
	CreatedAt string `json:"$createdAt,omitempty"`
}

Jump to

Keyboard shortcuts

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