Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
type Registry struct {
RegistryID int64
UserID int64
Domain string
Data RegistryAttr
}
type RegistryAttr ¶
type RegistryAttr struct {
TTLSecond uint64 `json:"ttl_second"`
AllowAnonymous bool `json:"allow_anonymous"`
Anonymous TokenAttr `json:"anonymous"`
AllowPrefix bool `json:"allow_prefix"`
Source string `json:"source"`
EnableAllowlist bool `json:"enable_allowlist"`
Allowlist []string `json:"allowlist"`
AllowlisBlockMessage string `json:"allowlist_block_message"`
SpecialIPs map[string]TokenAttr `json:"special_ips"`
}
func (*RegistryAttr) Scan ¶
func (n *RegistryAttr) Scan(value any) error
type TokenAttr ¶
type TokenAttr struct {
NoRateLimit bool `json:"no_rate_limit,omitempty"`
RateLimitPerSecond uint64 `json:"rate_limit_per_second,omitempty"`
Weight int `json:"weight,omitempty"`
CacheFirst bool `json:"cache_first,omitempty"`
AllowTagsList bool `json:"allow_tags_list,omitempty"`
NoAllowlist bool `json:"no_allowlist,omitempty"`
NoBlock bool `json:"no_block,omitempty"`
NoBlobsAgent bool `json:"no_blobs_agent,omitempty"`
BlobsAgentURL string `json:"blobs_url,omitempty"`
AlwaysRedirect bool `json:"always_redirect,omitempty"`
Block bool `json:"block,omitempty"`
BlockMessage string `json:"block_message,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.