Documentation ¶
Index ¶
Constants ¶
View Source
const ( StatusDir = "/opt/ort/status" AtsTcConfig = "/opt/ort/atstccfg" Chkconfig = "/sbin/chkconfig" Service = "/sbin/service" SystemCtl = "/bin/systemctl" TmpBase = "/tmp/ort" TrafficCtl = "/bin/traffic_ctl" TrafficServerOwner = "ats" )
Variables ¶
View Source
var TSConfigDir string = "/opt/trafficserver/etc/trafficserver"
View Source
var TSHome string = "/opt/trafficserver"
Functions ¶
func GetTSPackageHome ¶
func GetTSPackageHome() string
derives the ATS Installation directory from the rpm config file list.
Types ¶
type Cfg ¶
type Cfg struct { Dispersion time.Duration LogLocationDebug string LogLocationErr string LogLocationInfo string LogLocationWarn string LoginDispersion time.Duration CacheHostName string SvcManagement SvcManagement Retries int RevalWaitTime time.Duration ReverseProxyDisable bool RunMode Mode SkipOSCheck bool TOInsecure bool TOTimeoutMS time.Duration TOUser string TOPass string TOURL string WaitForParents bool YumOptions string }
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
Click to show internal directories.
Click to hide internal directories.