mock

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockContexts

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

MockContexts is a mock of Contexts interface.

func NewMockContexts

func NewMockContexts(ctrl *gomock.Controller) *MockContexts

NewMockContexts creates a new mock instance.

func (*MockContexts) AddOrUpdateVariable

func (m *MockContexts) AddOrUpdateVariable(ctx context.Context, contextID, variableName string, options circleci.ContextAddOrUpdateVariableOptions) (*circleci.ContextVariable, error)

AddOrUpdateVariable mocks base method.

func (*MockContexts) Create

Create mocks base method.

func (*MockContexts) Delete

func (m *MockContexts) Delete(ctx context.Context, contextID string) error

Delete mocks base method.

func (*MockContexts) EXPECT

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

func (*MockContexts) Get

func (m *MockContexts) Get(ctx context.Context, contextID string) (*circleci.Context, error)

Get mocks base method.

func (*MockContexts) List

List mocks base method.

func (*MockContexts) ListVariables

func (m *MockContexts) ListVariables(ctx context.Context, contextID string) (*circleci.ContextVariableList, error)

ListVariables mocks base method.

func (*MockContexts) RemoveVariable

func (m *MockContexts) RemoveVariable(ctx context.Context, contextID, variableName string) error

RemoveVariable mocks base method.

type MockContextsMockRecorder

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

MockContextsMockRecorder is the mock recorder for MockContexts.

func (*MockContextsMockRecorder) AddOrUpdateVariable

func (mr *MockContextsMockRecorder) AddOrUpdateVariable(ctx, contextID, variableName, options interface{}) *gomock.Call

AddOrUpdateVariable indicates an expected call of AddOrUpdateVariable.

func (*MockContextsMockRecorder) Create

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

Create indicates an expected call of Create.

func (*MockContextsMockRecorder) Delete

func (mr *MockContextsMockRecorder) Delete(ctx, contextID interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockContextsMockRecorder) Get

func (mr *MockContextsMockRecorder) Get(ctx, contextID interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockContextsMockRecorder) List

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

List indicates an expected call of List.

func (*MockContextsMockRecorder) ListVariables

func (mr *MockContextsMockRecorder) ListVariables(ctx, contextID interface{}) *gomock.Call

ListVariables indicates an expected call of ListVariables.

func (*MockContextsMockRecorder) RemoveVariable

func (mr *MockContextsMockRecorder) RemoveVariable(ctx, contextID, variableName interface{}) *gomock.Call

RemoveVariable indicates an expected call of RemoveVariable.

type MockInsights

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

MockInsights is a mock of Insights interface.

func NewMockInsights

func NewMockInsights(ctrl *gomock.Controller) *MockInsights

NewMockInsights creates a new mock instance.

func (*MockInsights) EXPECT

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

func (*MockInsights) GetTestMetricsForWorkflows

func (m *MockInsights) GetTestMetricsForWorkflows(ctx context.Context, projectSlug, workflowName string, options circleci.InsightsGetTestMetricsOptions) (*circleci.TestMetrics, error)

GetTestMetricsForWorkflows mocks base method.

func (*MockInsights) ListSummaryMetricsForWorkflowJobs

func (m *MockInsights) ListSummaryMetricsForWorkflowJobs(ctx context.Context, projectSlug, workflowName string, options circleci.InsightsListSummaryMetricsOptions) (*circleci.SummaryMetricsList, error)

ListSummaryMetricsForWorkflowJobs mocks base method.

func (*MockInsights) ListSummaryMetricsForWorkflows

func (m *MockInsights) ListSummaryMetricsForWorkflows(ctx context.Context, projectSlug string, options circleci.InsightsListSummaryMetricsOptions) (*circleci.SummaryMetricsList, error)

ListSummaryMetricsForWorkflows mocks base method.

func (*MockInsights) ListWorkflowJobRuns

func (m *MockInsights) ListWorkflowJobRuns(ctx context.Context, projectSlug, workflowName, jobName string, options circleci.InsightsListWorkflowRunsOptions) (*circleci.WorkflowRunList, error)

ListWorkflowJobRuns mocks base method.

func (*MockInsights) ListWorkflowRuns

func (m *MockInsights) ListWorkflowRuns(ctx context.Context, projectSlug, workflowName string, options circleci.InsightsListWorkflowRunsOptions) (*circleci.WorkflowRunList, error)

ListWorkflowRuns mocks base method.

type MockInsightsMockRecorder

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

MockInsightsMockRecorder is the mock recorder for MockInsights.

func (*MockInsightsMockRecorder) GetTestMetricsForWorkflows

func (mr *MockInsightsMockRecorder) GetTestMetricsForWorkflows(ctx, projectSlug, workflowName, options interface{}) *gomock.Call

GetTestMetricsForWorkflows indicates an expected call of GetTestMetricsForWorkflows.

func (*MockInsightsMockRecorder) ListSummaryMetricsForWorkflowJobs

func (mr *MockInsightsMockRecorder) ListSummaryMetricsForWorkflowJobs(ctx, projectSlug, workflowName, options interface{}) *gomock.Call

ListSummaryMetricsForWorkflowJobs indicates an expected call of ListSummaryMetricsForWorkflowJobs.

func (*MockInsightsMockRecorder) ListSummaryMetricsForWorkflows

func (mr *MockInsightsMockRecorder) ListSummaryMetricsForWorkflows(ctx, projectSlug, options interface{}) *gomock.Call

ListSummaryMetricsForWorkflows indicates an expected call of ListSummaryMetricsForWorkflows.

func (*MockInsightsMockRecorder) ListWorkflowJobRuns

func (mr *MockInsightsMockRecorder) ListWorkflowJobRuns(ctx, projectSlug, workflowName, jobName, options interface{}) *gomock.Call

ListWorkflowJobRuns indicates an expected call of ListWorkflowJobRuns.

func (*MockInsightsMockRecorder) ListWorkflowRuns

func (mr *MockInsightsMockRecorder) ListWorkflowRuns(ctx, projectSlug, workflowName, options interface{}) *gomock.Call

ListWorkflowRuns indicates an expected call of ListWorkflowRuns.

type MockJobs

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

MockJobs is a mock of Jobs interface.

func NewMockJobs

func NewMockJobs(ctrl *gomock.Controller) *MockJobs

NewMockJobs creates a new mock instance.

func (*MockJobs) Cancel

func (m *MockJobs) Cancel(ctx context.Context, projectSlug, jobNumber string) error

Cancel mocks base method.

func (*MockJobs) EXPECT

func (m *MockJobs) EXPECT() *MockJobsMockRecorder

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

func (*MockJobs) Get

func (m *MockJobs) Get(ctx context.Context, projectSlug, jobNumber string) (*circleci.Job, error)

Get mocks base method.

func (*MockJobs) ListArtifacts

func (m *MockJobs) ListArtifacts(ctx context.Context, projectSlug, jobNumber string) (*circleci.ArtifactList, error)

ListArtifacts mocks base method.

func (*MockJobs) ListTestMetadata

func (m *MockJobs) ListTestMetadata(ctx context.Context, projectSlug, jobNumber string) (*circleci.TestMetadataList, error)

ListTestMetadata mocks base method.

type MockJobsMockRecorder

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

MockJobsMockRecorder is the mock recorder for MockJobs.

func (*MockJobsMockRecorder) Cancel

func (mr *MockJobsMockRecorder) Cancel(ctx, projectSlug, jobNumber interface{}) *gomock.Call

Cancel indicates an expected call of Cancel.

func (*MockJobsMockRecorder) Get

func (mr *MockJobsMockRecorder) Get(ctx, projectSlug, jobNumber interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockJobsMockRecorder) ListArtifacts

func (mr *MockJobsMockRecorder) ListArtifacts(ctx, projectSlug, jobNumber interface{}) *gomock.Call

ListArtifacts indicates an expected call of ListArtifacts.

func (*MockJobsMockRecorder) ListTestMetadata

func (mr *MockJobsMockRecorder) ListTestMetadata(ctx, projectSlug, jobNumber interface{}) *gomock.Call

ListTestMetadata indicates an expected call of ListTestMetadata.

type MockPipelines

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

MockPipelines is a mock of Pipelines interface.

func NewMockPipelines

func NewMockPipelines(ctrl *gomock.Controller) *MockPipelines

NewMockPipelines creates a new mock instance.

func (*MockPipelines) Continue

Continue mocks base method.

func (*MockPipelines) EXPECT

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

func (*MockPipelines) Get

func (m *MockPipelines) Get(ctx context.Context, pipelineID string) (*circleci.Pipeline, error)

Get mocks base method.

func (*MockPipelines) GetConfig

func (m *MockPipelines) GetConfig(ctx context.Context, pipelineID string) (*circleci.PipelineConfig, error)

GetConfig mocks base method.

func (*MockPipelines) List

List mocks base method.

func (*MockPipelines) ListWorkflows

func (m *MockPipelines) ListWorkflows(ctx context.Context, pipelineID string, options circleci.PipelineListWorkflowsOptions) (*circleci.WorkflowList, error)

ListWorkflows mocks base method.

type MockPipelinesMockRecorder

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

MockPipelinesMockRecorder is the mock recorder for MockPipelines.

func (*MockPipelinesMockRecorder) Continue

func (mr *MockPipelinesMockRecorder) Continue(ctx, options interface{}) *gomock.Call

Continue indicates an expected call of Continue.

func (*MockPipelinesMockRecorder) Get

func (mr *MockPipelinesMockRecorder) Get(ctx, pipelineID interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockPipelinesMockRecorder) GetConfig

func (mr *MockPipelinesMockRecorder) GetConfig(ctx, pipelineID interface{}) *gomock.Call

GetConfig indicates an expected call of GetConfig.

func (*MockPipelinesMockRecorder) List

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

List indicates an expected call of List.

func (*MockPipelinesMockRecorder) ListWorkflows

func (mr *MockPipelinesMockRecorder) ListWorkflows(ctx, pipelineID, options interface{}) *gomock.Call

ListWorkflows indicates an expected call of ListWorkflows.

type MockProjects

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

MockProjects is a mock of Projects interface.

func NewMockProjects

func NewMockProjects(ctrl *gomock.Controller) *MockProjects

NewMockProjects creates a new mock instance.

func (*MockProjects) CreateCheckoutKey

func (m *MockProjects) CreateCheckoutKey(ctx context.Context, projectSlug string, options circleci.ProjectCreateCheckoutKeyOptions) (*circleci.ProjectCheckoutKey, error)

CreateCheckoutKey mocks base method.

func (*MockProjects) CreateVariable

func (m *MockProjects) CreateVariable(ctx context.Context, projectSlug string, options circleci.ProjectCreateVariableOptions) (*circleci.ProjectVariable, error)

CreateVariable mocks base method.

func (*MockProjects) DeleteCheckoutKey

func (m *MockProjects) DeleteCheckoutKey(ctx context.Context, projectSlug, fingerprint string) error

DeleteCheckoutKey mocks base method.

func (*MockProjects) DeleteVariable

func (m *MockProjects) DeleteVariable(ctx context.Context, projectSlug, name string) error

DeleteVariable mocks base method.

func (*MockProjects) EXPECT

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

func (*MockProjects) Get

func (m *MockProjects) Get(ctx context.Context, projectSlug string) (*circleci.Project, error)

Get mocks base method.

func (*MockProjects) GetCheckoutKey

func (m *MockProjects) GetCheckoutKey(ctx context.Context, projectSlug, fingerprint string) (*circleci.ProjectCheckoutKey, error)

GetCheckoutKey mocks base method.

func (*MockProjects) GetPipeline

func (m *MockProjects) GetPipeline(ctx context.Context, projectSlug, pipelineNumber string) (*circleci.Pipeline, error)

GetPipeline mocks base method.

func (*MockProjects) GetVariable

func (m *MockProjects) GetVariable(ctx context.Context, projectSlug, name string) (*circleci.ProjectVariable, error)

GetVariable mocks base method.

func (*MockProjects) ListCheckoutKeys

ListCheckoutKeys mocks base method.

func (*MockProjects) ListMyPipelines

func (m *MockProjects) ListMyPipelines(ctx context.Context, projectSlug string, options circleci.ProjectListMyPipelinesOptions) (*circleci.PipelineList, error)

ListMyPipelines mocks base method.

func (*MockProjects) ListPipelines

func (m *MockProjects) ListPipelines(ctx context.Context, projectSlug string, options circleci.ProjectListPipelinesOptions) (*circleci.PipelineList, error)

ListPipelines mocks base method.

func (*MockProjects) ListVariables

ListVariables mocks base method.

func (*MockProjects) TriggerPipeline

func (m *MockProjects) TriggerPipeline(ctx context.Context, projectSlug string, options circleci.ProjectTriggerPipelineOptions) (*circleci.Pipeline, error)

TriggerPipeline mocks base method.

type MockProjectsMockRecorder

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

MockProjectsMockRecorder is the mock recorder for MockProjects.

func (*MockProjectsMockRecorder) CreateCheckoutKey

func (mr *MockProjectsMockRecorder) CreateCheckoutKey(ctx, projectSlug, options interface{}) *gomock.Call

CreateCheckoutKey indicates an expected call of CreateCheckoutKey.

func (*MockProjectsMockRecorder) CreateVariable

func (mr *MockProjectsMockRecorder) CreateVariable(ctx, projectSlug, options interface{}) *gomock.Call

CreateVariable indicates an expected call of CreateVariable.

func (*MockProjectsMockRecorder) DeleteCheckoutKey

func (mr *MockProjectsMockRecorder) DeleteCheckoutKey(ctx, projectSlug, fingerprint interface{}) *gomock.Call

DeleteCheckoutKey indicates an expected call of DeleteCheckoutKey.

func (*MockProjectsMockRecorder) DeleteVariable

func (mr *MockProjectsMockRecorder) DeleteVariable(ctx, projectSlug, name interface{}) *gomock.Call

DeleteVariable indicates an expected call of DeleteVariable.

func (*MockProjectsMockRecorder) Get

func (mr *MockProjectsMockRecorder) Get(ctx, projectSlug interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockProjectsMockRecorder) GetCheckoutKey

func (mr *MockProjectsMockRecorder) GetCheckoutKey(ctx, projectSlug, fingerprint interface{}) *gomock.Call

GetCheckoutKey indicates an expected call of GetCheckoutKey.

func (*MockProjectsMockRecorder) GetPipeline

func (mr *MockProjectsMockRecorder) GetPipeline(ctx, projectSlug, pipelineNumber interface{}) *gomock.Call

GetPipeline indicates an expected call of GetPipeline.

func (*MockProjectsMockRecorder) GetVariable

func (mr *MockProjectsMockRecorder) GetVariable(ctx, projectSlug, name interface{}) *gomock.Call

GetVariable indicates an expected call of GetVariable.

func (*MockProjectsMockRecorder) ListCheckoutKeys

func (mr *MockProjectsMockRecorder) ListCheckoutKeys(ctx, projectSlug, options interface{}) *gomock.Call

ListCheckoutKeys indicates an expected call of ListCheckoutKeys.

func (*MockProjectsMockRecorder) ListMyPipelines

func (mr *MockProjectsMockRecorder) ListMyPipelines(ctx, projectSlug, options interface{}) *gomock.Call

ListMyPipelines indicates an expected call of ListMyPipelines.

func (*MockProjectsMockRecorder) ListPipelines

func (mr *MockProjectsMockRecorder) ListPipelines(ctx, projectSlug, options interface{}) *gomock.Call

ListPipelines indicates an expected call of ListPipelines.

func (*MockProjectsMockRecorder) ListVariables

func (mr *MockProjectsMockRecorder) ListVariables(ctx, projectSlug, options interface{}) *gomock.Call

ListVariables indicates an expected call of ListVariables.

func (*MockProjectsMockRecorder) TriggerPipeline

func (mr *MockProjectsMockRecorder) TriggerPipeline(ctx, projectSlug, options interface{}) *gomock.Call

TriggerPipeline indicates an expected call of TriggerPipeline.

type MockUsers

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

MockUsers is a mock of Users interface.

func NewMockUsers

func NewMockUsers(ctrl *gomock.Controller) *MockUsers

NewMockUsers creates a new mock instance.

func (*MockUsers) Collaborations

func (m *MockUsers) Collaborations(ctx context.Context) ([]*circleci.Collaboration, error)

Collaborations mocks base method.

func (*MockUsers) EXPECT

func (m *MockUsers) EXPECT() *MockUsersMockRecorder

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

func (*MockUsers) GetUser

func (m *MockUsers) GetUser(ctx context.Context, id string) (*circleci.User, error)

GetUser mocks base method.

func (*MockUsers) Me

func (m *MockUsers) Me(ctx context.Context) (*circleci.User, error)

Me mocks base method.

type MockUsersMockRecorder

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

MockUsersMockRecorder is the mock recorder for MockUsers.

func (*MockUsersMockRecorder) Collaborations

func (mr *MockUsersMockRecorder) Collaborations(ctx interface{}) *gomock.Call

Collaborations indicates an expected call of Collaborations.

func (*MockUsersMockRecorder) GetUser

func (mr *MockUsersMockRecorder) GetUser(ctx, id interface{}) *gomock.Call

GetUser indicates an expected call of GetUser.

func (*MockUsersMockRecorder) Me

func (mr *MockUsersMockRecorder) Me(ctx interface{}) *gomock.Call

Me indicates an expected call of Me.

type MockWorkflows

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

MockWorkflows is a mock of Workflows interface.

func NewMockWorkflows

func NewMockWorkflows(ctrl *gomock.Controller) *MockWorkflows

NewMockWorkflows creates a new mock instance.

func (*MockWorkflows) ApproveJob

func (m *MockWorkflows) ApproveJob(ctx context.Context, id, approvalRequestID string) error

ApproveJob mocks base method.

func (*MockWorkflows) Cancel

func (m *MockWorkflows) Cancel(ctx context.Context, id string) error

Cancel mocks base method.

func (*MockWorkflows) EXPECT

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

func (*MockWorkflows) Get

Get mocks base method.

func (*MockWorkflows) ListWorkflowJobs

func (m *MockWorkflows) ListWorkflowJobs(ctx context.Context, id string) (*circleci.WorkflowJobList, error)

ListWorkflowJobs mocks base method.

func (*MockWorkflows) Rerun

Rerun mocks base method.

type MockWorkflowsMockRecorder

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

MockWorkflowsMockRecorder is the mock recorder for MockWorkflows.

func (*MockWorkflowsMockRecorder) ApproveJob

func (mr *MockWorkflowsMockRecorder) ApproveJob(ctx, id, approvalRequestID interface{}) *gomock.Call

ApproveJob indicates an expected call of ApproveJob.

func (*MockWorkflowsMockRecorder) Cancel

func (mr *MockWorkflowsMockRecorder) Cancel(ctx, id interface{}) *gomock.Call

Cancel indicates an expected call of Cancel.

func (*MockWorkflowsMockRecorder) Get

func (mr *MockWorkflowsMockRecorder) Get(ctx, id interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockWorkflowsMockRecorder) ListWorkflowJobs

func (mr *MockWorkflowsMockRecorder) ListWorkflowJobs(ctx, id interface{}) *gomock.Call

ListWorkflowJobs indicates an expected call of ListWorkflowJobs.

func (*MockWorkflowsMockRecorder) Rerun

func (mr *MockWorkflowsMockRecorder) Rerun(ctx, id, options interface{}) *gomock.Call

Rerun indicates an expected call of Rerun.

Jump to

Keyboard shortcuts

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