mocks

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBuild

type MockBuild struct {
	Release        bool
	UsageReporting bool
}

func (MockBuild) IsRelease

func (m MockBuild) IsRelease() bool

func (MockBuild) IsUsageReportingEnabled

func (m MockBuild) IsUsageReportingEnabled() bool

type MockedGoldenTFProvider

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

func NewMockedGoldenTFProvider

func NewMockedGoldenTFProvider(name string, realProvider terraform.TerraformProvider, update bool) *MockedGoldenTFProvider

func (MockedGoldenTFProvider) Cleanup

func (p MockedGoldenTFProvider) Cleanup()

func (*MockedGoldenTFProvider) Name

func (p *MockedGoldenTFProvider) Name() string

func (*MockedGoldenTFProvider) ReadResource

func (m *MockedGoldenTFProvider) ReadResource(args terraform.ReadResourceArgs) (*cty.Value, error)

func (*MockedGoldenTFProvider) Schema

func (*MockedGoldenTFProvider) Version

func (p *MockedGoldenTFProvider) Version() string

type ReadResource

type ReadResource struct {
	Value *cty.Value
	Err   error
}

func (*ReadResource) MarshalJSON

func (m *ReadResource) MarshalJSON() ([]byte, error)

func (*ReadResource) UnmarshalJSON

func (m *ReadResource) UnmarshalJSON(bytes []byte) error

type StateVersions

type StateVersions struct {
	mock.Mock
}

StateVersions is an autogenerated mock type for the StateVersions type

func (*StateVersions) Create

func (_m *StateVersions) Create(ctx context.Context, workspaceID string, options tfe.StateVersionCreateOptions) (*tfe.StateVersion, error)

Create provides a mock function with given fields: ctx, workspaceID, options

func (*StateVersions) Current

func (_m *StateVersions) Current(ctx context.Context, workspaceID string) (*tfe.StateVersion, error)

Current provides a mock function with given fields: ctx, workspaceID

func (*StateVersions) CurrentWithOptions

func (_m *StateVersions) CurrentWithOptions(ctx context.Context, workspaceID string, options *tfe.StateVersionCurrentOptions) (*tfe.StateVersion, error)

CurrentWithOptions provides a mock function with given fields: ctx, workspaceID, options

func (*StateVersions) Download

func (_m *StateVersions) Download(ctx context.Context, url string) ([]byte, error)

Download provides a mock function with given fields: ctx, url

func (*StateVersions) List

List provides a mock function with given fields: ctx, options

func (*StateVersions) Outputs

Outputs provides a mock function with given fields: ctx, svID, options

func (*StateVersions) Read

func (_m *StateVersions) Read(ctx context.Context, svID string) (*tfe.StateVersion, error)

Read provides a mock function with given fields: ctx, svID

func (*StateVersions) ReadWithOptions

func (_m *StateVersions) ReadWithOptions(ctx context.Context, svID string, options *tfe.StateVersionReadOptions) (*tfe.StateVersion, error)

ReadWithOptions provides a mock function with given fields: ctx, svID, options

type Workspaces

type Workspaces struct {
	mock.Mock
}

Workspaces is an autogenerated mock type for the Workspaces type

func (*Workspaces) AddRemoteStateConsumers

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

AddRemoteStateConsumers provides a mock function with given fields: ctx, workspaceID, options

func (*Workspaces) AddTags

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

AddTags provides a mock function with given fields: ctx, workspaceID, options

func (*Workspaces) AssignSSHKey

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

AssignSSHKey provides a mock function with given fields: ctx, workspaceID, options

func (*Workspaces) Create

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

Create provides a mock function with given fields: ctx, organization, options

func (*Workspaces) Delete

func (_m *Workspaces) Delete(ctx context.Context, organization string, workspace string) error

Delete provides a mock function with given fields: ctx, organization, workspace

func (*Workspaces) DeleteByID

func (_m *Workspaces) DeleteByID(ctx context.Context, workspaceID string) error

DeleteByID provides a mock function with given fields: ctx, workspaceID

func (*Workspaces) ForceUnlock

func (_m *Workspaces) ForceUnlock(ctx context.Context, workspaceID string) (*tfe.Workspace, error)

ForceUnlock provides a mock function with given fields: ctx, workspaceID

func (*Workspaces) List

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

List provides a mock function with given fields: ctx, organization, options

func (*Workspaces) Lock

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

Lock provides a mock function with given fields: ctx, workspaceID, options

func (*Workspaces) Read

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

Read provides a mock function with given fields: ctx, organization, workspace

func (*Workspaces) ReadByID

func (_m *Workspaces) ReadByID(ctx context.Context, workspaceID string) (*tfe.Workspace, error)

ReadByID provides a mock function with given fields: ctx, workspaceID

func (*Workspaces) ReadByIDWithOptions

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

ReadByIDWithOptions provides a mock function with given fields: ctx, workspaceID, options

func (*Workspaces) ReadWithOptions

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

ReadWithOptions provides a mock function with given fields: ctx, organization, workspace, options

func (*Workspaces) Readme

func (_m *Workspaces) Readme(ctx context.Context, workspaceID string) (io.Reader, error)

Readme provides a mock function with given fields: ctx, workspaceID

func (*Workspaces) RemoteStateConsumers

func (_m *Workspaces) RemoteStateConsumers(ctx context.Context, workspaceID string, options *tfe.RemoteStateConsumersListOptions) (*tfe.WorkspaceList, error)

RemoteStateConsumers provides a mock function with given fields: ctx, workspaceID, options

func (*Workspaces) RemoveRemoteStateConsumers

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

RemoveRemoteStateConsumers provides a mock function with given fields: ctx, workspaceID, options

func (*Workspaces) RemoveTags

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

RemoveTags provides a mock function with given fields: ctx, workspaceID, options

func (*Workspaces) RemoveVCSConnection

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

RemoveVCSConnection provides a mock function with given fields: ctx, organization, workspace

func (*Workspaces) RemoveVCSConnectionByID

func (_m *Workspaces) RemoveVCSConnectionByID(ctx context.Context, workspaceID string) (*tfe.Workspace, error)

RemoveVCSConnectionByID provides a mock function with given fields: ctx, workspaceID

func (*Workspaces) Tags

func (_m *Workspaces) Tags(ctx context.Context, workspaceID string, options tfe.WorkspaceTagListOptions) (*tfe.TagList, error)

Tags provides a mock function with given fields: ctx, workspaceID, options

func (*Workspaces) UnassignSSHKey

func (_m *Workspaces) UnassignSSHKey(ctx context.Context, workspaceID string) (*tfe.Workspace, error)

UnassignSSHKey provides a mock function with given fields: ctx, workspaceID

func (*Workspaces) Unlock

func (_m *Workspaces) Unlock(ctx context.Context, workspaceID string) (*tfe.Workspace, error)

Unlock provides a mock function with given fields: ctx, workspaceID

func (*Workspaces) Update

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

Update provides a mock function with given fields: ctx, organization, workspace, options

func (*Workspaces) UpdateByID

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

UpdateByID provides a mock function with given fields: ctx, workspaceID, options

func (*Workspaces) UpdateRemoteStateConsumers

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

UpdateRemoteStateConsumers provides a mock function with given fields: ctx, workspaceID, options

Jump to

Keyboard shortcuts

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