Documentation ¶
Index ¶
- Constants
- func CheckKeyPair(keyPem []byte, certPem []byte, ds string) error
- func GetAllConfigs(toData *t3cutil.ConfigData, cfg config.Cfg) ([]t3cutil.ATSConfigFile, error)
- func GetConfigFile(toData *t3cutil.ConfigData, fileInfo atscfg.CfgMeta, hdrCommentTxt string, ...) (string, string, bool, string, []string, error)
- func GetSSLCertsAndKeyFiles(toData *t3cutil.ConfigData) ([]t3cutil.ATSConfigFile, error)
- func Make12MFacts(toData *t3cutil.ConfigData, fileName string, hdrCommentTxt string, ...) (atscfg.Cfg, error)
- func MakeATSDotRules(toData *t3cutil.ConfigData, fileName string, hdrCommentTxt string, ...) (atscfg.Cfg, error)
- func MakeAstatsDotConfig(toData *t3cutil.ConfigData, fileName string, hdrCommentTxt string, ...) (atscfg.Cfg, error)
- func MakeBGFetchDotConfig(toData *t3cutil.ConfigData, fileName string, hdrCommentTxt string, ...) (atscfg.Cfg, error)
- func MakeCacheDotConfig(toData *t3cutil.ConfigData, fileName string, hdrCommentTxt string, ...) (atscfg.Cfg, error)
- func MakeChkconfig(toData *t3cutil.ConfigData, fileName string, hdrCommentTxt string, ...) (atscfg.Cfg, error)
- func MakeConfigFilesList(toData *t3cutil.ConfigData, dir string, atsMajorVersion uint) ([]atscfg.CfgMeta, []string, error)
- func MakeDropQStringDotConfig(toData *t3cutil.ConfigData, fileName string, hdrCommentTxt string, ...) (atscfg.Cfg, error)
- func MakeHeaderRewrite(toData *t3cutil.ConfigData, fileName string, hdrCommentTxt string, ...) (atscfg.Cfg, error)
- func MakeHostingDotConfig(toData *t3cutil.ConfigData, fileName string, hdrCommentTxt string, ...) (atscfg.Cfg, error)
- func MakeIPAllowDotConfig(toData *t3cutil.ConfigData, fileName string, hdrCommentTxt string, ...) (atscfg.Cfg, error)
- func MakeIPAllowDotYAML(toData *t3cutil.ConfigData, fileName string, hdrCommentTxt string, ...) (atscfg.Cfg, error)
- func MakeLoggingDotConfig(toData *t3cutil.ConfigData, fileName string, hdrCommentTxt string, ...) (atscfg.Cfg, error)
- func MakeLoggingDotYAML(toData *t3cutil.ConfigData, fileName string, hdrCommentTxt string, ...) (atscfg.Cfg, error)
- func MakeLogsXMLDotConfig(toData *t3cutil.ConfigData, fileName string, hdrCommentTxt string, ...) (atscfg.Cfg, error)
- func MakePackages(toData *t3cutil.ConfigData, fileName string, hdrCommentTxt string, ...) (atscfg.Cfg, error)
- func MakeParentDotConfig(toData *t3cutil.ConfigData, fileName string, hdrCommentTxt string, ...) (atscfg.Cfg, error)
- func MakePluginDotConfig(toData *t3cutil.ConfigData, fileName string, hdrCommentTxt string, ...) (atscfg.Cfg, error)
- func MakeRecordsDotConfig(toData *t3cutil.ConfigData, fileName string, hdrCommentTxt string, ...) (atscfg.Cfg, error)
- func MakeRegexRemap(toData *t3cutil.ConfigData, fileName string, hdrCommentTxt string, ...) (atscfg.Cfg, error)
- func MakeRegexRevalidateDotConfig(toData *t3cutil.ConfigData, fileName string, hdrCommentTxt string, ...) (atscfg.Cfg, error)
- func MakeRemapDotConfig(toData *t3cutil.ConfigData, fileName string, hdrCommentTxt string, ...) (atscfg.Cfg, error)
- func MakeSNIDotYAML(toData *t3cutil.ConfigData, fileName string, hdrCommentTxt string, ...) (atscfg.Cfg, error)
- func MakeSSLMultiCertDotConfig(toData *t3cutil.ConfigData, fileName string, hdrCommentTxt string, ...) (atscfg.Cfg, error)
- func MakeSSLServerNameYAML(toData *t3cutil.ConfigData, fileName string, hdrCommentTxt string, ...) (atscfg.Cfg, error)
- func MakeSetDSCP(toData *t3cutil.ConfigData, fileName string, hdrCommentTxt string, ...) (atscfg.Cfg, error)
- func MakeStorageDotConfig(toData *t3cutil.ConfigData, fileName string, hdrCommentTxt string, ...) (atscfg.Cfg, error)
- func MakeStrategiesDotYAML(toData *t3cutil.ConfigData, fileName string, hdrCommentTxt string, ...) (atscfg.Cfg, error)
- func MakeSysCtlDotConf(toData *t3cutil.ConfigData, fileName string, hdrCommentTxt string, ...) (atscfg.Cfg, error)
- func MakeURISigningConfig(toData *t3cutil.ConfigData, fileName string, hdrCommentTxt string, ...) (atscfg.Cfg, error)
- func MakeURLSigConfig(toData *t3cutil.ConfigData, fileName string, hdrCommentTxt string, ...) (atscfg.Cfg, error)
- func MakeUnknownConfig(toData *t3cutil.ConfigData, fileName string, hdrCommentTxt string, ...) (atscfg.Cfg, error)
- func MakeVolumeDotConfig(toData *t3cutil.ConfigData, fileName string, hdrCommentTxt string, ...) (atscfg.Cfg, error)
- func WriteConfigs(configs []t3cutil.ATSConfigFile, output io.Writer) error
- type ConfigFileFunc
- type ConfigFileLiteralFunc
- type ConfigFilePrefixSuffixFunc
Constants ¶
const HdrConfigFilePath = "Path"
const HdrLineComment = "Line-Comment"
Variables ¶
This section is empty.
Functions ¶
func GetAllConfigs ¶
func GetAllConfigs( toData *t3cutil.ConfigData, cfg config.Cfg, ) ([]t3cutil.ATSConfigFile, error)
GetAllConfigs gets all config files for cfg.CacheHostName.
func GetConfigFile ¶
func GetConfigFile(toData *t3cutil.ConfigData, fileInfo atscfg.CfgMeta, hdrCommentTxt string, thiscfg config.Cfg) (string, string, bool, string, []string, error)
GetConfigFile returns the text of the generated config file, the MIME Content Type of the config file, and any error.
func GetSSLCertsAndKeyFiles ¶
func GetSSLCertsAndKeyFiles(toData *t3cutil.ConfigData) ([]t3cutil.ATSConfigFile, error)
func Make12MFacts ¶
func MakeATSDotRules ¶
func MakeAstatsDotConfig ¶
func MakeBGFetchDotConfig ¶
func MakeCacheDotConfig ¶
func MakeChkconfig ¶
func MakeConfigFilesList ¶
func MakeConfigFilesList(toData *t3cutil.ConfigData, dir string, atsMajorVersion uint) ([]atscfg.CfgMeta, []string, error)
This file has wrappers that turn lib/go-atscfg Make funcs into ConfigFileFunc types.
We don't want to make lib/go-atscfg functions take a TOData, because then users wanting to generate a single file would have to fetch all kinds of data that file doesn't need, or else pass objects they know it doesn't currently need as nil and risk it crashing if that func is changed to use it in the future.
But it's useful to map filenames to functions for dispatch. Hence these wrappers.
The atsMajorVersion may be 0 to default to the Server Package Parameter.
MakeConfigFilesList returns the list of config files, any warnings, and any error.
func MakeHeaderRewrite ¶
func MakeHostingDotConfig ¶
func MakeIPAllowDotConfig ¶
func MakeIPAllowDotYAML ¶
func MakeLoggingDotConfig ¶
func MakeLoggingDotYAML ¶
func MakeLogsXMLDotConfig ¶
func MakePackages ¶
func MakeParentDotConfig ¶
func MakePluginDotConfig ¶
func MakeRecordsDotConfig ¶
func MakeRegexRemap ¶
func MakeRemapDotConfig ¶
func MakeSNIDotYAML ¶
func MakeSSLServerNameYAML ¶
func MakeSetDSCP ¶
func MakeStorageDotConfig ¶
func MakeStrategiesDotYAML ¶
func MakeSysCtlDotConf ¶
func MakeURISigningConfig ¶
func MakeURLSigConfig ¶
func MakeUnknownConfig ¶
func MakeVolumeDotConfig ¶
func WriteConfigs ¶
func WriteConfigs(configs []t3cutil.ATSConfigFile, output io.Writer) error
WriteConfigs writes the given configs as a RFC2046§5.1 MIME multipart/mixed message.
Types ¶
type ConfigFileFunc ¶
type ConfigFileLiteralFunc ¶
type ConfigFileLiteralFunc struct { Name string Func ConfigFileFunc }
type ConfigFilePrefixSuffixFunc ¶
type ConfigFilePrefixSuffixFunc struct { Prefix string Suffix string Func ConfigFileFunc }