package
0.0.33
Repository: https://github.com/hashicorp/enos.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

CheckScenario takes an operation request for check and returns a worker function to checks a scenario terraform module.
func DestroyScenario takes an operation request for generate and returns a worker function to generate a terraform module for a scenario.
EventDebugArgs takes a reference to an operation event and returns a slice of arguments that can be passed ton an hclog.Logger instance for debugging.
EventTypeString takes a reference to an operation event and returns the type of event as a string.
func ExecScenario takes an operation request for generate and returns a worker function to generate a terraform module for a scenario.
GenerateScenario takes an operation request for generate and returns a worker function to generate a terraform module for a scenario.
LaunchScenario takes an operation request for check and returns a worker function to checks a scenario terraform module.
NewEventFromResponse takes a reference to an operation response and returns a reference to a new operation event.
No description provided by the author
NewLocalOperator returns a new instance of a LocalOperator.
NewPublisher returns a new instance of the publisher.
NewReferenceFromRequest takes a reference to an operation request and returns a new reference to the associated operation.
NewResponseFromRequest takes a reference for an operation request and returns a reference to a new operation response.
NewRunner takes options and returns a new validated generator.
NewSubscriber takes an operation request and returns a new subscriber instance.
NewTextOutput returns a new TextOutput.
func OutputScenario takes an operation request for generate and returns a worker function to generate a terraform module for a scenario.
ReferenceDebugArgs takes a reference to an operation reference and returns a slice of arguments that can be passed ton an hclog.Logger instance for debugging.
RequestDebugArgs takes a reference to an operation request and returns a slice of arguments that can be passed ton an hclog.Logger instance for debugging.
RequestTypeString takes a reference to an operation request and returns the type of request as a string.
ResponseDebugArgs takes a reference to an operation response and returns a slice of arguments that can be passed ton an hclog.Logger instance for debugging.
ResponseTypeString takes a reference to an operation response and returns the type of response as a string.
RunScenario takes an operation request for generate and returns a worker function to generate a terraform module for a scenario.
UnknownWorkFunc takes an operation request and returns a work func that will fail because it is unknown.
WithLocalOperatorConfig takes the operator configuration and sets it on the local operator.
WithLocalOperatorLog is a log setter for a new LocalOperator.
WithLocalOperatorState is a state setter for a new LocalOperator.
WithLogger sets the logger.
WithPublisherLog sets the logger on the publisher.
WithRunnerTerraformConfig configures the Runner with RunnerConfig passed over the wire.
WithSubscriberLog sets the subscriber logger.

# Variables

DefaultOperatorMaxOperationEventQueue is the maximum number of events that can be queued before being persisted in the state by the event handler.
DefaultOperatorMaxOperationQueue is default maximum number of queued operations.
DefaultOperatorWorkerCount is how many workers to run.

# Structs

No description provided by the author
LocalOperator is an in-memory implementation of the server Operator.
Publisher is the operation event publisher.
Runner is a Terraform command runner.
Subscriber is an event subscriber.
TextOutput is a terraform text output collector.

# Interfaces

Operator is the server operation handler.

# Type aliases

LocalOperatorOpt is a functional option to configure a new LocalOperator.
PublisherOpt is a NewPublisher option.
RunnerOpt is a validate module option.
SubscriberOpt is a new subscriber option.
Subscribers are operation event subscribers.
Unsubscriber is a func that unsubscribes that subscriber from the publisher.
WorkFunc is a function that a worker can run.