Documentation
¶
Overview ¶
Package softwarecenter implements a single-writer organization file share outside Git/LFS.
Index ¶
Constants ¶
View Source
const ( DefaultQuota int64 = 100 * 1024 * 1024 * 1024 MaxQuota int64 = 10 * 1024 * 1024 * 1024 * 1024 MaxEntries = 20000 )
Variables ¶
View Source
var ( ErrInvalid = errors.New("invalid file or folder") ErrConflict = errors.New("name already exists or folder changed") ErrQuota = errors.New("organization storage quota exceeded") ErrBusy = errors.New("upload capacity busy") ErrDiskCapacity = errors.New("insufficient unreserved disk capacity") )
Functions ¶
Types ¶
type Node ¶
type Node struct {
ID string `json:"id"`
Parent string `json:"parent"`
Name string `json:"name"`
Directory bool `json:"directory"`
Size int64 `json:"size"`
Digest string `json:"digest,omitempty"`
Modified int64 `json:"modified"`
UserID int64 `json:"user_id"`
}
func CreateFolder ¶
type Reservation ¶
type State ¶
type State struct {
Version int `json:"version"`
Quota int64 `json:"quota"`
Nodes map[string]*Node `json:"nodes"`
Uploads map[string]Reservation `json:"uploads"`
Garbage map[string]int64 `json:"garbage,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.