Documentation ¶
Index ¶
- Constants
- func CommanderHealthCheck(client, agent string) error
- func ConsulSeekers(cfg Config, api *client.APIClient) ([]*s.Seeker, error)
- func CountSeekers(products map[string]*Product) int
- func HostSeekers(os string) []*seeker.Seeker
- func NomadSeekers(cfg Config, api *client.APIClient) ([]*s.Seeker, error)
- func TFESeekers(cfg Config, api *client.APIClient) ([]*s.Seeker, error)
- func VaultSeekers(cfg Config, api *client.APIClient) ([]*s.Seeker, error)
- type Config
- type Product
- func NewConsul(logger hclog.Logger, cfg Config) (*Product, error)
- func NewHost(logger hclog.Logger, cfg Config) *Product
- func NewNomad(logger hclog.Logger, cfg Config) (*Product, error)
- func NewTFE(logger hclog.Logger, cfg Config) (*Product, error)
- func NewVault(logger hclog.Logger, cfg Config) (*Product, error)
Constants ¶
const ( ConsulClientCheck = "consul version" ConsulAgentCheck = "consul info" )
const ( NomadClientCheck = "nomad version" NomadAgentCheck = "nomad server members" NomadDebugDuration = 2 * time.Minute NomadDebugInterval = 30 * time.Second )
const ( Consul = "consul" Host = "host" Nomad = "nomad" TFE = "terraform-ent" Vault = "vault" )
const ( DefaultDuration = 10 * time.Second DefaultInterval = 5 * time.Second )
const ( VaultClientCheck = "vault version" VaultAgentCheck = "vault status" )
Variables ¶
This section is empty.
Functions ¶
func CommanderHealthCheck ¶
CommanderHealthCheck employs the CLI to check if the client and then the agent are available.
func ConsulSeekers ¶
ConsulSeekers seek information about Consul.
func CountSeekers ¶
func HostSeekers ¶
HostSeekers checks the operating system and passes it into the seekers.
func NomadSeekers ¶
NomadSeekers seek information about Nomad.
func TFESeekers ¶
TFESeekers seek information about Terraform Enterprise/Cloud.
Types ¶
type Product ¶
type Product struct { Name string Seekers []*seeker.Seeker Excludes []string Selects []string Config Config // contains filtered or unexported fields }
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
func NewVault ¶
NewVault takes a product config and creates a Product containing all of Vault's seekers.