Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DeployCall ¶
type DeployCall struct {
ResourceType string
Input *provider.ResourceDeployServiceInput
}
DeployCall captures the arguments of a single Deploy invocation.
type DestroyCall ¶
type DestroyCall struct {
ResourceType string
Input *provider.ResourceDestroyInput
}
DestroyCall captures the arguments of a single Destroy invocation.
type Mock ¶
type Mock = mockResourceService
Mock is the concrete mock type, exposed so tests can read the recorded calls.
type Option ¶
type Option func(*mockResourceService)
Option configures the mock resource service.
func WithDeployError ¶
WithDeployError sets the error returned by Deploy.
func WithDeployOutput ¶
func WithDeployOutput(output *provider.ResourceDeployOutput) Option
WithDeployOutput sets the output returned by Deploy.
func WithDestroyError ¶
WithDestroyError sets the error returned by Destroy.
func WithLookupError ¶
WithLookupError sets the error returned by LookupResourceInState.
func WithLookupResourceInState ¶
func WithLookupResourceInState(resourceState *state.ResourceState) Option
WithLookupResourceInState sets the resource state returned by LookupResourceInState.
Click to show internal directories.
Click to hide internal directories.