Documentation ¶
Index ¶
- Constants
- type BaseEntityVO
- type BaseEntityVOInterface
- type CacheClearVO
- type CacheSettingVO
- type DNSRecordVO
- type DatasourceVO
- type DomainVO
- type ErrorPageVO
- type ErrorPageVOList
- type IPFilterVO
- type QueryVO
- type RedirectVO
- type ResultVO
- type SettingsVO
- type SslCertVO
- type SslIntermediateVO
- type StatisticQueryVO
- type StatisticResultVO
- type StatisticVO
- type Validatable
- type ViolationVO
Constants ¶
View Source
const ( // DSRequestsSsl ... DSRequestsSsl = "requests_ssl" // DSRequestsNonSsl ... DSRequestsNonSsl = "requests_nonssl" // DSRequestsCached ... DSRequestsCached = "requests_cached" // DSRequestsCachedSsl ... DSRequestsCachedSsl = "requests_cached_ssl" // DSRequestsCachedNonSsl ... DSRequestsCachedNonSsl = "requests_cached_nonssl" // DSRequestsUncached ... DSRequestsUncached = "requests_uncached" // DSRequestsUncachedSsl ... DSRequestsUncachedSsl = "requests_uncached_ssl" // DSRequestsUncachedNonSsl ... DSRequestsUncachedNonSsl = "requests_uncached_nonssl" // DSRequestsCachedHits ... DSRequestsCachedHits = "requests_cache_hits" // DSRequestsCachedHitsSsl ... DSRequestsCachedHitsSsl = "requests_cache_hits_ssl" // DSRequestsCachedHitsNonSsl ... DSRequestsCachedHitsNonSsl = "requests_cache_hits_nonssl" // DSBytesNonSsl ... DSBytesNonSsl = "bytes_nonssl" // DSBytesCached ... DSBytesCached = "bytes_cached" // DSBytesCachedSsl ... DSBytesCachedSsl = "bytes_cached_ssl" // DSBytesCachedNonSsl ... DSBytesCachedNonSsl = "bytes_cached_nonssl" // DSBytesUncached ... DSBytesUncached = "bytes_uncached" // DSBytesUncachedSsl ... DSBytesUncachedSsl = "bytes_uncached_ssl" // DSBytesUncachedNonSsl ... DSBytesUncachedNonSsl = "bytes_uncached_nonssl" // DSBytesCacheHits ... DSBytesCacheHits = "bytes_cache_hits" // DSBytesCacheHitsSsl ... DSBytesCacheHitsSsl = "bytes_cache_hits_ssl" // DSBytesCacheHitsNonSsl ... DSBytesCacheHitsNonSsl = "bytes_cache_hits_nonssl" // DSUpstreamPerformance ... DSUpstreamPerformance = "upstream_performance" // DSResponseCodes ... DSResponseCodes = "response_codes" // DSCountryCodes ... DSCountryCodes = "country_codes" // DSRequestsBlocked ... DSRequestsBlocked = "requests_blocked" // TypeStats ... TypeStats = "stats" // TypeHistogram ... TypeHistogram = "histogram" // RecordTypeA ... RecordTypeA = "A" // RecordTypeAAAA ... RecordTypeAAAA = "AAAA" // RecordTypeCNAME ... RecordTypeCNAME = "CNAME" // RecordTypeMX ... RecordTypeMX = "MX" // RecordTypeSRV ... RecordTypeSRV = "SRV" // RecordTypePTR ... RecordTypePTR = "PTR" // RecordTypeNS ... RecordTypeNS = "NS" // RecordTypeTXT ... RecordTypeTXT = "TXT" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseEntityVO ¶
type BaseEntityVO struct { Modified *types.DateTime `json:"modified,omitempty"` Created *types.DateTime `json:"created,omitempty"` ID *uint64 `json:"id,omitempty"` }
BaseEntityVO ...
type BaseEntityVOInterface ¶
type BaseEntityVOInterface interface {
ResetDatabaseState() interface{}
}
BaseEntityVOInterface ...
type CacheClearVO ¶
type CacheClearVO struct { FQDN string `json:"fqdn"` Resource string `json:"resource"` Recursive bool `json:"recursive"` }
CacheClearVO ...
type CacheSettingVO ¶
type CacheSettingVO struct { BaseEntityVO `create:"ignore"` Path string `json:"path" create:"order=0" validate:"required"` TTL string `json:"ttl" create:"order=2" validate:"required,numeric"` Type string `json:"type" create:"order=1" validate:"required,eq=prefix|eq=suffix|eq=exact"` }
CacheSettingVO ...
func (CacheSettingVO) ResetDatabaseState ¶
func (c CacheSettingVO) ResetDatabaseState() interface{}
ResetDatabaseState ...
func (CacheSettingVO) Validate ¶
func (c CacheSettingVO) Validate(sl validator.StructLevel)
Validate ...
type DNSRecordVO ¶
type DNSRecordVO struct { BaseEntityVO `create:"ignore"` Name string `json:"name" validate:"required" create:"order=0"` TTL uint `json:"ttl" validate:"required,gte=300,lte=86400" create:"order=3"` Type string `json:"recordType" validate:"required,eq=A|eq=AAAA|eq=CNAME|eq=MX|eq=SRV|eq=PTR|eq=NS|eq=TXT" create:"order=1"` AlternativeCName string `json:"alternativeCname" create:"ignore"` Value string `json:"value" validate:"required" create:"order=2"` Priority int `json:"priority" validate:"gte=0,lte=65535"` Port uint `json:"port" validate:"gte=0,lte=65535"` Protected bool `json:"active" create:"order=4"` Enabled bool `json:"enabled"` }
DNSRecordVO ...
func (DNSRecordVO) ResetDatabaseState ¶
func (vo DNSRecordVO) ResetDatabaseState() interface{}
ResetDatabaseState ...
type DatasourceVO ¶
DatasourceVO ...
func NewDataSourceVO ¶
func NewDataSourceVO(source string, typ string) DatasourceVO
NewDataSourceVO ...
type DomainVO ¶
type DomainVO struct { BaseEntityVO `create:"ignore"` Name string `json:"name"` PausedUntil types.DateTime `json:"pausedUntil"` Paused bool `json:"paused"` Owned bool `json:"owned"` Maintenance bool `json:"maintenance"` AutoUpdate bool `json:"autoUpdate"` }
DomainVO ...
func (DomainVO) ResetDatabaseState ¶
func (vo DomainVO) ResetDatabaseState() interface{}
ResetDatabaseState ...
type ErrorPageVO ¶
type ErrorPageVO struct { BaseEntityVO `create:"ignore"` ErrorCode int `json:"errorCode" create:"order=0"` Content string `json:"content" create:"order=1,type=file"` }
ErrorPageVO ...
func (ErrorPageVO) ResetDatabaseState ¶
func (vo ErrorPageVO) ResetDatabaseState() interface{}
ResetDatabaseState ...
type ErrorPageVOList ¶
type ErrorPageVOList struct { SubDomainName string `json:"subDomainName"` Error map[string]ErrorPageVO `json:"error"` }
ErrorPageVOList ...
type IPFilterVO ¶
type IPFilterVO struct { BaseEntityVO `create:"ignore"` Type string `json:"type" create:"order=1" validate:"required,eq=BLACKLIST|eq=WHITELIST"` Value string `json:"value" create:"order=0" validate:"required,cidr"` }
IPFilterVO ...
func (IPFilterVO) ResetDatabaseState ¶
func (vo IPFilterVO) ResetDatabaseState() interface{}
ResetDatabaseState ...
type QueryVO ¶
type QueryVO struct { Error bool `json:"error"` Page uint `json:"page"` Count uint `json:"count"` PageSize uint `json:"pageSize"` }
QueryVO ...
type RedirectVO ¶
type RedirectVO struct { BaseEntityVO `create:"ignore"` Source string `json:"source"` Destination string `json:"destination"` Type string `json:"type"` MatchingType string `json:"matchingType"` ExpertMode bool `json:"expertMode" create:"ignore"` }
RedirectVO ...
func (RedirectVO) ResetDatabaseState ¶
func (vo RedirectVO) ResetDatabaseState() interface{}
ResetDatabaseState ...
type ResultVO ¶
type ResultVO struct { Error bool `json:"error"` ViolationList []ViolationVO `json:"violationList"` }
ResultVO ...
type SslCertVO ¶
type SslCertVO struct { BaseEntityVO `create:"ignore"` SubjectAlternatives []string `json:"subjectAlternatives"` Key string `json:"key" validate:"required"` Wildcard bool `json:"wildcard" ` ExtendedValidation bool `json:"extendedValidation"` IPList []string `json:"ipList"` Subdomains []string `json:"subDomains"` CertToRefresh int `json:"certToRefresh"` CertRefreshForced bool `json:"certRefreshForced"` SniAllowed bool `json:"sniAllowed"` Password string `json:"password"` Subject string `json:"subject" validate:"required"` Algorithm string `json:"algorithm"` ValidFrom string `json:"validFrom"` ValidTo string `json:"validTo"` Cert string `json:"cert"` Fingerprint string `json:"fingerprint"` SerialNumber string `json:"serialNumber"` Intermediates []SslIntermediateVO `json:"intermediates"` }
SslCertVO ...
func (SslCertVO) ResetDatabaseState ¶
func (vo SslCertVO) ResetDatabaseState() interface{}
ResetDatabaseState ...
type SslIntermediateVO ¶
type SslIntermediateVO struct { BaseEntityVO `create:"ignore"` Subject string `json:"subject" validate:"required"` Algorithm string `json:"algorithm"` ValidFrom string `json:"validFrom"` ValidTo string `json:"validTo"` Cert string `json:"cert"` Fingerprint string `json:"fingerprint"` SerialNumber string `json:"serialNumber"` Issuer string `json:"issuer"` }
SslIntermediateVO ...
func (SslIntermediateVO) ResetDatabaseState ¶
func (vo SslIntermediateVO) ResetDatabaseState() interface{}
ResetDatabaseState ...
func (SslIntermediateVO) Validate ¶
func (vo SslIntermediateVO) Validate(sl validator.StructLevel)
Validate ...
type StatisticQueryVO ¶
type StatisticQueryVO struct { AggregationInterval string `json:"aggregationInterval"` DataSource map[string]DatasourceVO `json:"dataSources"` StartDate *types.DateTime `json:"startDate"` EndDate *types.DateTime `json:"endDate"` FQDN []string `json:"fqdn"` Type string `json:"type"` }
StatisticQueryVO ...
type StatisticResultVO ¶
type StatisticResultVO map[string]interface{}
StatisticResultVO ...
func (StatisticResultVO) GetHistogramValues ¶
func (vo StatisticResultVO) GetHistogramValues(source string) []float64
GetHistogramValues ...
type StatisticVO ¶
type StatisticVO struct { Query StatisticQueryVO `json:"query"` Result StatisticResultVO `json:"result,omitempty"` }
StatisticVO ...
type ViolationVO ¶
ViolationVO ...
Source Files ¶
Click to show internal directories.
Click to hide internal directories.