config

package
v5.1.6+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 10 Imported by: 0

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.

func Usage

func Usage()

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 GetCfg

func GetCfg() (Cfg, error)

func (Cfg) DebugLog

func (cfg Cfg) DebugLog() log.LogLocation

func (Cfg) ErrorLog

func (cfg Cfg) ErrorLog() log.LogLocation

func (Cfg) EventLog

func (cfg Cfg) EventLog() log.LogLocation

func (Cfg) InfoLog

func (cfg Cfg) InfoLog() log.LogLocation

func (Cfg) WarningLog

func (cfg Cfg) WarningLog() log.LogLocation

type Mode

type Mode int
const (
	BadAss     Mode = 0
	Report     Mode = 1
	Revalidate Mode = 2
	SyncDS     Mode = 3
)

func (Mode) String

func (m Mode) String() string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL