Documentation
¶
Index ¶
- func Create(ctx context.Context, exec boil.ContextExecutor, quotum *Quotum) error
- func DeleteBoxUsedSpace(ctx context.Context, exec boil.ContextExecutor, boxID string) error
- func UpdateBoxUsedSpace(ctx context.Context, exec boil.ContextExecutor, BoxID string, ...) error
- type Quotum
- type UsedSpace
- type VaultUsedSpace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
Create quotum generating the id
func DeleteBoxUsedSpace ¶
DeleteBoxUsedSpace ...
Types ¶
type Quotum ¶
type Quotum struct { ID string `json:"id"` CreatedAt time.Time `json:"created_at"` IdentityID string `json:"identity_id"` Value int64 `json:"value"` Origin string `json:"origin"` }
Quotum model
func List ¶
List quota for a given identityID
type UsedSpace ¶
type UsedSpace struct { BoxID string `json:"box_id"` Value int64 `json:"value"` ID string `json:"-"` }
UsedSpace model
type VaultUsedSpace ¶
type VaultUsedSpace struct {
Value int64 `json:"value" boil:"total"`
}
VaultUsedSpace model
func GetVault ¶
func GetVault(ctx context.Context, exec boil.ContextExecutor, id string) (*VaultUsedSpace, error)
GetVault used space
Click to show internal directories.
Click to hide internal directories.