mocks

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: MPL-2.0 Imports: 6 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

Types

type ConfigurationVersions added in v1.4.0

type ConfigurationVersions interface {
	tfe.ConfigurationVersions
}

type MockConfigurationVersions added in v1.4.0

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

MockConfigurationVersions is a mock of ConfigurationVersions interface.

func NewMockConfigurationVersions added in v1.4.0

func NewMockConfigurationVersions(ctrl *gomock.Controller) *MockConfigurationVersions

NewMockConfigurationVersions creates a new mock instance.

func (*MockConfigurationVersions) Create added in v1.4.0

Create mocks base method.

func (*MockConfigurationVersions) EXPECT added in v1.4.0

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

func (*MockConfigurationVersions) List added in v1.4.0

List mocks base method.

func (*MockConfigurationVersions) Read added in v1.4.0

Read mocks base method.

func (*MockConfigurationVersions) Upload added in v1.4.0

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

Upload mocks base method.

type MockConfigurationVersionsMockRecorder added in v1.4.0

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

MockConfigurationVersionsMockRecorder is the mock recorder for MockConfigurationVersions.

func (*MockConfigurationVersionsMockRecorder) Create added in v1.4.0

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

Create indicates an expected call of Create.

func (*MockConfigurationVersionsMockRecorder) List added in v1.4.0

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

List indicates an expected call of List.

func (*MockConfigurationVersionsMockRecorder) Read added in v1.4.0

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

Read indicates an expected call of Read.

func (*MockConfigurationVersionsMockRecorder) Upload added in v1.4.0

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

Upload indicates an expected call of Upload.

type MockPlans added in v1.4.0

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

MockPlans is a mock of Plans interface.

func NewMockPlans added in v1.4.0

func NewMockPlans(ctrl *gomock.Controller) *MockPlans

NewMockPlans creates a new mock instance.

func (*MockPlans) EXPECT added in v1.4.0

func (m *MockPlans) EXPECT() *MockPlansMockRecorder

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

func (*MockPlans) JSONOutput added in v1.4.0

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

JSONOutput mocks base method.

func (*MockPlans) Logs added in v1.4.0

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

Logs mocks base method.

func (*MockPlans) Read added in v1.4.0

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

Read mocks base method.

type MockPlansMockRecorder added in v1.4.0

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

MockPlansMockRecorder is the mock recorder for MockPlans.

func (*MockPlansMockRecorder) JSONOutput added in v1.4.0

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

JSONOutput indicates an expected call of JSONOutput.

func (*MockPlansMockRecorder) Logs added in v1.4.0

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

Logs indicates an expected call of Logs.

func (*MockPlansMockRecorder) Read added in v1.4.0

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

Read indicates an expected call of Read.

type MockRuns added in v1.4.0

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

MockRuns is a mock of Runs interface.

func NewMockRuns added in v1.4.0

func NewMockRuns(ctrl *gomock.Controller) *MockRuns

NewMockRuns creates a new mock instance.

func (*MockRuns) Apply added in v1.4.0

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

Apply mocks base method.

func (*MockRuns) Cancel added in v1.4.0

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

Cancel mocks base method.

func (*MockRuns) Create added in v1.4.0

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

Create mocks base method.

func (*MockRuns) Discard added in v1.4.0

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

Discard mocks base method.

func (*MockRuns) EXPECT added in v1.4.0

func (m *MockRuns) EXPECT() *MockRunsMockRecorder

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

func (*MockRuns) ForceCancel added in v1.4.0

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

ForceCancel mocks base method.

func (*MockRuns) List added in v1.4.0

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

List mocks base method.

func (*MockRuns) Read added in v1.4.0

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

Read mocks base method.

func (*MockRuns) ReadWithOptions added in v1.4.0

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

ReadWithOptions mocks base method.

type MockRunsMockRecorder added in v1.4.0

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

MockRunsMockRecorder is the mock recorder for MockRuns.

func (*MockRunsMockRecorder) Apply added in v1.4.0

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

Apply indicates an expected call of Apply.

func (*MockRunsMockRecorder) Cancel added in v1.4.0

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

Cancel indicates an expected call of Cancel.

func (*MockRunsMockRecorder) Create added in v1.4.0

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

Create indicates an expected call of Create.

func (*MockRunsMockRecorder) Discard added in v1.4.0

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

Discard indicates an expected call of Discard.

func (*MockRunsMockRecorder) ForceCancel added in v1.4.0

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

ForceCancel indicates an expected call of ForceCancel.

func (*MockRunsMockRecorder) List added in v1.4.0

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

List indicates an expected call of List.

func (*MockRunsMockRecorder) Read added in v1.4.0

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

Read indicates an expected call of Read.

func (*MockRunsMockRecorder) ReadWithOptions added in v1.4.0

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) 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) 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) Readme

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

Readme mocks base method.

func (*MockWorkspaces) RemoteStateConsumers

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

RemoteStateConsumers 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) 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) 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) 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) Readme

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

Readme indicates an expected call of Readme.

func (*MockWorkspacesMockRecorder) RemoteStateConsumers

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

RemoteStateConsumers indicates an expected call of RemoteStateConsumers.

func (*MockWorkspacesMockRecorder) RemoveRemoteStateConsumers

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

RemoveRemoteStateConsumers indicates an expected call of RemoveRemoteStateConsumers.

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 added in v1.4.0

type Plans interface {
	tfe.Plans
}

type Runs added in v1.4.0

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