tffakes

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeDeploymentManagerInterface added in v0.11.0

type FakeDeploymentManagerInterface struct {
	CreateAndSaveDeploymentStub func(string, *workspace.TerraformWorkspace) (storage.TerraformDeployment, error)

	DeleteTerraformDeploymentStub func(string) error

	GetBindingDeploymentsStub func(string) ([]storage.TerraformDeployment, error)

	GetTerraformDeploymentStub func(string) (storage.TerraformDeployment, error)

	MarkOperationFinishedStub func(*storage.TerraformDeployment, error) error

	MarkOperationStartedStub func(*storage.TerraformDeployment, string) error

	OperationStatusStub func(string) (bool, string, error)

	UpdateWorkspaceHCLStub func(string, tf.TfServiceDefinitionV1Action, map[string]any) error
	// contains filtered or unexported fields
}

func (*FakeDeploymentManagerInterface) CreateAndSaveDeployment added in v0.11.0

func (*FakeDeploymentManagerInterface) CreateAndSaveDeploymentArgsForCall added in v0.11.0

func (fake *FakeDeploymentManagerInterface) CreateAndSaveDeploymentArgsForCall(i int) (string, *workspace.TerraformWorkspace)

func (*FakeDeploymentManagerInterface) CreateAndSaveDeploymentCallCount added in v0.11.0

func (fake *FakeDeploymentManagerInterface) CreateAndSaveDeploymentCallCount() int

func (*FakeDeploymentManagerInterface) CreateAndSaveDeploymentCalls added in v0.11.0

func (fake *FakeDeploymentManagerInterface) CreateAndSaveDeploymentCalls(stub func(string, *workspace.TerraformWorkspace) (storage.TerraformDeployment, error))

func (*FakeDeploymentManagerInterface) CreateAndSaveDeploymentReturns added in v0.11.0

func (fake *FakeDeploymentManagerInterface) CreateAndSaveDeploymentReturns(result1 storage.TerraformDeployment, result2 error)

func (*FakeDeploymentManagerInterface) CreateAndSaveDeploymentReturnsOnCall added in v0.11.0

func (fake *FakeDeploymentManagerInterface) CreateAndSaveDeploymentReturnsOnCall(i int, result1 storage.TerraformDeployment, result2 error)

func (*FakeDeploymentManagerInterface) DeleteTerraformDeployment added in v0.19.13

func (fake *FakeDeploymentManagerInterface) DeleteTerraformDeployment(arg1 string) error

func (*FakeDeploymentManagerInterface) DeleteTerraformDeploymentArgsForCall added in v0.19.13

func (fake *FakeDeploymentManagerInterface) DeleteTerraformDeploymentArgsForCall(i int) string

func (*FakeDeploymentManagerInterface) DeleteTerraformDeploymentCallCount added in v0.19.13

func (fake *FakeDeploymentManagerInterface) DeleteTerraformDeploymentCallCount() int

func (*FakeDeploymentManagerInterface) DeleteTerraformDeploymentCalls added in v0.19.13

func (fake *FakeDeploymentManagerInterface) DeleteTerraformDeploymentCalls(stub func(string) error)

func (*FakeDeploymentManagerInterface) DeleteTerraformDeploymentReturns added in v0.19.13

func (fake *FakeDeploymentManagerInterface) DeleteTerraformDeploymentReturns(result1 error)

func (*FakeDeploymentManagerInterface) DeleteTerraformDeploymentReturnsOnCall added in v0.19.13

func (fake *FakeDeploymentManagerInterface) DeleteTerraformDeploymentReturnsOnCall(i int, result1 error)

func (*FakeDeploymentManagerInterface) GetBindingDeployments added in v0.11.0

func (fake *FakeDeploymentManagerInterface) GetBindingDeployments(arg1 string) ([]storage.TerraformDeployment, error)

func (*FakeDeploymentManagerInterface) GetBindingDeploymentsArgsForCall added in v0.11.0

func (fake *FakeDeploymentManagerInterface) GetBindingDeploymentsArgsForCall(i int) string

func (*FakeDeploymentManagerInterface) GetBindingDeploymentsCallCount added in v0.11.0

func (fake *FakeDeploymentManagerInterface) GetBindingDeploymentsCallCount() int

func (*FakeDeploymentManagerInterface) GetBindingDeploymentsCalls added in v0.11.0

func (fake *FakeDeploymentManagerInterface) GetBindingDeploymentsCalls(stub func(string) ([]storage.TerraformDeployment, error))

func (*FakeDeploymentManagerInterface) GetBindingDeploymentsReturns added in v0.11.0

func (fake *FakeDeploymentManagerInterface) GetBindingDeploymentsReturns(result1 []storage.TerraformDeployment, result2 error)

func (*FakeDeploymentManagerInterface) GetBindingDeploymentsReturnsOnCall added in v0.11.0

func (fake *FakeDeploymentManagerInterface) GetBindingDeploymentsReturnsOnCall(i int, result1 []storage.TerraformDeployment, result2 error)

func (*FakeDeploymentManagerInterface) GetTerraformDeployment added in v0.11.0

func (fake *FakeDeploymentManagerInterface) GetTerraformDeployment(arg1 string) (storage.TerraformDeployment, error)

func (*FakeDeploymentManagerInterface) GetTerraformDeploymentArgsForCall added in v0.11.0

func (fake *FakeDeploymentManagerInterface) GetTerraformDeploymentArgsForCall(i int) string

func (*FakeDeploymentManagerInterface) GetTerraformDeploymentCallCount added in v0.11.0

func (fake *FakeDeploymentManagerInterface) GetTerraformDeploymentCallCount() int

func (*FakeDeploymentManagerInterface) GetTerraformDeploymentCalls added in v0.11.0

func (fake *FakeDeploymentManagerInterface) GetTerraformDeploymentCalls(stub func(string) (storage.TerraformDeployment, error))

func (*FakeDeploymentManagerInterface) GetTerraformDeploymentReturns added in v0.11.0

func (fake *FakeDeploymentManagerInterface) GetTerraformDeploymentReturns(result1 storage.TerraformDeployment, result2 error)

func (*FakeDeploymentManagerInterface) GetTerraformDeploymentReturnsOnCall added in v0.11.0

func (fake *FakeDeploymentManagerInterface) GetTerraformDeploymentReturnsOnCall(i int, result1 storage.TerraformDeployment, result2 error)

func (*FakeDeploymentManagerInterface) Invocations added in v0.11.0

func (fake *FakeDeploymentManagerInterface) Invocations() map[string][][]interface{}

func (*FakeDeploymentManagerInterface) MarkOperationFinished added in v0.11.0

func (fake *FakeDeploymentManagerInterface) MarkOperationFinished(arg1 *storage.TerraformDeployment, arg2 error) error

func (*FakeDeploymentManagerInterface) MarkOperationFinishedArgsForCall added in v0.11.0

func (fake *FakeDeploymentManagerInterface) MarkOperationFinishedArgsForCall(i int) (*storage.TerraformDeployment, error)

func (*FakeDeploymentManagerInterface) MarkOperationFinishedCallCount added in v0.11.0

func (fake *FakeDeploymentManagerInterface) MarkOperationFinishedCallCount() int

func (*FakeDeploymentManagerInterface) MarkOperationFinishedCalls added in v0.11.0

func (fake *FakeDeploymentManagerInterface) MarkOperationFinishedCalls(stub func(*storage.TerraformDeployment, error) error)

func (*FakeDeploymentManagerInterface) MarkOperationFinishedReturns added in v0.11.0

func (fake *FakeDeploymentManagerInterface) MarkOperationFinishedReturns(result1 error)

func (*FakeDeploymentManagerInterface) MarkOperationFinishedReturnsOnCall added in v0.11.0

func (fake *FakeDeploymentManagerInterface) MarkOperationFinishedReturnsOnCall(i int, result1 error)

func (*FakeDeploymentManagerInterface) MarkOperationStarted added in v0.11.0

func (fake *FakeDeploymentManagerInterface) MarkOperationStarted(arg1 *storage.TerraformDeployment, arg2 string) error

func (*FakeDeploymentManagerInterface) MarkOperationStartedArgsForCall added in v0.11.0

func (fake *FakeDeploymentManagerInterface) MarkOperationStartedArgsForCall(i int) (*storage.TerraformDeployment, string)

func (*FakeDeploymentManagerInterface) MarkOperationStartedCallCount added in v0.11.0

func (fake *FakeDeploymentManagerInterface) MarkOperationStartedCallCount() int

func (*FakeDeploymentManagerInterface) MarkOperationStartedCalls added in v0.11.0

func (fake *FakeDeploymentManagerInterface) MarkOperationStartedCalls(stub func(*storage.TerraformDeployment, string) error)

func (*FakeDeploymentManagerInterface) MarkOperationStartedReturns added in v0.11.0

func (fake *FakeDeploymentManagerInterface) MarkOperationStartedReturns(result1 error)

func (*FakeDeploymentManagerInterface) MarkOperationStartedReturnsOnCall added in v0.11.0

func (fake *FakeDeploymentManagerInterface) MarkOperationStartedReturnsOnCall(i int, result1 error)

func (*FakeDeploymentManagerInterface) OperationStatus added in v0.11.0

func (fake *FakeDeploymentManagerInterface) OperationStatus(arg1 string) (bool, string, error)

func (*FakeDeploymentManagerInterface) OperationStatusArgsForCall added in v0.11.0

func (fake *FakeDeploymentManagerInterface) OperationStatusArgsForCall(i int) string

func (*FakeDeploymentManagerInterface) OperationStatusCallCount added in v0.11.0

func (fake *FakeDeploymentManagerInterface) OperationStatusCallCount() int

func (*FakeDeploymentManagerInterface) OperationStatusCalls added in v0.11.0

func (fake *FakeDeploymentManagerInterface) OperationStatusCalls(stub func(string) (bool, string, error))

func (*FakeDeploymentManagerInterface) OperationStatusReturns added in v0.11.0

func (fake *FakeDeploymentManagerInterface) OperationStatusReturns(result1 bool, result2 string, result3 error)

func (*FakeDeploymentManagerInterface) OperationStatusReturnsOnCall added in v0.11.0

func (fake *FakeDeploymentManagerInterface) OperationStatusReturnsOnCall(i int, result1 bool, result2 string, result3 error)

func (*FakeDeploymentManagerInterface) UpdateWorkspaceHCL added in v0.11.0

func (fake *FakeDeploymentManagerInterface) UpdateWorkspaceHCL(arg1 string, arg2 tf.TfServiceDefinitionV1Action, arg3 map[string]any) error

func (*FakeDeploymentManagerInterface) UpdateWorkspaceHCLArgsForCall added in v0.11.0

func (fake *FakeDeploymentManagerInterface) UpdateWorkspaceHCLArgsForCall(i int) (string, tf.TfServiceDefinitionV1Action, map[string]any)

func (*FakeDeploymentManagerInterface) UpdateWorkspaceHCLCallCount added in v0.11.0

func (fake *FakeDeploymentManagerInterface) UpdateWorkspaceHCLCallCount() int

func (*FakeDeploymentManagerInterface) UpdateWorkspaceHCLCalls added in v0.11.0

func (fake *FakeDeploymentManagerInterface) UpdateWorkspaceHCLCalls(stub func(string, tf.TfServiceDefinitionV1Action, map[string]any) error)

func (*FakeDeploymentManagerInterface) UpdateWorkspaceHCLReturns added in v0.11.0

func (fake *FakeDeploymentManagerInterface) UpdateWorkspaceHCLReturns(result1 error)

func (*FakeDeploymentManagerInterface) UpdateWorkspaceHCLReturnsOnCall added in v0.11.0

func (fake *FakeDeploymentManagerInterface) UpdateWorkspaceHCLReturnsOnCall(i int, result1 error)

type FakeTerraformInvoker added in v0.10.0

type FakeTerraformInvoker struct {
	ApplyStub func(context.Context, workspace.Workspace) error

	DestroyStub func(context.Context, workspace.Workspace) error

	ImportStub func(context.Context, workspace.Workspace, map[string]string) error

	PlanStub func(context.Context, workspace.Workspace) (executor.ExecutionOutput, error)

	ShowStub func(context.Context, workspace.Workspace) (string, error)
	// contains filtered or unexported fields
}

func (*FakeTerraformInvoker) Apply added in v0.10.0

func (fake *FakeTerraformInvoker) Apply(arg1 context.Context, arg2 workspace.Workspace) error

func (*FakeTerraformInvoker) ApplyArgsForCall added in v0.10.0

func (fake *FakeTerraformInvoker) ApplyArgsForCall(i int) (context.Context, workspace.Workspace)

func (*FakeTerraformInvoker) ApplyCallCount added in v0.10.0

func (fake *FakeTerraformInvoker) ApplyCallCount() int

func (*FakeTerraformInvoker) ApplyCalls added in v0.10.0

func (fake *FakeTerraformInvoker) ApplyCalls(stub func(context.Context, workspace.Workspace) error)

func (*FakeTerraformInvoker) ApplyReturns added in v0.10.0

func (fake *FakeTerraformInvoker) ApplyReturns(result1 error)

func (*FakeTerraformInvoker) ApplyReturnsOnCall added in v0.10.0

func (fake *FakeTerraformInvoker) ApplyReturnsOnCall(i int, result1 error)

func (*FakeTerraformInvoker) Destroy added in v0.10.0

func (fake *FakeTerraformInvoker) Destroy(arg1 context.Context, arg2 workspace.Workspace) error

func (*FakeTerraformInvoker) DestroyArgsForCall added in v0.10.0

func (fake *FakeTerraformInvoker) DestroyArgsForCall(i int) (context.Context, workspace.Workspace)

func (*FakeTerraformInvoker) DestroyCallCount added in v0.10.0

func (fake *FakeTerraformInvoker) DestroyCallCount() int

func (*FakeTerraformInvoker) DestroyCalls added in v0.10.0

func (fake *FakeTerraformInvoker) DestroyCalls(stub func(context.Context, workspace.Workspace) error)

func (*FakeTerraformInvoker) DestroyReturns added in v0.10.0

func (fake *FakeTerraformInvoker) DestroyReturns(result1 error)

func (*FakeTerraformInvoker) DestroyReturnsOnCall added in v0.10.0

func (fake *FakeTerraformInvoker) DestroyReturnsOnCall(i int, result1 error)

func (*FakeTerraformInvoker) Import added in v0.10.0

func (fake *FakeTerraformInvoker) Import(arg1 context.Context, arg2 workspace.Workspace, arg3 map[string]string) error

func (*FakeTerraformInvoker) ImportArgsForCall added in v0.10.0

func (fake *FakeTerraformInvoker) ImportArgsForCall(i int) (context.Context, workspace.Workspace, map[string]string)

func (*FakeTerraformInvoker) ImportCallCount added in v0.10.0

func (fake *FakeTerraformInvoker) ImportCallCount() int

func (*FakeTerraformInvoker) ImportCalls added in v0.10.0

func (fake *FakeTerraformInvoker) ImportCalls(stub func(context.Context, workspace.Workspace, map[string]string) error)

func (*FakeTerraformInvoker) ImportReturns added in v0.10.0

func (fake *FakeTerraformInvoker) ImportReturns(result1 error)

func (*FakeTerraformInvoker) ImportReturnsOnCall added in v0.10.0

func (fake *FakeTerraformInvoker) ImportReturnsOnCall(i int, result1 error)

func (*FakeTerraformInvoker) Invocations added in v0.10.0

func (fake *FakeTerraformInvoker) Invocations() map[string][][]any

func (*FakeTerraformInvoker) Plan added in v0.10.0

func (*FakeTerraformInvoker) PlanArgsForCall added in v0.10.0

func (fake *FakeTerraformInvoker) PlanArgsForCall(i int) (context.Context, workspace.Workspace)

func (*FakeTerraformInvoker) PlanCallCount added in v0.10.0

func (fake *FakeTerraformInvoker) PlanCallCount() int

func (*FakeTerraformInvoker) PlanCalls added in v0.10.0

func (*FakeTerraformInvoker) PlanReturns added in v0.10.0

func (fake *FakeTerraformInvoker) PlanReturns(result1 executor.ExecutionOutput, result2 error)

func (*FakeTerraformInvoker) PlanReturnsOnCall added in v0.10.0

func (fake *FakeTerraformInvoker) PlanReturnsOnCall(i int, result1 executor.ExecutionOutput, result2 error)

func (*FakeTerraformInvoker) Show added in v0.10.0

func (*FakeTerraformInvoker) ShowArgsForCall added in v0.10.0

func (fake *FakeTerraformInvoker) ShowArgsForCall(i int) (context.Context, workspace.Workspace)

func (*FakeTerraformInvoker) ShowCallCount added in v0.10.0

func (fake *FakeTerraformInvoker) ShowCallCount() int

func (*FakeTerraformInvoker) ShowCalls added in v0.10.0

func (fake *FakeTerraformInvoker) ShowCalls(stub func(context.Context, workspace.Workspace) (string, error))

func (*FakeTerraformInvoker) ShowReturns added in v0.10.0

func (fake *FakeTerraformInvoker) ShowReturns(result1 string, result2 error)

func (*FakeTerraformInvoker) ShowReturnsOnCall added in v0.10.0

func (fake *FakeTerraformInvoker) ShowReturnsOnCall(i int, result1 string, result2 error)

type FakeTerraformInvokerBuilder added in v0.10.0

type FakeTerraformInvokerBuilder struct {
	VersionedTerraformInvokerStub func(*version.Version) invoker.TerraformInvoker
	// contains filtered or unexported fields
}

func (*FakeTerraformInvokerBuilder) Invocations added in v0.10.0

func (fake *FakeTerraformInvokerBuilder) Invocations() map[string][][]any

func (*FakeTerraformInvokerBuilder) VersionedTerraformInvoker added in v0.10.0

func (fake *FakeTerraformInvokerBuilder) VersionedTerraformInvoker(arg1 *version.Version) invoker.TerraformInvoker

func (*FakeTerraformInvokerBuilder) VersionedTerraformInvokerArgsForCall added in v0.10.0

func (fake *FakeTerraformInvokerBuilder) VersionedTerraformInvokerArgsForCall(i int) *version.Version

func (*FakeTerraformInvokerBuilder) VersionedTerraformInvokerCallCount added in v0.10.0

func (fake *FakeTerraformInvokerBuilder) VersionedTerraformInvokerCallCount() int

func (*FakeTerraformInvokerBuilder) VersionedTerraformInvokerCalls added in v0.10.0

func (fake *FakeTerraformInvokerBuilder) VersionedTerraformInvokerCalls(stub func(*version.Version) invoker.TerraformInvoker)

func (*FakeTerraformInvokerBuilder) VersionedTerraformInvokerReturns added in v0.10.0

func (fake *FakeTerraformInvokerBuilder) VersionedTerraformInvokerReturns(result1 invoker.TerraformInvoker)

func (*FakeTerraformInvokerBuilder) VersionedTerraformInvokerReturnsOnCall added in v0.10.0

func (fake *FakeTerraformInvokerBuilder) VersionedTerraformInvokerReturnsOnCall(i int, result1 invoker.TerraformInvoker)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL