Documentation ¶
Index ¶
- Constants
- func CreateDNSSECKeys(w http.ResponseWriter, r *http.Request)
- func DeleteDNSSECKeys(w http.ResponseWriter, r *http.Request)
- func DeleteDNSSECKeysDeprecated(w http.ResponseWriter, r *http.Request)
- func DeleteName(w http.ResponseWriter, r *http.Request)
- func DomainsHandler(w http.ResponseWriter, r *http.Request)
- func GenerateKSK(w http.ResponseWriter, r *http.Request)
- func GetCapacity(w http.ResponseWriter, r *http.Request)
- func GetDNSSECKeys(w http.ResponseWriter, r *http.Request)
- func GetDNSSECKeysV11(w http.ResponseWriter, r *http.Request)
- func GetDSRecordTTL(tx *sql.Tx, cdn string) (time.Duration, error)
- func GetHealth(w http.ResponseWriter, r *http.Request)
- func GetNameHealth(w http.ResponseWriter, r *http.Request)
- func GetSSLKeys(w http.ResponseWriter, r *http.Request)
- func IsValidCDNName(str string) bool
- func Queue(w http.ResponseWriter, r *http.Request)
- func RefreshDNSSECKeys(w http.ResponseWriter, r *http.Request)
- type CDNDS
- type CapData
- type CapacityResp
- type DNSSECKeyRefreshCDNInfo
- type DNSSECKeyRefreshDSInfo
- type TOCDN
- func (cdn *TOCDN) Create() (error, error, int)
- func (cdn *TOCDN) Delete() (error, error, int)
- func (v *TOCDN) DeleteQuery() string
- func (cdn TOCDN) GetAuditName() string
- func (cdn TOCDN) GetKeyFieldsInfo() []api.KeyFieldInfo
- func (cdn TOCDN) GetKeys() (map[string]interface{}, bool)
- func (v *TOCDN) GetLastUpdated() (*time.Time, bool, error)
- func (cdn TOCDN) GetType() string
- func (v *TOCDN) InsertQuery() string
- func (v *TOCDN) NewReadObj() interface{}
- func (v *TOCDN) ParamColumns() map[string]dbhelpers.WhereColumnInfo
- func (cdn *TOCDN) Read(h http.Header, useIMS bool) ([]interface{}, error, error, int, *time.Time)
- func (v *TOCDN) SelectMaxLastUpdatedQuery(where, orderBy, pagination, tableName string) string
- func (v *TOCDN) SelectQuery() string
- func (cdn *TOCDN) SetKeys(keys map[string]interface{})
- func (v *TOCDN) SetLastUpdated(t tc.TimeNoMod)
- func (cdn *TOCDN) Update(h http.Header) (error, error, int)
- func (v *TOCDN) UpdateQuery() string
- func (cdn TOCDN) Validate() error
- type TOCDNConf
- func (v TOCDNConf) GetType() string
- func (v *TOCDNConf) NewReadObj() interface{}
- func (v *TOCDNConf) ParamColumns() map[string]dbhelpers.WhereColumnInfo
- func (v *TOCDNConf) Read(h http.Header, useIMS bool) ([]interface{}, error, error, int, *time.Time)
- func (v *TOCDNConf) SelectMaxLastUpdatedQuery(where, orderBy, pagination, tableName string) string
- func (v *TOCDNConf) SelectQuery() string
Constants ¶
const API_DNSSECKEYS = "DELETE /cdns/name/:name/dnsseckeys"
const CDNDNSSECKeyType = "dnssec"
const DNSSECKeyRefreshDefaultEffectiveMultiplier = uint64(10)
const DNSSECKeyRefreshDefaultGenerationMultiplier = uint64(10)
const DNSSECKeyRefreshDefaultKSKExpiration = time.Duration(365) * time.Hour * 24
const DNSSECKeyRefreshDefaultTTL = time.Duration(60) * time.Second
const DNSSECKeyRefreshDefaultZSKExpiration = time.Duration(30) * time.Hour * 24
const DNSSECStatusExisting = "existing"
const DefaultDNSSECKeyTTL = 60 * time.Second
const DefaultDSTTL = 60 * time.Second
DefaultDSTTL is the default DS Record TTL to use, if no CDN Snapshot exists, or if no tld.ttls.DS parameter exists. This MUST be the same value as Traffic Router's default. Currently: traffic_router/core/src/main/java/com/comcast/cdn/traffic_control/traffic_router/core/dns/SignatureManager.java:476 `final Long dsTtl = ZoneUtils.getLong(config.get("ttls"), "DS", 60);`. If Traffic Router and Traffic Ops differ, and a user is using the default, errors may occur! Users are advised to set the tld.ttls.DS CRConfig.json Parameter, so the default is not used! Traffic Ops functions SHOULD warn whenever this default is used.
const DefaultKSKEffectiveMultiplier = 2
const DefaultKSKExpiration = 365 * 24 * time.Hour
const DefaultKSKTTLSeconds = 60
const DefaultZSKExpiration = 30 * 24 * time.Hour
const MonitorOnlineStatus = "ONLINE"
const MonitorProxyParameter = "tm.traffic_mon_fwd_proxy"
const MonitorRequestTimeout = time.Second * 10
const RouterProfilePrefix = "CCR"
Variables ¶
This section is empty.
Functions ¶
func CreateDNSSECKeys ¶
func CreateDNSSECKeys(w http.ResponseWriter, r *http.Request)
func DeleteDNSSECKeys ¶
func DeleteDNSSECKeys(w http.ResponseWriter, r *http.Request)
func DeleteDNSSECKeysDeprecated ¶
func DeleteDNSSECKeysDeprecated(w http.ResponseWriter, r *http.Request)
func DeleteName ¶
func DeleteName(w http.ResponseWriter, r *http.Request)
func DomainsHandler ¶
func DomainsHandler(w http.ResponseWriter, r *http.Request)
func GenerateKSK ¶
func GenerateKSK(w http.ResponseWriter, r *http.Request)
func GetCapacity ¶
func GetCapacity(w http.ResponseWriter, r *http.Request)
func GetDNSSECKeys ¶
func GetDNSSECKeys(w http.ResponseWriter, r *http.Request)
func GetDNSSECKeysV11 ¶
func GetDNSSECKeysV11(w http.ResponseWriter, r *http.Request)
func GetNameHealth ¶
func GetNameHealth(w http.ResponseWriter, r *http.Request)
func GetSSLKeys ¶
func GetSSLKeys(w http.ResponseWriter, r *http.Request)
func IsValidCDNName ¶
IsValidCDNName returns true if the name contains only characters valid for a CDN name
func RefreshDNSSECKeys ¶
func RefreshDNSSECKeys(w http.ResponseWriter, r *http.Request)
Types ¶
type CapacityResp ¶
type DNSSECKeyRefreshCDNInfo ¶
type DNSSECKeyRefreshDSInfo ¶
type TOCDN ¶
type TOCDN struct { api.APIInfoImpl `json:"-"` tc.CDNNullable }
we need a type alias to define functions on
func (*TOCDN) DeleteQuery ¶
func (TOCDN) GetAuditName ¶
func (TOCDN) GetKeyFieldsInfo ¶
func (cdn TOCDN) GetKeyFieldsInfo() []api.KeyFieldInfo
func (*TOCDN) InsertQuery ¶
func (*TOCDN) NewReadObj ¶
func (v *TOCDN) NewReadObj() interface{}
func (*TOCDN) ParamColumns ¶
func (v *TOCDN) ParamColumns() map[string]dbhelpers.WhereColumnInfo
func (*TOCDN) SelectMaxLastUpdatedQuery ¶
func (*TOCDN) SelectQuery ¶
func (*TOCDN) SetLastUpdated ¶
func (v *TOCDN) SetLastUpdated(t tc.TimeNoMod)
func (*TOCDN) UpdateQuery ¶
type TOCDNConf ¶
type TOCDNConf struct {
api.APIInfoImpl `json:"-"`
}
TOCDNConf used as a type alias to define functions on to satisfy shared API REST interfaces.
func (*TOCDNConf) NewReadObj ¶
func (v *TOCDNConf) NewReadObj() interface{}
func (*TOCDNConf) ParamColumns ¶
func (v *TOCDNConf) ParamColumns() map[string]dbhelpers.WhereColumnInfo