mocks

package
v0.2.1-beta Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigurationVersions

type ConfigurationVersions struct {
	mock.Mock
}

ConfigurationVersions is an autogenerated mock type for the ConfigurationVersions type

func (*ConfigurationVersions) Create

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

func (*ConfigurationVersions) List

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

func (*ConfigurationVersions) Read

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

func (*ConfigurationVersions) Upload

func (_m *ConfigurationVersions) Upload(ctx context.Context, url string, path string) error

Upload provides a mock function with given fields: ctx, url, path

type EventRecorder

type EventRecorder struct {
	mock.Mock
}

EventRecorder is an autogenerated mock type for the EventRecorder type

func (*EventRecorder) AnnotatedEventf

func (_m *EventRecorder) AnnotatedEventf(object runtime.Object, annotations map[string]string, eventtype string, reason string, messageFmt string, args ...interface{})

AnnotatedEventf provides a mock function with given fields: object, annotations, eventtype, reason, messageFmt, args

func (*EventRecorder) Event

func (_m *EventRecorder) Event(object runtime.Object, eventtype string, reason string, message string)

Event provides a mock function with given fields: object, eventtype, reason, message

func (*EventRecorder) Eventf

func (_m *EventRecorder) Eventf(object runtime.Object, eventtype string, reason string, messageFmt string, args ...interface{})

Eventf provides a mock function with given fields: object, eventtype, reason, messageFmt, args

type Organizations

type Organizations struct {
	mock.Mock
}

Organizations is an autogenerated mock type for the Organizations type

func (*Organizations) Capacity

func (_m *Organizations) Capacity(ctx context.Context, organization string) (*tfe.Capacity, error)

Capacity provides a mock function with given fields: ctx, organization

func (*Organizations) Create

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

func (*Organizations) Delete

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

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

func (*Organizations) Entitlements

func (_m *Organizations) Entitlements(ctx context.Context, organization string) (*tfe.Entitlements, error)

Entitlements provides a mock function with given fields: ctx, organization

func (*Organizations) List

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

func (*Organizations) Read

func (_m *Organizations) Read(ctx context.Context, organization string) (*tfe.Organization, error)

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

func (*Organizations) RunQueue

func (_m *Organizations) RunQueue(ctx context.Context, organization string, options tfe.RunQueueOptions) (*tfe.RunQueue, error)

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

func (*Organizations) Update

func (_m *Organizations) Update(ctx context.Context, organization string, options tfe.OrganizationUpdateOptions) (*tfe.Organization, error)

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

type Runs

type Runs struct {
	mock.Mock
}

Runs is an autogenerated mock type for the Runs type

func (*Runs) Apply

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

Apply provides a mock function with given fields: ctx, runID, options

func (*Runs) Cancel

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

Cancel provides a mock function with given fields: ctx, runID, options

func (*Runs) Create

func (_m *Runs) Create(ctx context.Context, options tfe.RunCreateOptions) (*tfe.Run, error)

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

func (*Runs) Discard

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

Discard provides a mock function with given fields: ctx, runID, options

func (*Runs) ForceCancel

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

ForceCancel provides a mock function with given fields: ctx, runID, options

func (*Runs) List

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

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

func (*Runs) Read

func (_m *Runs) Read(ctx context.Context, runID string) (*tfe.Run, error)

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

type Variables

type Variables struct {
	mock.Mock
}

Variables is an autogenerated mock type for the Variables type

func (*Variables) Create

func (_m *Variables) Create(ctx context.Context, workspaceID string, options tfe.VariableCreateOptions) (*tfe.Variable, error)

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

func (*Variables) Delete

func (_m *Variables) Delete(ctx context.Context, workspaceID string, variableID string) error

Delete provides a mock function with given fields: ctx, workspaceID, variableID

func (*Variables) List

func (_m *Variables) List(ctx context.Context, workspaceID string, options tfe.VariableListOptions) (*tfe.VariableList, error)

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

func (*Variables) Read

func (_m *Variables) Read(ctx context.Context, workspaceID string, variableID string) (*tfe.Variable, error)

Read provides a mock function with given fields: ctx, workspaceID, variableID

func (*Variables) Update

func (_m *Variables) Update(ctx context.Context, workspaceID string, variableID string, options tfe.VariableUpdateOptions) (*tfe.Variable, error)

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

type Workspaces

type Workspaces struct {
	mock.Mock
}

Workspaces is an autogenerated mock type for the Workspaces type

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, _a2 string) error

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

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, _a2 string) (*tfe.Workspace, error)

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

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

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

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

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) 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, _a2 string, options tfe.WorkspaceUpdateOptions) (*tfe.Workspace, error)

Update provides a mock function with given fields: ctx, organization, _a2, 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

Jump to

Keyboard shortcuts

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