Documentation
¶
Index ¶
Constants ¶
View Source
const ( CheckIDVar = "VULCAN_CHECK_ID" ChecktypeNameVar = "VULCAN_CHECKTYPE_NAME" ChecktypeVersionVar = "VULCAN_CHECKTYPE_VERSION" CheckTargetVar = "VULCAN_CHECK_TARGET" CheckAssetTypeVar = "VULCAN_CHECK_ASSET_TYPE" CheckOptionsVar = "VULCAN_CHECK_OPTIONS" CheckLogLevelVar = "VULCAN_CHECK_LOG_LVL" AgentAddressVar = "VULCAN_AGENT_ADDRESS" )
Constants defining environment variables that a check expects.
Variables ¶
View Source
var ErrNonZeroExitCode = errors.New("container finished unexpectedly")
ErrNonZeroExitCode is returned by the docker backend when a container finished with an exit code different from 0.
Functions ¶
func ParseImage ¶
ParseImage validates and enrich the image with domain (docker.io if domain missing), tag (latest if missing),.
Types ¶
type APIConfig ¶
type APIConfig struct { Port string `json:"port"` // Port where the api for for the check should listen on IName string `json:"iname" toml:"iname"` // Interface name that defines the ip a check should use to reach the agent api. Host string `json:"host" toml:"host"` // Hostname a check should use to reach the agent. Overrides the IName config param. }
APIConfig defines address where a component of the agent will be listening to the http requests sent by the checks running.
type CheckVars ¶
CheckVars contains the static checks vars that some checks needs to be injected in their docker to run.
Click to show internal directories.
Click to hide internal directories.