Documentation ¶
Index ¶
- type MockBuild
- type MockedGoldenTFProvider
- func (p MockedGoldenTFProvider) Cleanup()
- func (p *MockedGoldenTFProvider) Name() string
- func (m *MockedGoldenTFProvider) ReadResource(args terraform.ReadResourceArgs) (*cty.Value, error)
- func (m *MockedGoldenTFProvider) Schema() map[string]providers.Schema
- func (p *MockedGoldenTFProvider) Version() string
- type ReadResource
- type StateVersions
- func (_m *StateVersions) Create(ctx context.Context, workspaceID string, options tfe.StateVersionCreateOptions) (*tfe.StateVersion, error)
- func (_m *StateVersions) Current(ctx context.Context, workspaceID string) (*tfe.StateVersion, error)
- func (_m *StateVersions) CurrentWithOptions(ctx context.Context, workspaceID string, ...) (*tfe.StateVersion, error)
- func (_m *StateVersions) Download(ctx context.Context, url string) ([]byte, error)
- func (_m *StateVersions) List(ctx context.Context, options tfe.StateVersionListOptions) (*tfe.StateVersionList, error)
- func (_m *StateVersions) Outputs(ctx context.Context, svID string, options tfe.StateVersionOutputsListOptions) ([]*tfe.StateVersionOutput, error)
- func (_m *StateVersions) Read(ctx context.Context, svID string) (*tfe.StateVersion, error)
- func (_m *StateVersions) ReadWithOptions(ctx context.Context, svID string, options *tfe.StateVersionReadOptions) (*tfe.StateVersion, error)
- type Workspaces
- func (_m *Workspaces) AddRemoteStateConsumers(ctx context.Context, workspaceID string, ...) error
- func (_m *Workspaces) AddTags(ctx context.Context, workspaceID string, options tfe.WorkspaceAddTagsOptions) error
- func (_m *Workspaces) AssignSSHKey(ctx context.Context, workspaceID string, ...) (*tfe.Workspace, error)
- func (_m *Workspaces) Create(ctx context.Context, organization string, options tfe.WorkspaceCreateOptions) (*tfe.Workspace, error)
- func (_m *Workspaces) Delete(ctx context.Context, organization string, workspace string) error
- func (_m *Workspaces) DeleteByID(ctx context.Context, workspaceID string) error
- func (_m *Workspaces) ForceUnlock(ctx context.Context, workspaceID string) (*tfe.Workspace, error)
- func (_m *Workspaces) List(ctx context.Context, organization string, options tfe.WorkspaceListOptions) (*tfe.WorkspaceList, error)
- func (_m *Workspaces) Lock(ctx context.Context, workspaceID string, options tfe.WorkspaceLockOptions) (*tfe.Workspace, error)
- func (_m *Workspaces) Read(ctx context.Context, organization string, workspace string) (*tfe.Workspace, error)
- func (_m *Workspaces) ReadByID(ctx context.Context, workspaceID string) (*tfe.Workspace, error)
- func (_m *Workspaces) ReadByIDWithOptions(ctx context.Context, workspaceID string, options *tfe.WorkspaceReadOptions) (*tfe.Workspace, error)
- func (_m *Workspaces) ReadWithOptions(ctx context.Context, organization string, workspace string, ...) (*tfe.Workspace, error)
- func (_m *Workspaces) Readme(ctx context.Context, workspaceID string) (io.Reader, error)
- func (_m *Workspaces) RemoteStateConsumers(ctx context.Context, workspaceID string, ...) (*tfe.WorkspaceList, error)
- func (_m *Workspaces) RemoveRemoteStateConsumers(ctx context.Context, workspaceID string, ...) error
- func (_m *Workspaces) RemoveTags(ctx context.Context, workspaceID string, ...) error
- func (_m *Workspaces) RemoveVCSConnection(ctx context.Context, organization string, workspace string) (*tfe.Workspace, error)
- func (_m *Workspaces) RemoveVCSConnectionByID(ctx context.Context, workspaceID string) (*tfe.Workspace, error)
- func (_m *Workspaces) Tags(ctx context.Context, workspaceID string, options tfe.WorkspaceTagListOptions) (*tfe.TagList, error)
- func (_m *Workspaces) UnassignSSHKey(ctx context.Context, workspaceID string) (*tfe.Workspace, error)
- func (_m *Workspaces) Unlock(ctx context.Context, workspaceID string) (*tfe.Workspace, error)
- func (_m *Workspaces) Update(ctx context.Context, organization string, workspace string, ...) (*tfe.Workspace, error)
- func (_m *Workspaces) UpdateByID(ctx context.Context, workspaceID string, options tfe.WorkspaceUpdateOptions) (*tfe.Workspace, error)
- func (_m *Workspaces) UpdateRemoteStateConsumers(ctx context.Context, workspaceID string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBuild ¶
func (MockBuild) IsUsageReportingEnabled ¶
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 (m *MockedGoldenTFProvider) Schema() map[string]providers.Schema
func (*MockedGoldenTFProvider) Version ¶
func (p *MockedGoldenTFProvider) Version() string
type ReadResource ¶
func (*ReadResource) MarshalJSON ¶
func (m *ReadResource) MarshalJSON() ([]byte, error)
func (*ReadResource) UnmarshalJSON ¶
func (m *ReadResource) UnmarshalJSON(bytes []byte) error
type StateVersions ¶
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) List ¶
func (_m *StateVersions) List(ctx context.Context, options tfe.StateVersionListOptions) (*tfe.StateVersionList, error)
List provides a mock function with given fields: ctx, options
func (*StateVersions) Outputs ¶
func (_m *StateVersions) Outputs(ctx context.Context, svID string, options tfe.StateVersionOutputsListOptions) ([]*tfe.StateVersionOutput, error)
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 ¶
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 ¶
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 ¶
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) 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) 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) 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