Documentation ¶
Index ¶
- Constants
- func CommandHealthCheck(client, agent string) error
- func CommandHealthCheckWithContext(ctx context.Context, client, agent string) error
- func CountRunners(products map[Name]*Product) int
- type Config
- type Name
- type Product
- func NewConsul(logger hclog.Logger, cfg Config) (*Product, error)
- func NewConsulWithContext(ctx context.Context, logger hclog.Logger, cfg Config) (*Product, error)
- func NewHost(logger hclog.Logger, cfg Config, hcl2 *hcl.Host) (*Product, error)
- func NewHostWithContext(ctx context.Context, logger hclog.Logger, cfg Config, hcl2 *hcl.Host) (*Product, error)
- func NewNomad(logger hclog.Logger, cfg Config) (*Product, error)
- func NewNomadWithContext(ctx context.Context, logger hclog.Logger, cfg Config) (*Product, error)
- func NewTFE(logger hclog.Logger, cfg Config) (*Product, error)
- func NewTFEWithContext(ctx context.Context, logger hclog.Logger, cfg Config) (*Product, error)
- func NewVault(logger hclog.Logger, cfg Config) (*Product, error)
- func NewVaultWithContext(ctx context.Context, logger hclog.Logger, cfg Config) (*Product, error)
Constants ¶
const ( ConsulClientCheck = "consul version" ConsulAgentCheck = "consul info" )
const ( TimeoutTenSeconds = runner.Timeout(10 * time.Second) TimeoutThirtySeconds = runner.Timeout(30 * time.Second) )
const ( NomadClientCheck = "nomad version" NomadAgentCheck = "nomad server members" NomadDebugDuration = 2 * time.Minute NomadDebugInterval = 30 * time.Second )
const ( DefaultDuration = 10 * time.Second DefaultInterval = 5 * time.Second )
const ( VaultClientCheck = "vault version" VaultAgentCheck = "vault status" )
Variables ¶
This section is empty.
Functions ¶
func CommandHealthCheck ¶ added in v0.5.0
CommandHealthCheck employs the CLI to check if the client and then the agent are available.
func CommandHealthCheckWithContext ¶ added in v0.5.0
CommandHealthCheckWithContext employs the CLI to check if the client and then the agent are available.
func CountRunners ¶ added in v0.4.0
CountRunners takes a map of product references and returns a count of all the runners.
Types ¶
type Product ¶
type Product struct { Name Name Runners []runner.Runner Excludes []string Selects []string Config Config // contains filtered or unexported fields }
func NewConsul ¶
NewConsul takes a logger and product config, and it creates a Product with all of Consul's default runners.
func NewConsulWithContext ¶ added in v0.5.0
NewConsulWithContext takes a context, a logger, and product config, and it creates a Product with all of Consul's default runners.
func NewHost ¶
NewHost takes a logger, config, and HCL, and it creates a Product with all the host's default runners.
func NewHostWithContext ¶ added in v0.5.0
func NewHostWithContext(ctx context.Context, logger hclog.Logger, cfg Config, hcl2 *hcl.Host) (*Product, error)
NewHostWithContext takes a context, a logger, config, and HCL, and it creates a Product with all the host's default runners.
func NewNomad ¶
NewNomad takes a logger and product config, and it creates a Product with all of Nomad's default runners.
func NewNomadWithContext ¶ added in v0.5.0
NewNomadWithContext takes a context, a logger, and product config, and it creates a Product with all of Nomad's default runners.
func NewTFE ¶
NewTFE takes a logger and product config, and it creates a Product with all of TFE's default runners.
func NewTFEWithContext ¶ added in v0.5.0
NewTFEWithContext takes a context, a logger, and product config, and it creates a Product with all of TFE's default runners.
func NewVault ¶
NewVault takes a product config and creates a Product containing all of Vault's runners.
func NewVaultWithContext ¶ added in v0.5.0
NewVaultWithContext takes a context, a logger, and a config and creates a Product containing all of Vault's runners.