Documentation
¶
Index ¶
Constants ¶
View Source
const ( StatusDir = "/var/lib/trafficcontrol-cache-config/status" Chkconfig = "/sbin/chkconfig" Service = "/sbin/service" SystemCtl = "/bin/systemctl" TmpBase = "/tmp/trafficcontrol-cache-config" TrafficCtl = "/bin/traffic_ctl" TrafficServerOwner = "ats" )
View Source
const ( UseGitAuto = "auto" UseGitYes = "yes" UseGitNo = "no" UseGitInvalid = "" )
View Source
const ( WaitForParentsTrue = "true" WaitForParentsFalse = "false" WaitForParentsReval = "reval" WaitForParentsInvalid = "" )
View Source
const AppName = "t3c-apply"
View Source
const DefaultTSConfigDir = "/opt/trafficserver/etc/trafficserver"
View Source
const TimeAndDateLayout = "Jan 2, 2006 15:04 MST"
View Source
const WaitForParentsDefault = WaitForParentsReval
Variables ¶
View Source
var TSHome string = "/opt/trafficserver"
Functions ¶
func GetATSVersionStr ¶
func GetTSPackageHome ¶
func GetTSPackageHome() string
derives the ATS Installation directory from the rpm config file list.
Types ¶
type Cfg ¶
type Cfg struct {
LogLocationDebug string
LogLocationErr string
LogLocationInfo string
LogLocationWarn string
CacheHostName string
SvcManagement SvcManagement
Retries int
ReverseProxyDisable bool
RpmDBOk bool
SkipOSCheck bool
UseStrategies t3cutil.UseStrategiesFlag
TOInsecure bool
TOTimeoutMS time.Duration
TOUser string
TOPass string
TOURL string
DNSLocalBind bool
WaitForParents bool
YumOptions string
// UseGit is whether to create and maintain a git repo of config changes.
// Note this only applies to the ATS config directory inferred or set via the flag.
// It does not do anything for config files generated outside that location.
UseGit UseGitFlag
NoCache bool
SyncDSUpdatesIPAllow bool
OmitViaStringRelease bool
NoOutgoingIP bool
DisableParentConfigComments bool
DefaultClientEnableH2 *bool
DefaultClientTLSVersions *string
// MaxMindLocation is a URL string for a download location for a maxmind database
// for use with either HeaderRewrite or Maxmind_ACL plugins
MaxMindLocation string
TsHome string
TsConfigDir string
ServiceAction t3cutil.ApplyServiceActionFlag
NoConfirmServiceAction bool
ReportOnly bool
GoDirect string
Files t3cutil.ApplyFilesFlag
InstallPackages bool
IgnoreUpdateFlag bool
NoUnsetUpdateFlag bool
UpdateIPAllow bool
Version string
GitRevision string
LocalATSVersion string
CacheType string
}
func (Cfg) AppVersion ¶
func (Cfg) WarningLog ¶
func (cfg Cfg) WarningLog() log.LogLocation
type SvcManagement ¶
type SvcManagement int
const ( Unknown SvcManagement = 0 SystemD SvcManagement = 1 SystemV SvcManagement = 2 // legacy System V Init. )
func (SvcManagement) String ¶
func (s SvcManagement) String() string
type UseGitFlag ¶
type UseGitFlag string
func StrToUseGitFlag ¶
func StrToUseGitFlag(str string) UseGitFlag
type WaitForParentsFlag ¶
type WaitForParentsFlag string
func StrToWaitForParentsFlag ¶
func StrToWaitForParentsFlag(str string) WaitForParentsFlag
Click to show internal directories.
Click to hide internal directories.