Versions in this module Expand all Collapse all v1 v1.1.5 Oct 20, 2022retracted Changes in this version + const ATSDotRulesFileName + const ActionAllow + const ActionDeny + const AstatsFileName + const AstatsSeparator + const CacheKeyParameterConfigFile + const CacheUrlPrefix + const ChkconfigFileName + const ChkconfigParamConfigFile + const ConfigSuffix + const ContentType12MFacts + const ContentTypeATSDotRules + const ContentTypeAstatsDotConfig + const ContentTypeBGFetchDotConfig + const ContentTypeCacheDotConfig + const ContentTypeChkconfig + const ContentTypeDropQStringDotConfig + const ContentTypeHeaderRewriteDotConfig + const ContentTypeHostingDotConfig + const ContentTypeIPAllowDotConfig + const ContentTypeIPAllowDotYAML + const ContentTypeLoggingDotConfig + const ContentTypeLoggingDotYAML + const ContentTypeLogsDotXML + const ContentTypePackages + const ContentTypeParentDotConfig + const ContentTypePluginDotConfig + const ContentTypeRecordsDotConfig + const ContentTypeRegexRemapDotConfig + const ContentTypeRegexRevalidateDotConfig + const ContentTypeRemapDotConfig + const ContentTypeSNIDotYAML + const ContentTypeSSLMultiCertDotConfig + const ContentTypeSSLServerNameYAML + const ContentTypeServerUnknownConfig + const ContentTypeSetDSCPDotConfig + const ContentTypeStorageDotConfig + const ContentTypeStrategiesDotYAML + const ContentTypeSysctlDotConf + const ContentTypeTextASCII + const ContentTypeURISigningDotConfig + const ContentTypeURLSig + const ContentTypeVolumeDotConfig + const ContentTypeYAML + const DefaultATSVersion + const DefaultCoalesceMaskLenV4 + const DefaultCoalesceMaskLenV6 + const DefaultCoalesceNumberV4 + const DefaultCoalesceNumberV6 + const DefaultDefaultEnableH2 + const DefaultIgnoreQueryStringInParentSelection + const DefaultMaxRevalDurationDays + const DefaultParentAbstractionServiceRetryPolicy + const DefaultParentWeight + const DropQStringDotConfigFileName + const DropQStringDotConfigParamName + const HeaderCommentDateFormat + const HeaderRewriteFirstPrefix + const HeaderRewriteInnerPrefix + const HeaderRewriteLastPrefix + const HeaderRewriteMidPrefix + const HeaderRewritePrefix + const HostingConfigFileName + const HostingConfigParamConfigFile + const IPAllowConfigFileName + const IPAllowYamlFileName + const InvalidID + const JobKeywordPurge + const JobLegacyKeyword + const JobLegacyParamPrefix + const JobLegacyParamSuffix + const JobLegacyRefetchSuffix + const JobLegacyRefreshSuffix + const JobLegacyTimeFormat + const JobV4TimeFormat + const LineComment12MFacts + const LineCommentATSDotRules + const LineCommentAstatsDotConfig + const LineCommentBGFetchDotConfig + const LineCommentCacheDotConfig + const LineCommentChkconfig + const LineCommentDropQStringDotConfig + const LineCommentHash + const LineCommentHeaderRewriteDotConfig + const LineCommentHostingDotConfig + const LineCommentIPAllowDotConfig + const LineCommentIPAllowDotYAML + const LineCommentLoggingDotConfig + const LineCommentLoggingDotYAML + const LineCommentLogsDotXML + const LineCommentPackages + const LineCommentParentDotConfig + const LineCommentPluginDotConfig + const LineCommentRecordsDotConfig + const LineCommentRegexRemapDotConfig + const LineCommentRegexRevalidateDotConfig + const LineCommentRemapDotConfig + const LineCommentSNIDotYAML + const LineCommentSSLMultiCertDotConfig + const LineCommentSSLServerNameYAML + const LineCommentSetDSCPDotConfig + const LineCommentStorageDotConfig + const LineCommentStrategiesDotYAML + const LineCommentSysctlDotConf + const LineCommentURISigningDotConfig + const LineCommentURLSig + const LineCommentVolumeDotConfig + const LineCommentYAML + const LoggingFileName + const LoggingYAMLFileName + const LogsXMLFileName + const MaxLogObjects + const MaxOriginConnectionsNoMax + const MethodAll + const MethodDelete + const MethodPurge + const MethodPush + const MethodSeparator + const PackagesFileName + const PackagesParamConfigFile + const ParamCoalesceMaskLenV4 + const ParamCoalesceMaskLenV6 + const ParamCoalesceNumberV4 + const ParamCoalesceNumberV6 + const ParamDrivePrefix + const ParamPurgeAllowIP + const ParamRAMDrivePrefix + const ParentAbstractionServiceParentSecondaryModeAlternate + const ParentAbstractionServiceParentSecondaryModeDefault + const ParentAbstractionServiceParentSecondaryModeExhaust + const ParentAbstractionServiceParentSecondaryModeInvalid + const ParentAbstractionServiceParentSecondaryModePeering + const ParentAbstractionServiceRetryPolicyConsistentHash + const ParentAbstractionServiceRetryPolicyFirst + const ParentAbstractionServiceRetryPolicyInvalid + const ParentAbstractionServiceRetryPolicyLatched + const ParentAbstractionServiceRetryPolicyRoundRobinIP + const ParentAbstractionServiceRetryPolicyRoundRobinStrict + const ParentConfigCacheParamNotAParent + const ParentConfigCacheParamPort + const ParentConfigCacheParamRank + const ParentConfigCacheParamUseIP + const ParentConfigCacheParamWeight + const ParentConfigDSParamDefaultMSOAlgorithm + const ParentConfigDSParamDefaultMSOParentRetry + const ParentConfigDSParamDefaultMSOUnavailableServerRetryResponses + const ParentConfigDSParamDefaultMaxSimpleRetries + const ParentConfigDSParamDefaultMaxUnavailableServerRetries + const ParentConfigFileName + const ParentConfigParamMergeGroups + const ParentConfigParamQString + const ParentConfigParamQStringHandling + const ParentDotConfigParentSeparator + const PluginFileName + const PluginSeparator + const RecordsFileName + const RecordsSeparator + const RefetchSuffix + const RefreshSuffix + const RegexRemapPrefix + const RegexRevalidateFileName + const RegexRevalidateMaxRevalDurationDaysParamName + const RegexRevalidateMinTTL + const RemapConfigCachekeyDirective + const RemapConfigRangeDirective + const RemapConfigRegexRemapDirective + const RemapFile + const RevalTypeDefault + const RevalTypeMiss + const RevalTypeStale + const SNIDotYAMLFileName + const SSLMultiCertConfigFileName + const SSLServerNameYAMLFileName + const SSLServerNameYAMLParamEnableH2 + const SSLServerNameYAMLParamTLSVersions + const ServerCacheDotConfigIncludeInactiveDSes + const ServerHostingDotConfigEdgeIncludeInactive + const ServerHostingDotConfigMidIncludeInactive + const ServiceCategoryHeader + const StorageFileName + const StrategyConfigUsePeering + const SysctlFileName + const SysctlSeparator + const TLSVersion1p0 + const TLSVersion1p1 + const TLSVersion1p2 + const TLSVersion1p3 + const TLSVersionInvalid + const TopologyCacheTierFirst + const TopologyCacheTierInner + const TopologyCacheTierInvalid + const TopologyCacheTierLast + const TsDefaultRequestHeaderMaxSize + const VolumeFileName + const YAMLActionAllow + const YAMLActionDeny + const YAMLDocumentEnd + const YAMLDocumentStart + const YAMLMethodAll + var DefaultDefaultTLSVersions = []TLSVersion + var DefaultSimpleRetryCodes = []int + var DefaultUnavailableServerRetryCodes = []int + var ParentConfigRetryKeysDefault = MakeParentConfigRetryKeysWithPrefix("") + var ParentConfigRetryKeysFirst = MakeParentConfigRetryKeysWithPrefix("first.") + var ParentConfigRetryKeysInner = MakeParentConfigRetryKeysWithPrefix("inner.") + var ParentConfigRetryKeysLast = MakeParentConfigRetryKeysWithPrefix("last.") + var ParentConfigRetryKeysMSO = MakeParentConfigRetryKeysWithPrefix("mso.") + func BoolOnOff(b bool) string + func DeliveryServicesToSSLMultiCertDSes(dses []DeliveryService) (map[tc.DeliveryServiceName]sslMultiCertDS, []string) + func FirstHeaderRewriteConfigFileName(dsName string) string + func GetATSMajorVersionFromATSVersion(atsVersion string) (uint, error) + func GetDSParameters(ds *DeliveryService, params []tc.Parameter) ([]tc.Parameter, error) + func GetSSLMultiCertDotConfigCertAndKeyName(dsName tc.DeliveryServiceName, ds sslMultiCertDS) (string, string) + func GetSSLMultiCertDotConfigDeliveryServices(dses map[tc.DeliveryServiceName]sslMultiCertDS) map[tc.DeliveryServiceName]sslMultiCertDS + func GetServerParameters(server *Server, params []tc.Parameter) ([]tc.Parameter, error) + func InnerHeaderRewriteConfigFileName(dsName string) string + func LastHeaderRewriteConfigFileName(dsName string) string + func LayerProfiles(profileNames []string, tcParams []tc.Parameter) ([]tc.Parameter, error) + func ParentAbstractionServiceParentsToParentDotConfigLine(parents []*ParentAbstractionServiceParent) string + func ParentSelectParamQStringHandlingToBool(paramVal string) *bool + func ParseRetryResponses(resp string) ([]int, error) + func ProfilesMatch(pa []string, pb []string) bool + func ServerProfilesMatch(sa *Server, sb *Server) bool + type AStatsDotConfigOpts struct + HdrComment string + type ATSDotRulesOpts struct + HdrComment string + type BGFetchDotConfigOpts struct + HdrComment string + type CacheDotConfigOpts struct + HdrComment string + type CacheGroupType string + type Cfg struct + ContentType string + LineComment string + Secure bool + Text string + Warnings []string + func Make12MFacts(server *Server, opt *Config12MFactsOpts) (Cfg, error) + func MakeAStatsDotConfig(server *Server, serverParams []tc.Parameter, opt *AStatsDotConfigOpts) (Cfg, error) + func MakeATSDotRules(server *Server, serverParams []tc.Parameter, opt *ATSDotRulesOpts) (Cfg, error) + func MakeBGFetchDotConfig(server *Server, opt *BGFetchDotConfigOpts) (Cfg, error) + func MakeCacheDotConfig(server *Server, servers []Server, deliveryServices []DeliveryService, ...) (Cfg, error) + func MakeChkconfig(serverParams []tc.Parameter, opt *ChkconfigOpts) (Cfg, error) + func MakeDropQStringDotConfig(server *Server, serverParams []tc.Parameter, opt *DropQStringDotConfigOpts) (Cfg, error) + func MakeHeaderRewriteDotConfig(fileName string, deliveryServices []DeliveryService, ...) (Cfg, error) + func MakeHostingDotConfig(server *Server, servers []Server, serverParams []tc.Parameter, ...) (Cfg, error) + func MakeIPAllowDotConfig(serverParams []tc.Parameter, server *Server, servers []Server, ...) (Cfg, error) + func MakeIPAllowDotYAML(serverParams []tc.Parameter, server *Server, servers []Server, ...) (Cfg, error) + func MakeLoggingDotConfig(server *Server, serverParams []tc.Parameter, opt *LoggingDotConfigOpts) (Cfg, error) + func MakeLoggingDotYAML(server *Server, serverParams []tc.Parameter, opt *LoggingDotYAMLOpts) (Cfg, error) + func MakeLogsXMLDotConfig(server *Server, serverParams []tc.Parameter, opt *LogsXMLDotConfigOpts) (Cfg, error) + func MakePackages(serverParams []tc.Parameter, opts *PackagesOpts) (Cfg, error) + func MakeParentDotConfig(dses []DeliveryService, server *Server, servers []Server, ...) (Cfg, error) + func MakePluginDotConfig(server *Server, serverParams []tc.Parameter, opt *PluginDotConfigOpts) (Cfg, error) + func MakeRecordsDotConfig(server *Server, serverParams []tc.Parameter, opt *RecordsConfigOpts) (Cfg, error) + func MakeRegexRemapDotConfig(fileName string, server *Server, deliveryServices []DeliveryService, ...) (Cfg, error) + func MakeRegexRevalidateDotConfig(server *Server, deliveryServices []DeliveryService, ...) (Cfg, error) + func MakeRemapDotConfig(server *Server, unfilteredDSes []DeliveryService, dss []DeliveryServiceServer, ...) (Cfg, error) + func MakeSNIDotYAML(server *Server, dses []DeliveryService, dss []DeliveryServiceServer, ...) (Cfg, error) + func MakeSSLMultiCertDotConfig(server *Server, deliveryServices []DeliveryService, ...) (Cfg, error) + func MakeSSLServerNameYAML(server *Server, dses []DeliveryService, dss []DeliveryServiceServer, ...) (Cfg, error) + func MakeServerUnknown(fileName string, server *Server, serverParams []tc.Parameter, ...) (Cfg, error) + func MakeSetDSCPDotConfig(fileName string, server *Server, opt *SetDSCPDotConfigOpts) (Cfg, error) + func MakeStorageDotConfig(server *Server, serverParams []tc.Parameter, opt *StorageDotConfigOpts) (Cfg, error) + func MakeStrategiesDotYAML(dses []DeliveryService, server *Server, servers []Server, ...) (Cfg, error) + func MakeSysCtlDotConf(server *Server, serverParams []tc.Parameter, opt *SysCtlDotConfOpts) (Cfg, error) + func MakeURISigningConfig(fileName string, uriSigningKeys map[tc.DeliveryServiceName][]byte, ...) (Cfg, error) + func MakeURLSigConfig(fileName string, server *Server, serverParams []tc.Parameter, ...) (Cfg, error) + func MakeVolumeDotConfig(server *Server, serverParams []tc.Parameter, opt *VolumeDotConfigOpts) (Cfg, error) + type CfgFile struct + Name string + Path string + type CfgMeta struct + Name string + Path string + func MakeConfigFilesList(configDir string, server *Server, serverParams []tc.Parameter, ...) ([]CfgMeta, []string, error) + type ChkconfigOpts struct + type Config12MFactsOpts struct + HdrComment string + type ConfigFilesListOpts struct + ATSMajorVersion uint + type DeliveryService tc.DeliveryServiceV40 + func ToDeliveryServices(dses []tc.DeliveryServiceV40) []DeliveryService + func V40ToDeliveryServices(dses []tc.DeliveryServiceV40) []DeliveryService + type DeliveryServiceID int + type DeliveryServiceServer struct + DeliveryService int + Server int + type DropQStringDotConfigOpts struct + HdrComment string + type HeaderRewriteDotConfigOpts struct + ATSMajorVersion uint + HdrComment string + type HostingDotConfigOpts struct + HdrComment string + type IPAllowDotConfigOpts struct + HdrComment string + type IPAllowDotYAMLOpts struct + HdrComment string + type InvalidationJob tc.InvalidationJobV4 + func JobToInvalidationJob(jb tc.Job) (InvalidationJob, error) + func JobsToInvalidationJobs(oldJobs []tc.Job) ([]InvalidationJob, error) + func ToInvalidationJobs(jobs []tc.InvalidationJobV4) []InvalidationJob + type LoggingDotConfigOpts struct + HdrComment string + type LoggingDotYAMLOpts struct + ATSMajorVersion uint + HdrComment string + type LogsXMLDotConfigOpts struct + HdrComment string + type OriginFQDN string + type OriginHost string + type PackagesOpts struct + type ParentAbstraction struct + Peers []*ParentAbstractionServiceParent + Services []*ParentAbstractionService + type ParentAbstractionService struct + CachePeerResult bool + Comment string + DestDomain string + ErrorResponseCodes []int + GoDirect bool + IgnoreQueryStringInParentSelection bool + MarkdownResponseCodes []int + MaxMarkdownRetries int + MaxSimpleRetries int + Name string + Parents []*ParentAbstractionServiceParent + Port int + RetryPolicy ParentAbstractionServiceRetryPolicy + SecondaryMode ParentAbstractionServiceParentSecondaryMode + SecondaryParents []*ParentAbstractionServiceParent + Weight float64 + func (svc *ParentAbstractionService) ToParentDotConfigLine(opt *ParentConfigOpts, atsMajorVersion uint) (string, []string, error) + type ParentAbstractionServiceParent struct + FQDN string + Port int + Weight float64 + func RemoveParentDuplicates(inputs []*ParentAbstractionServiceParent, seens map[string]struct{}) ([]*ParentAbstractionServiceParent, map[string]struct{}) + func (pa *ParentAbstractionServiceParent) ToParentDotConfigFormat() string + func (sp ParentAbstractionServiceParent) Key() string + type ParentAbstractionServiceParentSecondaryMode string + func (mo ParentAbstractionServiceParentSecondaryMode) ToParentDotConfigVal() string + type ParentAbstractionServiceRetryPolicy string + func ParentSelectAlgorithmToParentAbstractionServiceRetryPolicy(alg string) ParentAbstractionServiceRetryPolicy + func (po ParentAbstractionServiceRetryPolicy) ToParentDotConfigFormat() string + type ParentAbstractionServices []*ParentAbstractionService + func (ps ParentAbstractionServices) Len() int + func (ps ParentAbstractionServices) Less(i, j int) bool + func (ps ParentAbstractionServices) Swap(i, j int) + type ParentConfigOpts struct + ATSMajorVersion uint + AddComments bool + HdrComment string + type ParentConfigRetryKeys struct + Algorithm string + MaxSimpleRetries string + MaxUnavailableRetries string + ParentRetry string + SecondaryMode string + SimpleRetryResponses string + UnavailableRetryResponses string + func MakeParentConfigRetryKeysWithPrefix(prefix string) ParentConfigRetryKeys + type PluginDotConfigOpts struct + HdrComment string + type ProfileID int + type ProfileName string + type RecordsConfigOpts struct + DNSLocalBindServiceAddr bool + HdrComment string + NoOutgoingIP bool + ReleaseViaStr bool + type RegexRemapDotConfigOpts struct + HdrComment string + type RegexRevalidateDotConfigOpts struct + HdrComment string + type RemapDotConfigOpts struct + ATSMajorVersion uint + HdrComment string + UseStrategies bool + UseStrategiesCore bool + VerboseComments bool + type RemapLines struct + Post []string + Pre []string + Text string + type RevalType string + type SNIDotYAMLOpts struct + DefaultEnableH2 bool + DefaultTLSVersions []TLSVersion + HdrComment string + VerboseComments bool + type SSLData struct + DSName string + EnableH2 bool + RequestFQDNs []string + TLSVersions []TLSVersion + func GetServerSSLData(server *Server, dses []DeliveryService, dss []DeliveryServiceServer, ...) ([]SSLData, []string, error) + type SSLMultiCertDotConfigOpts struct + HdrComment string + type SSLServerNameYAMLOpts struct + DefaultEnableH2 bool + DefaultTLSVersions []TLSVersion + HdrComment string + VerboseComments bool + type Server tc.ServerV40 + func FilterServers(servers []Server, filter func(sv *Server) bool) []Server + func ToServers(servers []tc.ServerV40) []Server + type ServerCapability string + type ServerID int + type ServerUnknownOpts struct + HdrComment string + type ServerUpdateStatus tc.ServerUpdateStatusV4 + func ToServerUpdateStatuses(statuses []tc.ServerUpdateStatusV40) []ServerUpdateStatus + type SetDSCPDotConfigOpts struct + HdrComment string + type StorageDotConfigOpts struct + HdrComment string + type StrategiesYAMLOpts struct + ATSMajorVersion uint + HdrComment string + VerboseComments bool + type SysCtlDotConfOpts struct + HdrComment string + type TLSVersion string + func StringToTLSVersion(st string) TLSVersion + type TopologyCacheTier string + type TopologyName string + type TopologyPlacement struct + InTopology bool + IsFirstCacheTier bool + IsInnerCacheTier bool + IsLastCacheTier bool + IsLastTier bool + type URISigningConfigOpts struct + type URLSigConfigOpts struct + HdrComment string + type VolumeDotConfigOpts struct + HdrComment string v1.0.2-rc1 Jul 18, 2022 Incompatible versions in this module v6.1.0+incompatible Feb 4, 2022 v6.0.2+incompatible Dec 22, 2021 v6.0.1+incompatible Nov 9, 2021 v6.0.0+incompatible Oct 21, 2021 v5.1.6+incompatible Jan 19, 2022 v5.1.4+incompatible Nov 5, 2021 v5.1.3+incompatible Oct 5, 2021 v5.1.2+incompatible May 6, 2021 v5.1.1+incompatible Mar 22, 2021 v5.1.0+incompatible Feb 26, 2021 v5.0.0+incompatible Jan 15, 2021