Documentation ¶
Index ¶
- Constants
- type CommonConfig
- type ExportBase
- type FilterConfig
- type RetrieveConfig
- type RunEnv
- func (e *RunEnv) Check() error
- func (e *RunEnv) ErrorEnd(msg string)
- func (e *RunEnv) NormalEnd(msg string)
- func (e *RunEnv) OpenLog(fileName string) (*os.File, error)
- func (e *RunEnv) OpenServerLog(server, fileName string) (*os.File, error)
- func (e *RunEnv) Result() string
- func (e *RunEnv) WarningEnd(msg string)
- type RunStatus
Constants ¶
View Source
const ( INIT = RunStatus("INIT") SUCCESS = RunStatus("SUCCESS") WARN = RunStatus("WARN") ERROR = RunStatus("ERROR") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonConfig ¶
type CommonConfig struct { Url string `toml:"url"` User string `toml:"user"` Password string `toml:"password"` Level int `toml:"level"` Timeout int `toml:"timeout"` Server string `toml:"server"` }
func (*CommonConfig) Check ¶
func (c *CommonConfig) Check() error
type ExportBase ¶
func (*ExportBase) Check ¶
func (b *ExportBase) Check() error
type FilterConfig ¶
type RetrieveConfig ¶
type RunEnv ¶
type RunEnv struct { Level int DryRun bool Send bool Datastore string LocalExec bool Timeout int LogLevel int CurrTime time.Time AgentHome string Retrieve *RetrieveConfig Filter *FilterConfig Status RunStatus Messages string }
func (*RunEnv) OpenServerLog ¶
func (*RunEnv) WarningEnd ¶
Click to show internal directories.
Click to hide internal directories.