Documentation
¶
Overview ¶
Package tenantpolicy defines CloudPath's v0.1 anti-abuse limits and tenant-scoped retention policy. It is a pure domain package; persistence and HTTP/WS wiring live in store/server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidPolicy = errors.New("tenantpolicy: invalid policy") ErrQuotaExceeded = errors.New("tenantpolicy: quota exceeded") )
Functions ¶
This section is empty.
Types ¶
type Policy ¶
type Policy struct {
Retention RetentionDays
Quotas Quotas
}
Policy is the resolved policy used by runtime enforcement.
type QuotaError ¶
QuotaError carries only non-sensitive usage facts.
func (*QuotaError) Code ¶
func (e *QuotaError) Code() string
func (*QuotaError) Error ¶
func (e *QuotaError) Error() string
func (*QuotaError) Unwrap ¶
func (e *QuotaError) Unwrap() error
type Quotas ¶
type Quotas struct {
Devices int
Edges int
BrowserWS int
Tokens int
Users int
EventsPerMinute int
PluginInstances int
}
Quotas contains resolved hard limits. Zero/unlimited is deliberately invalid.
Click to show internal directories.
Click to hide internal directories.