Documentation ¶
Index ¶
- Constants
- func CommanderHealthCheck(client, agent string) error
- func ConsulSeekers(tmpDir string, from, to time.Time) []*s.Seeker
- func CountSeekers(products map[string]*Product) int
- func GetDisk() (interface{}, error)
- func GetHost() (interface{}, error)
- func GetMemory() (interface{}, error)
- func GetNetwork() (interface{}, error)
- func GetProcesses() (interface{}, error)
- func HostSeekers(os string) *s.Seeker
- func NomadSeekers(tmpDir string, from, to time.Time) []*s.Seeker
- func TFESeekers(tmpDir string, from, to time.Time) []*s.Seeker
- func VaultSeekers(tmpDir string, from, to time.Time) ([]*s.Seeker, error)
- type Config
- type HostSeeker
- type Product
Constants ¶
View Source
const ( ConsulClientCheck = "consul version" ConsulAgentCheck = "consul info" )
View Source
const ( NomadClientCheck = "nomad version" NomadAgentCheck = "nomad server members" NomadDebugSeconds = 30 )
View Source
const ( Consul = "consul" Host = "host" Nomad = "nomad" TFE = "terraform-ent" Vault = "vault" )
View Source
const ( DefaultDebugSeconds = 10 DefaultIntervalSeconds = 5 )
View Source
const ( VaultClientCheck = "vault version" VaultAgentCheck = "vault status" )
Variables ¶
This section is empty.
Functions ¶
func CommanderHealthCheck ¶
CommanderHealthCheck employs the the CLI to check if the client and then the agent are available.
func ConsulSeekers ¶
ConsulSeekers seek information about Consul.
func CountSeekers ¶
func HostSeekers ¶
func NomadSeekers ¶
NomadSeekers seek information about Nomad.
func TFESeekers ¶
TFESeekers seek information about Terraform Enterprise/Cloud.
Types ¶
type HostSeeker ¶
type HostSeeker struct {
OS string `json:"os"`
}
func (*HostSeeker) Run ¶
func (hs *HostSeeker) Run() (interface{}, error)
type Product ¶
func NewConsul ¶
NewConsul takes a product config and creates a Product with all of Consul's default seekers
func NewHost ¶
NewHost takes a product config and creates a Product containing all of the host's seekers.
func NewNomad ¶
NewNomad takes a product config and creates a Product with all of Nomad's default seekers
Click to show internal directories.
Click to hide internal directories.