You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
479 B
Go
24 lines
479 B
Go
3 years ago
|
package namespace
|
||
3 years ago
|
|
||
|
import (
|
||
|
"time"
|
||
|
"errors"
|
||
|
)
|
||
|
|
||
3 years ago
|
type Namespace struct {
|
||
3 years ago
|
ID int64
|
||
|
Name string
|
||
|
LastSeen time.Time
|
||
|
AllowanceDuration time.Duration
|
||
|
FileQuota FileSizeQuota
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
ErrDuplicate = errors.New("record already exists")
|
||
3 years ago
|
ErrExceedQuota = errors.New("file too large")
|
||
3 years ago
|
ErrQuotaInvalid = errors.New("quota invalid")
|
||
3 years ago
|
ErrNotExists = errors.New("row not exists")
|
||
|
ErrUpdateFailed = errors.New("update failed")
|
||
|
ErrDeleteFailed = errors.New("delete failed")
|
||
|
)
|