tffakes

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 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

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

func (*FakeDeploymentManagerInterface) CreateAndSaveDeploymentArgsForCall

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

func (*FakeDeploymentManagerInterface) CreateAndSaveDeploymentCallCount

func (fake *FakeDeploymentManagerInterface) CreateAndSaveDeploymentCallCount() int

func (*FakeDeploymentManagerInterface) CreateAndSaveDeploymentCalls

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

func (*FakeDeploymentManagerInterface) CreateAndSaveDeploymentReturns

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

func (*FakeDeploymentManagerInterface) CreateAndSaveDeploymentReturnsOnCall

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

func (*FakeDeploymentManagerInterface) DeleteTerraformDeployment

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

func (*FakeDeploymentManagerInterface) DeleteTerraformDeploymentArgsForCall

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

func (*FakeDeploymentManagerInterface) DeleteTerraformDeploymentCallCount

func (fake *FakeDeploymentManagerInterface) DeleteTerraformDeploymentCallCount() int

func (*FakeDeploymentManagerInterface) DeleteTerraformDeploymentCalls

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

func (*FakeDeploymentManagerInterface) DeleteTerraformDeploymentReturns

func (fake *FakeDeploymentManagerInterface) DeleteTerraformDeploymentReturns(result1 error)

func (*FakeDeploymentManagerInterface) DeleteTerraformDeploymentReturnsOnCall

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

func (*FakeDeploymentManagerInterface) GetBindingDeployments

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

func (*FakeDeploymentManagerInterface) GetBindingDeploymentsArgsForCall

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

func (*FakeDeploymentManagerInterface) GetBindingDeploymentsCallCount

func (fake *FakeDeploymentManagerInterface) GetBindingDeploymentsCallCount() int

func (*FakeDeploymentManagerInterface) GetBindingDeploymentsCalls

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

func (*FakeDeploymentManagerInterface) GetBindingDeploymentsReturns

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

func (*FakeDeploymentManagerInterface) GetBindingDeploymentsReturnsOnCall

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

func (*FakeDeploymentManagerInterface) GetTerraformDeployment

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

func (*FakeDeploymentManagerInterface) GetTerraformDeploymentArgsForCall

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

func (*FakeDeploymentManagerInterface) GetTerraformDeploymentCallCount

func (fake *FakeDeploymentManagerInterface) GetTerraformDeploymentCallCount() int

func (*FakeDeploymentManagerInterface) GetTerraformDeploymentCalls

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

func (*FakeDeploymentManagerInterface) GetTerraformDeploymentReturns

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

func (*FakeDeploymentManagerInterface) GetTerraformDeploymentReturnsOnCall

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

func (*FakeDeploymentManagerInterface) Invocations

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

func (*FakeDeploymentManagerInterface) MarkOperationFinished

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

func (*FakeDeploymentManagerInterface) MarkOperationFinishedArgsForCall

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

func (*FakeDeploymentManagerInterface) MarkOperationFinishedCallCount

func (fake *FakeDeploymentManagerInterface) MarkOperationFinishedCallCount() int

func (*FakeDeploymentManagerInterface) MarkOperationFinishedCalls

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

func (*FakeDeploymentManagerInterface) MarkOperationFinishedReturns

func (fake *FakeDeploymentManagerInterface) MarkOperationFinishedReturns(result1 error)

func (*FakeDeploymentManagerInterface) MarkOperationFinishedReturnsOnCall

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

func (*FakeDeploymentManagerInterface) MarkOperationStarted

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

func (*FakeDeploymentManagerInterface) MarkOperationStartedArgsForCall

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

func (*FakeDeploymentManagerInterface) MarkOperationStartedCallCount

func (fake *FakeDeploymentManagerInterface) MarkOperationStartedCallCount() int

func (*FakeDeploymentManagerInterface) MarkOperationStartedCalls

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

func (*FakeDeploymentManagerInterface) MarkOperationStartedReturns

func (fake *FakeDeploymentManagerInterface) MarkOperationStartedReturns(result1 error)

func (*FakeDeploymentManagerInterface) MarkOperationStartedReturnsOnCall

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

func (*FakeDeploymentManagerInterface) OperationStatus

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

func (*FakeDeploymentManagerInterface) OperationStatusArgsForCall

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

func (*FakeDeploymentManagerInterface) OperationStatusCallCount

func (fake *FakeDeploymentManagerInterface) OperationStatusCallCount() int

func (*FakeDeploymentManagerInterface) OperationStatusCalls

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

func (*FakeDeploymentManagerInterface) OperationStatusReturns

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

func (*FakeDeploymentManagerInterface) OperationStatusReturnsOnCall

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

func (*FakeDeploymentManagerInterface) UpdateWorkspaceHCL

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

func (*FakeDeploymentManagerInterface) UpdateWorkspaceHCLArgsForCall

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

func (*FakeDeploymentManagerInterface) UpdateWorkspaceHCLCallCount

func (fake *FakeDeploymentManagerInterface) UpdateWorkspaceHCLCallCount() int

func (*FakeDeploymentManagerInterface) UpdateWorkspaceHCLCalls

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

func (*FakeDeploymentManagerInterface) UpdateWorkspaceHCLReturns

func (fake *FakeDeploymentManagerInterface) UpdateWorkspaceHCLReturns(result1 error)

func (*FakeDeploymentManagerInterface) UpdateWorkspaceHCLReturnsOnCall

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

type FakeTerraformInvoker

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

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

func (*FakeTerraformInvoker) ApplyArgsForCall

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

func (*FakeTerraformInvoker) ApplyCallCount

func (fake *FakeTerraformInvoker) ApplyCallCount() int

func (*FakeTerraformInvoker) ApplyCalls

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

func (*FakeTerraformInvoker) ApplyReturns

func (fake *FakeTerraformInvoker) ApplyReturns(result1 error)

func (*FakeTerraformInvoker) ApplyReturnsOnCall

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

func (*FakeTerraformInvoker) Destroy

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

func (*FakeTerraformInvoker) DestroyArgsForCall

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

func (*FakeTerraformInvoker) DestroyCallCount

func (fake *FakeTerraformInvoker) DestroyCallCount() int

func (*FakeTerraformInvoker) DestroyCalls

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

func (*FakeTerraformInvoker) DestroyReturns

func (fake *FakeTerraformInvoker) DestroyReturns(result1 error)

func (*FakeTerraformInvoker) DestroyReturnsOnCall

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

func (*FakeTerraformInvoker) Import

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

func (*FakeTerraformInvoker) ImportArgsForCall

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

func (*FakeTerraformInvoker) ImportCallCount

func (fake *FakeTerraformInvoker) ImportCallCount() int

func (*FakeTerraformInvoker) ImportCalls

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

func (*FakeTerraformInvoker) ImportReturns

func (fake *FakeTerraformInvoker) ImportReturns(result1 error)

func (*FakeTerraformInvoker) ImportReturnsOnCall

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

func (*FakeTerraformInvoker) Invocations

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

func (*FakeTerraformInvoker) Plan

func (*FakeTerraformInvoker) PlanArgsForCall

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

func (*FakeTerraformInvoker) PlanCallCount

func (fake *FakeTerraformInvoker) PlanCallCount() int

func (*FakeTerraformInvoker) PlanCalls

func (*FakeTerraformInvoker) PlanReturns

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

func (*FakeTerraformInvoker) PlanReturnsOnCall

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

func (*FakeTerraformInvoker) Show

func (*FakeTerraformInvoker) ShowArgsForCall

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

func (*FakeTerraformInvoker) ShowCallCount

func (fake *FakeTerraformInvoker) ShowCallCount() int

func (*FakeTerraformInvoker) ShowCalls

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

func (*FakeTerraformInvoker) ShowReturns

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

func (*FakeTerraformInvoker) ShowReturnsOnCall

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

type FakeTerraformInvokerBuilder

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

func (*FakeTerraformInvokerBuilder) Invocations

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

func (*FakeTerraformInvokerBuilder) VersionedTerraformInvoker

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

func (*FakeTerraformInvokerBuilder) VersionedTerraformInvokerArgsForCall

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

func (*FakeTerraformInvokerBuilder) VersionedTerraformInvokerCallCount

func (fake *FakeTerraformInvokerBuilder) VersionedTerraformInvokerCallCount() int

func (*FakeTerraformInvokerBuilder) VersionedTerraformInvokerCalls

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

func (*FakeTerraformInvokerBuilder) VersionedTerraformInvokerReturns

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

func (*FakeTerraformInvokerBuilder) VersionedTerraformInvokerReturnsOnCall

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