mocks

package
v2.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MockClient

func MockClient() *tfe.Client

func MockConfig

func MockConfig() config.Config

func WithMockedFile

func WithMockedFile(f *os.File, work func(f *os.File))

Types

type Applies

type Applies interface {
	tfe.Applies
}

type ConfigurationVersions

type ConfigurationVersions interface {
	tfe.ConfigurationVersions
}

type MockApplies

type MockApplies struct {
	// contains filtered or unexported fields
}

MockApplies is a mock of Applies interface.

func NewMockApplies

func NewMockApplies(ctrl *gomock.Controller) *MockApplies

NewMockApplies creates a new mock instance.

func (*MockApplies) EXPECT

func (m *MockApplies) EXPECT() *MockAppliesMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockApplies) Logs

func (m *MockApplies) Logs(ctx context.Context, applyID string) (io.Reader, error)

Logs mocks base method.

func (*MockApplies) Read

func (m *MockApplies) Read(ctx context.Context, applyID string) (*tfe.Apply, error)

Read mocks base method.

type MockAppliesMockRecorder

type MockAppliesMockRecorder struct {
	// contains filtered or unexported fields
}

MockAppliesMockRecorder is the mock recorder for MockApplies.

func (*MockAppliesMockRecorder) Logs

func (mr *MockAppliesMockRecorder) Logs(ctx, applyID interface{}) *gomock.Call

Logs indicates an expected call of Logs.

func (*MockAppliesMockRecorder) Read

func (mr *MockAppliesMockRecorder) Read(ctx, applyID interface{}) *gomock.Call

Read indicates an expected call of Read.

type MockConfigurationVersions

type MockConfigurationVersions struct {
	// contains filtered or unexported fields
}

MockConfigurationVersions is a mock of ConfigurationVersions interface.

func NewMockConfigurationVersions

func NewMockConfigurationVersions(ctrl *gomock.Controller) *MockConfigurationVersions

NewMockConfigurationVersions creates a new mock instance.

func (*MockConfigurationVersions) Archive

func (m *MockConfigurationVersions) Archive(ctx context.Context, cvID string) error

Archive mocks base method.

func (*MockConfigurationVersions) Create

Create mocks base method.

func (*MockConfigurationVersions) Download

func (m *MockConfigurationVersions) Download(ctx context.Context, cvID string) ([]byte, error)

Download mocks base method.

func (*MockConfigurationVersions) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockConfigurationVersions) List

List mocks base method.

func (*MockConfigurationVersions) Read

Read mocks base method.

func (*MockConfigurationVersions) ReadWithOptions

ReadWithOptions mocks base method.

func (*MockConfigurationVersions) Upload

func (m *MockConfigurationVersions) Upload(ctx context.Context, url, path string) error

Upload mocks base method.

type MockConfigurationVersionsMockRecorder

type MockConfigurationVersionsMockRecorder struct {
	// contains filtered or unexported fields
}

MockConfigurationVersionsMockRecorder is the mock recorder for MockConfigurationVersions.

func (*MockConfigurationVersionsMockRecorder) Archive

func (mr *MockConfigurationVersionsMockRecorder) Archive(ctx, cvID interface{}) *gomock.Call

Archive indicates an expected call of Archive.

func (*MockConfigurationVersionsMockRecorder) Create

func (mr *MockConfigurationVersionsMockRecorder) Create(ctx, workspaceID, options interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockConfigurationVersionsMockRecorder) Download

func (mr *MockConfigurationVersionsMockRecorder) Download(ctx, cvID interface{}) *gomock.Call

Download indicates an expected call of Download.

func (*MockConfigurationVersionsMockRecorder) List

func (mr *MockConfigurationVersionsMockRecorder) List(ctx, workspaceID, options interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockConfigurationVersionsMockRecorder) Read

func (mr *MockConfigurationVersionsMockRecorder) Read(ctx, cvID interface{}) *gomock.Call

Read indicates an expected call of Read.

func (*MockConfigurationVersionsMockRecorder) ReadWithOptions

func (mr *MockConfigurationVersionsMockRecorder) ReadWithOptions(ctx, cvID, options interface{}) *gomock.Call

ReadWithOptions indicates an expected call of ReadWithOptions.

func (*MockConfigurationVersionsMockRecorder) Upload

func (mr *MockConfigurationVersionsMockRecorder) Upload(ctx, url, path interface{}) *gomock.Call

Upload indicates an expected call of Upload.

type MockPlans

type MockPlans struct {
	// contains filtered or unexported fields
}

MockPlans is a mock of Plans interface.

func NewMockPlans

func NewMockPlans(ctrl *gomock.Controller) *MockPlans

NewMockPlans creates a new mock instance.

func (*MockPlans) EXPECT

func (m *MockPlans) EXPECT() *MockPlansMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPlans) Logs

func (m *MockPlans) Logs(ctx context.Context, planID string) (io.Reader, error)

Logs mocks base method.

func (*MockPlans) Read

func (m *MockPlans) Read(ctx context.Context, planID string) (*tfe.Plan, error)

Read mocks base method.

func (*MockPlans) ReadJSONOutput

func (m *MockPlans) ReadJSONOutput(ctx context.Context, planID string) ([]byte, error)

ReadJSONOutput mocks base method.

type MockPlansMockRecorder

type MockPlansMockRecorder struct {
	// contains filtered or unexported fields
}

MockPlansMockRecorder is the mock recorder for MockPlans.

func (*MockPlansMockRecorder) Logs

func (mr *MockPlansMockRecorder) Logs(ctx, planID interface{}) *gomock.Call

Logs indicates an expected call of Logs.

func (*MockPlansMockRecorder) Read

func (mr *MockPlansMockRecorder) Read(ctx, planID interface{}) *gomock.Call

Read indicates an expected call of Read.

func (*MockPlansMockRecorder) ReadJSONOutput

func (mr *MockPlansMockRecorder) ReadJSONOutput(ctx, planID interface{}) *gomock.Call

ReadJSONOutput indicates an expected call of ReadJSONOutput.

type MockRuns

type MockRuns struct {
	// contains filtered or unexported fields
}

MockRuns is a mock of Runs interface.

func NewMockRuns

func NewMockRuns(ctrl *gomock.Controller) *MockRuns

NewMockRuns creates a new mock instance.

func (*MockRuns) Apply

func (m *MockRuns) Apply(ctx context.Context, runID string, options tfe.RunApplyOptions) error

Apply mocks base method.

func (*MockRuns) Cancel

func (m *MockRuns) Cancel(ctx context.Context, runID string, options tfe.RunCancelOptions) error

Cancel mocks base method.

func (*MockRuns) Create

func (m *MockRuns) Create(ctx context.Context, options tfe.RunCreateOptions) (*tfe.Run, error)

Create mocks base method.

func (*MockRuns) Discard

func (m *MockRuns) Discard(ctx context.Context, runID string, options tfe.RunDiscardOptions) error

Discard mocks base method.

func (*MockRuns) EXPECT

func (m *MockRuns) EXPECT() *MockRunsMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRuns) ForceCancel

func (m *MockRuns) ForceCancel(ctx context.Context, runID string, options tfe.RunForceCancelOptions) error

ForceCancel mocks base method.

func (*MockRuns) List

func (m *MockRuns) List(ctx context.Context, workspaceID string, options *tfe.RunListOptions) (*tfe.RunList, error)

List mocks base method.

func (*MockRuns) Read

func (m *MockRuns) Read(ctx context.Context, runID string) (*tfe.Run, error)

Read mocks base method.

func (*MockRuns) ReadWithOptions

func (m *MockRuns) ReadWithOptions(ctx context.Context, runID string, options *tfe.RunReadOptions) (*tfe.Run, error)

ReadWithOptions mocks base method.

type MockRunsMockRecorder

type MockRunsMockRecorder struct {
	// contains filtered or unexported fields
}

MockRunsMockRecorder is the mock recorder for MockRuns.

func (*MockRunsMockRecorder) Apply

func (mr *MockRunsMockRecorder) Apply(ctx, runID, options interface{}) *gomock.Call

Apply indicates an expected call of Apply.

func (*MockRunsMockRecorder) Cancel

func (mr *MockRunsMockRecorder) Cancel(ctx, runID, options interface{}) *gomock.Call

Cancel indicates an expected call of Cancel.

func (*MockRunsMockRecorder) Create

func (mr *MockRunsMockRecorder) Create(ctx, options interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockRunsMockRecorder) Discard

func (mr *MockRunsMockRecorder) Discard(ctx, runID, options interface{}) *gomock.Call

Discard indicates an expected call of Discard.

func (*MockRunsMockRecorder) ForceCancel

func (mr *MockRunsMockRecorder) ForceCancel(ctx, runID, options interface{}) *gomock.Call

ForceCancel indicates an expected call of ForceCancel.

func (*MockRunsMockRecorder) List

func (mr *MockRunsMockRecorder) List(ctx, workspaceID, options interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockRunsMockRecorder) Read

func (mr *MockRunsMockRecorder) Read(ctx, runID interface{}) *gomock.Call

Read indicates an expected call of Read.

func (*MockRunsMockRecorder) ReadWithOptions

func (mr *MockRunsMockRecorder) ReadWithOptions(ctx, runID, options interface{}) *gomock.Call

ReadWithOptions indicates an expected call of ReadWithOptions.

type MockWorkspaces

type MockWorkspaces struct {
	// contains filtered or unexported fields
}

MockWorkspaces is a mock of Workspaces interface.

func NewMockWorkspaces

func NewMockWorkspaces(ctrl *gomock.Controller) *MockWorkspaces

NewMockWorkspaces creates a new mock instance.

func (*MockWorkspaces) AddRemoteStateConsumers

func (m *MockWorkspaces) AddRemoteStateConsumers(ctx context.Context, workspaceID string, options tfe.WorkspaceAddRemoteStateConsumersOptions) error

AddRemoteStateConsumers mocks base method.

func (*MockWorkspaces) AddTags

func (m *MockWorkspaces) AddTags(ctx context.Context, workspaceID string, options tfe.WorkspaceAddTagsOptions) error

AddTags mocks base method.

func (*MockWorkspaces) AssignSSHKey

func (m *MockWorkspaces) AssignSSHKey(ctx context.Context, workspaceID string, options tfe.WorkspaceAssignSSHKeyOptions) (*tfe.Workspace, error)

AssignSSHKey mocks base method.

func (*MockWorkspaces) Create

func (m *MockWorkspaces) Create(ctx context.Context, organization string, options tfe.WorkspaceCreateOptions) (*tfe.Workspace, error)

Create mocks base method.

func (*MockWorkspaces) Delete

func (m *MockWorkspaces) Delete(ctx context.Context, organization, workspace string) error

Delete mocks base method.

func (*MockWorkspaces) DeleteByID

func (m *MockWorkspaces) DeleteByID(ctx context.Context, workspaceID string) error

DeleteByID mocks base method.

func (*MockWorkspaces) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockWorkspaces) ForceUnlock

func (m *MockWorkspaces) ForceUnlock(ctx context.Context, workspaceID string) (*tfe.Workspace, error)

ForceUnlock mocks base method.

func (*MockWorkspaces) List

func (m *MockWorkspaces) List(ctx context.Context, organization string, options *tfe.WorkspaceListOptions) (*tfe.WorkspaceList, error)

List mocks base method.

func (*MockWorkspaces) ListRemoteStateConsumers

func (m *MockWorkspaces) ListRemoteStateConsumers(ctx context.Context, workspaceID string, options *tfe.RemoteStateConsumersListOptions) (*tfe.WorkspaceList, error)

ListRemoteStateConsumers mocks base method.

func (*MockWorkspaces) ListTags

func (m *MockWorkspaces) ListTags(ctx context.Context, workspaceID string, options *tfe.WorkspaceTagListOptions) (*tfe.TagList, error)

ListTags mocks base method.

func (*MockWorkspaces) Lock

func (m *MockWorkspaces) Lock(ctx context.Context, workspaceID string, options tfe.WorkspaceLockOptions) (*tfe.Workspace, error)

Lock mocks base method.

func (*MockWorkspaces) Read

func (m *MockWorkspaces) Read(ctx context.Context, organization, workspace string) (*tfe.Workspace, error)

Read mocks base method.

func (*MockWorkspaces) ReadByID

func (m *MockWorkspaces) ReadByID(ctx context.Context, workspaceID string) (*tfe.Workspace, error)

ReadByID mocks base method.

func (*MockWorkspaces) ReadByIDWithOptions

func (m *MockWorkspaces) ReadByIDWithOptions(ctx context.Context, workspaceID string, options *tfe.WorkspaceReadOptions) (*tfe.Workspace, error)

ReadByIDWithOptions mocks base method.

func (*MockWorkspaces) ReadWithOptions

func (m *MockWorkspaces) ReadWithOptions(ctx context.Context, organization, workspace string, options *tfe.WorkspaceReadOptions) (*tfe.Workspace, error)

ReadWithOptions mocks base method.

func (*MockWorkspaces) Readme

func (m *MockWorkspaces) Readme(ctx context.Context, workspaceID string) (io.Reader, error)

Readme mocks base method.

func (*MockWorkspaces) RemoveRemoteStateConsumers

func (m *MockWorkspaces) RemoveRemoteStateConsumers(ctx context.Context, workspaceID string, options tfe.WorkspaceRemoveRemoteStateConsumersOptions) error

RemoveRemoteStateConsumers mocks base method.

func (*MockWorkspaces) RemoveTags

func (m *MockWorkspaces) RemoveTags(ctx context.Context, workspaceID string, options tfe.WorkspaceRemoveTagsOptions) error

RemoveTags mocks base method.

func (*MockWorkspaces) RemoveVCSConnection

func (m *MockWorkspaces) RemoveVCSConnection(ctx context.Context, organization, workspace string) (*tfe.Workspace, error)

RemoveVCSConnection mocks base method.

func (*MockWorkspaces) RemoveVCSConnectionByID

func (m *MockWorkspaces) RemoveVCSConnectionByID(ctx context.Context, workspaceID string) (*tfe.Workspace, error)

RemoveVCSConnectionByID mocks base method.

func (*MockWorkspaces) UnassignSSHKey

func (m *MockWorkspaces) UnassignSSHKey(ctx context.Context, workspaceID string) (*tfe.Workspace, error)

UnassignSSHKey mocks base method.

func (*MockWorkspaces) Unlock

func (m *MockWorkspaces) Unlock(ctx context.Context, workspaceID string) (*tfe.Workspace, error)

Unlock mocks base method.

func (*MockWorkspaces) Update

func (m *MockWorkspaces) Update(ctx context.Context, organization, workspace string, options tfe.WorkspaceUpdateOptions) (*tfe.Workspace, error)

Update mocks base method.

func (*MockWorkspaces) UpdateByID

func (m *MockWorkspaces) UpdateByID(ctx context.Context, workspaceID string, options tfe.WorkspaceUpdateOptions) (*tfe.Workspace, error)

UpdateByID mocks base method.

func (*MockWorkspaces) UpdateRemoteStateConsumers

func (m *MockWorkspaces) UpdateRemoteStateConsumers(ctx context.Context, workspaceID string, options tfe.WorkspaceUpdateRemoteStateConsumersOptions) error

UpdateRemoteStateConsumers mocks base method.

type MockWorkspacesMockRecorder

type MockWorkspacesMockRecorder struct {
	// contains filtered or unexported fields
}

MockWorkspacesMockRecorder is the mock recorder for MockWorkspaces.

func (*MockWorkspacesMockRecorder) AddRemoteStateConsumers

func (mr *MockWorkspacesMockRecorder) AddRemoteStateConsumers(ctx, workspaceID, options interface{}) *gomock.Call

AddRemoteStateConsumers indicates an expected call of AddRemoteStateConsumers.

func (*MockWorkspacesMockRecorder) AddTags

func (mr *MockWorkspacesMockRecorder) AddTags(ctx, workspaceID, options interface{}) *gomock.Call

AddTags indicates an expected call of AddTags.

func (*MockWorkspacesMockRecorder) AssignSSHKey

func (mr *MockWorkspacesMockRecorder) AssignSSHKey(ctx, workspaceID, options interface{}) *gomock.Call

AssignSSHKey indicates an expected call of AssignSSHKey.

func (*MockWorkspacesMockRecorder) Create

func (mr *MockWorkspacesMockRecorder) Create(ctx, organization, options interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockWorkspacesMockRecorder) Delete

func (mr *MockWorkspacesMockRecorder) Delete(ctx, organization, workspace interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockWorkspacesMockRecorder) DeleteByID

func (mr *MockWorkspacesMockRecorder) DeleteByID(ctx, workspaceID interface{}) *gomock.Call

DeleteByID indicates an expected call of DeleteByID.

func (*MockWorkspacesMockRecorder) ForceUnlock

func (mr *MockWorkspacesMockRecorder) ForceUnlock(ctx, workspaceID interface{}) *gomock.Call

ForceUnlock indicates an expected call of ForceUnlock.

func (*MockWorkspacesMockRecorder) List

func (mr *MockWorkspacesMockRecorder) List(ctx, organization, options interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockWorkspacesMockRecorder) ListRemoteStateConsumers

func (mr *MockWorkspacesMockRecorder) ListRemoteStateConsumers(ctx, workspaceID, options interface{}) *gomock.Call

ListRemoteStateConsumers indicates an expected call of ListRemoteStateConsumers.

func (*MockWorkspacesMockRecorder) ListTags

func (mr *MockWorkspacesMockRecorder) ListTags(ctx, workspaceID, options interface{}) *gomock.Call

ListTags indicates an expected call of ListTags.

func (*MockWorkspacesMockRecorder) Lock

func (mr *MockWorkspacesMockRecorder) Lock(ctx, workspaceID, options interface{}) *gomock.Call

Lock indicates an expected call of Lock.

func (*MockWorkspacesMockRecorder) Read

func (mr *MockWorkspacesMockRecorder) Read(ctx, organization, workspace interface{}) *gomock.Call

Read indicates an expected call of Read.

func (*MockWorkspacesMockRecorder) ReadByID

func (mr *MockWorkspacesMockRecorder) ReadByID(ctx, workspaceID interface{}) *gomock.Call

ReadByID indicates an expected call of ReadByID.

func (*MockWorkspacesMockRecorder) ReadByIDWithOptions

func (mr *MockWorkspacesMockRecorder) ReadByIDWithOptions(ctx, workspaceID, options interface{}) *gomock.Call

ReadByIDWithOptions indicates an expected call of ReadByIDWithOptions.

func (*MockWorkspacesMockRecorder) ReadWithOptions

func (mr *MockWorkspacesMockRecorder) ReadWithOptions(ctx, organization, workspace, options interface{}) *gomock.Call

ReadWithOptions indicates an expected call of ReadWithOptions.

func (*MockWorkspacesMockRecorder) Readme

func (mr *MockWorkspacesMockRecorder) Readme(ctx, workspaceID interface{}) *gomock.Call

Readme indicates an expected call of Readme.

func (*MockWorkspacesMockRecorder) RemoveRemoteStateConsumers

func (mr *MockWorkspacesMockRecorder) RemoveRemoteStateConsumers(ctx, workspaceID, options interface{}) *gomock.Call

RemoveRemoteStateConsumers indicates an expected call of RemoveRemoteStateConsumers.

func (*MockWorkspacesMockRecorder) RemoveTags

func (mr *MockWorkspacesMockRecorder) RemoveTags(ctx, workspaceID, options interface{}) *gomock.Call

RemoveTags indicates an expected call of RemoveTags.

func (*MockWorkspacesMockRecorder) RemoveVCSConnection

func (mr *MockWorkspacesMockRecorder) RemoveVCSConnection(ctx, organization, workspace interface{}) *gomock.Call

RemoveVCSConnection indicates an expected call of RemoveVCSConnection.

func (*MockWorkspacesMockRecorder) RemoveVCSConnectionByID

func (mr *MockWorkspacesMockRecorder) RemoveVCSConnectionByID(ctx, workspaceID interface{}) *gomock.Call

RemoveVCSConnectionByID indicates an expected call of RemoveVCSConnectionByID.

func (*MockWorkspacesMockRecorder) UnassignSSHKey

func (mr *MockWorkspacesMockRecorder) UnassignSSHKey(ctx, workspaceID interface{}) *gomock.Call

UnassignSSHKey indicates an expected call of UnassignSSHKey.

func (*MockWorkspacesMockRecorder) Unlock

func (mr *MockWorkspacesMockRecorder) Unlock(ctx, workspaceID interface{}) *gomock.Call

Unlock indicates an expected call of Unlock.

func (*MockWorkspacesMockRecorder) Update

func (mr *MockWorkspacesMockRecorder) Update(ctx, organization, workspace, options interface{}) *gomock.Call

Update indicates an expected call of Update.

func (*MockWorkspacesMockRecorder) UpdateByID

func (mr *MockWorkspacesMockRecorder) UpdateByID(ctx, workspaceID, options interface{}) *gomock.Call

UpdateByID indicates an expected call of UpdateByID.

func (*MockWorkspacesMockRecorder) UpdateRemoteStateConsumers

func (mr *MockWorkspacesMockRecorder) UpdateRemoteStateConsumers(ctx, workspaceID, options interface{}) *gomock.Call

UpdateRemoteStateConsumers indicates an expected call of UpdateRemoteStateConsumers.

type Plans

type Plans interface {
	tfe.Plans
}

type Runs

type Runs interface {
	tfe.Runs
}

type Workspaces

type Workspaces interface {
	tfe.Workspaces
}

Jump to

Keyboard shortcuts

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