mocks

package
v0.26.4 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgoAPI

type ArgoAPI struct {
	mock.Mock
}

ArgoAPI is an autogenerated mock type for the ArgoAPI type

func (*ArgoAPI) CreateIntegration

func (_m *ArgoAPI) CreateIntegration(integration codefresh.IntegrationPayloadData) error

CreateIntegration provides a mock function with given fields: integration

func (*ArgoAPI) DeleteIntegrationByName

func (_m *ArgoAPI) DeleteIntegrationByName(name string) error

DeleteIntegrationByName provides a mock function with given fields: name

func (*ArgoAPI) GetIntegrationByName

func (_m *ArgoAPI) GetIntegrationByName(name string) (*codefresh.IntegrationPayload, error)

GetIntegrationByName provides a mock function with given fields: name

func (*ArgoAPI) GetIntegrations

func (_m *ArgoAPI) GetIntegrations() ([]*codefresh.IntegrationPayload, error)

GetIntegrations provides a mock function with given fields:

func (*ArgoAPI) HeartBeat

func (_m *ArgoAPI) HeartBeat(error string, version string, integration string) error

HeartBeat provides a mock function with given fields: error, version, integration

func (*ArgoAPI) SendResources

func (_m *ArgoAPI) SendResources(kind string, items interface{}, amount int, integration string) error

SendResources provides a mock function with given fields: kind, items, amount, integration

func (*ArgoAPI) UpdateIntegration

func (_m *ArgoAPI) UpdateIntegration(name string, integration codefresh.IntegrationPayloadData) error

UpdateIntegration provides a mock function with given fields: name, integration

type Codefresh

type Codefresh struct {
	mock.Mock
}

Codefresh is an autogenerated mock type for the Codefresh type

func (*Codefresh) Argo

func (_m *Codefresh) Argo() codefresh.ArgoAPI

Argo provides a mock function with given fields:

func (*Codefresh) ArgoRuntime

func (_m *Codefresh) ArgoRuntime() codefresh.IArgoRuntimeAPI

ArgoRuntime provides a mock function with given fields:

func (*Codefresh) Clusters

func (_m *Codefresh) Clusters() codefresh.IClusterAPI

Clusters provides a mock function with given fields:

func (*Codefresh) Contexts

func (_m *Codefresh) Contexts() codefresh.IContextAPI

Contexts provides a mock function with given fields:

func (*Codefresh) Gitops

func (_m *Codefresh) Gitops() codefresh.GitopsAPI

Gitops provides a mock function with given fields:

func (*Codefresh) Pipelines

func (_m *Codefresh) Pipelines() codefresh.IPipelineAPI

Pipelines provides a mock function with given fields:

func (*Codefresh) Progresses

func (_m *Codefresh) Progresses() codefresh.IProgressAPI

Progresses provides a mock function with given fields:

func (*Codefresh) RuntimeEnvironments

func (_m *Codefresh) RuntimeEnvironments() codefresh.IRuntimeEnvironmentAPI

RuntimeEnvironments provides a mock function with given fields:

func (*Codefresh) Tokens

func (_m *Codefresh) Tokens() codefresh.ITokenAPI

Tokens provides a mock function with given fields:

func (*Codefresh) Users

func (_m *Codefresh) Users() codefresh.UsersAPI

Users provides a mock function with given fields:

func (*Codefresh) Workflows

func (_m *Codefresh) Workflows() codefresh.IWorkflowAPI

Workflows provides a mock function with given fields:

type GitopsAPI

type GitopsAPI struct {
	mock.Mock
}

GitopsAPI is an autogenerated mock type for the GitopsAPI type

func (*GitopsAPI) CreateEnvironment

func (_m *GitopsAPI) CreateEnvironment(name string, project string, application string, integration string) error

CreateEnvironment provides a mock function with given fields: name, project, application, integration

func (*GitopsAPI) DeleteEnvironment

func (_m *GitopsAPI) DeleteEnvironment(name string) error

DeleteEnvironment provides a mock function with given fields: name

func (*GitopsAPI) GetEnvironments

func (_m *GitopsAPI) GetEnvironments() ([]codefresh.CFEnvironment, error)

GetEnvironments provides a mock function with given fields:

func (*GitopsAPI) SendApplicationResources

func (_m *GitopsAPI) SendApplicationResources(resources *codefresh.ApplicationResources) error

SendApplicationResources provides a mock function with given fields: resources

func (*GitopsAPI) SendEnvironment

func (_m *GitopsAPI) SendEnvironment(environment codefresh.Environment) (map[string]interface{}, error)

SendEnvironment provides a mock function with given fields: environment

func (*GitopsAPI) SendEvent

func (_m *GitopsAPI) SendEvent(name string, props map[string]string) error

SendEvent provides a mock function with given fields: name, props

type IArgoRuntimeAPI

type IArgoRuntimeAPI struct {
	mock.Mock
}

IArgoRuntimeAPI is an autogenerated mock type for the IArgoRuntimeAPI type

func (*IArgoRuntimeAPI) List

func (_m *IArgoRuntimeAPI) List() ([]model.Runtime, error)

List provides a mock function with given fields:

type IClusterAPI

type IClusterAPI struct {
	mock.Mock
}

IClusterAPI is an autogenerated mock type for the IClusterAPI type

func (*IClusterAPI) GetAccountClusters

func (_m *IClusterAPI) GetAccountClusters() ([]*codefresh.ClusterMinified, error)

GetAccountClusters provides a mock function with given fields:

func (*IClusterAPI) GetClusterCredentialsByAccountId

func (_m *IClusterAPI) GetClusterCredentialsByAccountId(selector string) (*codefresh.Cluster, error)

GetClusterCredentialsByAccountId provides a mock function with given fields: selector

type IContextAPI

type IContextAPI struct {
	mock.Mock
}

IContextAPI is an autogenerated mock type for the IContextAPI type

func (*IContextAPI) GetDefaultGitContext

func (_m *IContextAPI) GetDefaultGitContext() (error, *codefresh.ContextPayload)

GetDefaultGitContext provides a mock function with given fields:

func (*IContextAPI) GetGitContextByName

func (_m *IContextAPI) GetGitContextByName(name string) (error, *codefresh.ContextPayload)

GetGitContextByName provides a mock function with given fields: name

func (*IContextAPI) GetGitContexts

func (_m *IContextAPI) GetGitContexts() (error, *[]codefresh.ContextPayload)

GetGitContexts provides a mock function with given fields:

type IPipelineAPI

type IPipelineAPI struct {
	mock.Mock
}

IPipelineAPI is an autogenerated mock type for the IPipelineAPI type

func (*IPipelineAPI) List

func (_m *IPipelineAPI) List(qs map[string]string) ([]*codefresh.Pipeline, error)

List provides a mock function with given fields: qs

func (*IPipelineAPI) Run

func (_m *IPipelineAPI) Run(_a0 string, _a1 *codefresh.RunOptions) (string, error)

Run provides a mock function with given fields: _a0, _a1

type IProgressAPI

type IProgressAPI struct {
	mock.Mock
}

IProgressAPI is an autogenerated mock type for the IProgressAPI type

func (*IProgressAPI) Get

func (_m *IProgressAPI) Get(_a0 string) (*codefresh.Progress, error)

Get provides a mock function with given fields: _a0

type IRuntimeEnvironmentAPI

type IRuntimeEnvironmentAPI struct {
	mock.Mock
}

IRuntimeEnvironmentAPI is an autogenerated mock type for the IRuntimeEnvironmentAPI type

func (*IRuntimeEnvironmentAPI) Create

Create provides a mock function with given fields: _a0

func (*IRuntimeEnvironmentAPI) Default

func (_m *IRuntimeEnvironmentAPI) Default(_a0 string) (bool, error)

Default provides a mock function with given fields: _a0

func (*IRuntimeEnvironmentAPI) Delete

func (_m *IRuntimeEnvironmentAPI) Delete(_a0 string) (bool, error)

Delete provides a mock function with given fields: _a0

func (*IRuntimeEnvironmentAPI) Get

Get provides a mock function with given fields: _a0

func (*IRuntimeEnvironmentAPI) List

List provides a mock function with given fields:

func (*IRuntimeEnvironmentAPI) SignCertificate

func (_m *IRuntimeEnvironmentAPI) SignCertificate(_a0 *codefresh.SignCertificatesOptions) ([]byte, error)

SignCertificate provides a mock function with given fields: _a0

func (*IRuntimeEnvironmentAPI) Validate

Validate provides a mock function with given fields: _a0

type ITokenAPI

type ITokenAPI struct {
	mock.Mock
}

ITokenAPI is an autogenerated mock type for the ITokenAPI type

func (*ITokenAPI) Create

func (_m *ITokenAPI) Create(name string, subject string) (*codefresh.Token, error)

Create provides a mock function with given fields: name, subject

func (*ITokenAPI) List

func (_m *ITokenAPI) List() ([]*codefresh.Token, error)

List provides a mock function with given fields:

type IWorkflowAPI

type IWorkflowAPI struct {
	mock.Mock
}

IWorkflowAPI is an autogenerated mock type for the IWorkflowAPI type

func (*IWorkflowAPI) Get

func (_m *IWorkflowAPI) Get(_a0 string) (*codefresh.Workflow, error)

Get provides a mock function with given fields: _a0

func (*IWorkflowAPI) WaitForStatus

func (_m *IWorkflowAPI) WaitForStatus(_a0 string, _a1 string, _a2 time.Duration, _a3 time.Duration) error

WaitForStatus provides a mock function with given fields: _a0, _a1, _a2, _a3

type UsersAPI

type UsersAPI struct {
	mock.Mock
}

UsersAPI is an autogenerated mock type for the UsersAPI type

func (*UsersAPI) GetCurrent

func (_m *UsersAPI) GetCurrent(ctx context.Context) (*codefresh.User, error)

GetCurrent provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

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