Documentation
¶
Index ¶
- type ArgoAPI
- func (_m *ArgoAPI) CreateIntegration(integration codefresh.IntegrationPayloadData) error
- func (_m *ArgoAPI) DeleteIntegrationByName(name string) error
- func (_m *ArgoAPI) GetIntegrationByName(name string) (*codefresh.IntegrationPayload, error)
- func (_m *ArgoAPI) GetIntegrations() ([]*codefresh.IntegrationPayload, error)
- func (_m *ArgoAPI) HeartBeat(error string, version string, integration string) error
- func (_m *ArgoAPI) SendResources(kind string, items interface{}, amount int, integration string) error
- func (_m *ArgoAPI) UpdateIntegration(name string, integration codefresh.IntegrationPayloadData) error
- type Codefresh
- func (_m *Codefresh) Argo() codefresh.ArgoAPI
- func (_m *Codefresh) ArgoRuntime() codefresh.IArgoRuntimeAPI
- func (_m *Codefresh) Clusters() codefresh.IClusterAPI
- func (_m *Codefresh) Contexts() codefresh.IContextAPI
- func (_m *Codefresh) Gitops() codefresh.GitopsAPI
- func (_m *Codefresh) Pipelines() codefresh.IPipelineAPI
- func (_m *Codefresh) Progresses() codefresh.IProgressAPI
- func (_m *Codefresh) RuntimeEnvironments() codefresh.IRuntimeEnvironmentAPI
- func (_m *Codefresh) Tokens() codefresh.ITokenAPI
- func (_m *Codefresh) Users() codefresh.UsersAPI
- func (_m *Codefresh) Workflows() codefresh.IWorkflowAPI
- type GitopsAPI
- func (_m *GitopsAPI) CreateEnvironment(name string, project string, application string, integration string) error
- func (_m *GitopsAPI) DeleteEnvironment(name string) error
- func (_m *GitopsAPI) GetEnvironments() ([]codefresh.CFEnvironment, error)
- func (_m *GitopsAPI) SendApplicationResources(resources *codefresh.ApplicationResources) error
- func (_m *GitopsAPI) SendEnvironment(environment codefresh.Environment) (map[string]interface{}, error)
- func (_m *GitopsAPI) SendEvent(name string, props map[string]string) error
- type IArgoRuntimeAPI
- type IClusterAPI
- type IContextAPI
- type IPipelineAPI
- type IProgressAPI
- type IRuntimeEnvironmentAPI
- func (_m *IRuntimeEnvironmentAPI) Create(_a0 *codefresh.CreateRuntimeOptions) (*codefresh.RuntimeEnvironment, error)
- func (_m *IRuntimeEnvironmentAPI) Default(_a0 string) (bool, error)
- func (_m *IRuntimeEnvironmentAPI) Delete(_a0 string) (bool, error)
- func (_m *IRuntimeEnvironmentAPI) Get(_a0 string) (*codefresh.RuntimeEnvironment, error)
- func (_m *IRuntimeEnvironmentAPI) List() ([]*codefresh.RuntimeEnvironment, error)
- func (_m *IRuntimeEnvironmentAPI) SignCertificate(_a0 *codefresh.SignCertificatesOptions) ([]byte, error)
- func (_m *IRuntimeEnvironmentAPI) Validate(_a0 *codefresh.ValidateRuntimeOptions) error
- type ITokenAPI
- type IWorkflowAPI
- type UsersAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArgoAPI ¶
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 ¶
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 ¶
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 ¶
Codefresh is an autogenerated mock type for the Codefresh type
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) 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) Workflows ¶
func (_m *Codefresh) Workflows() codefresh.IWorkflowAPI
Workflows provides a mock function with given fields:
type GitopsAPI ¶
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 ¶
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
type IArgoRuntimeAPI ¶
IArgoRuntimeAPI is an autogenerated mock type for the IArgoRuntimeAPI type
type IClusterAPI ¶
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 ¶
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 ¶
IPipelineAPI is an autogenerated mock type for the IPipelineAPI type
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 ¶
IProgressAPI is an autogenerated mock type for the IProgressAPI type
type IRuntimeEnvironmentAPI ¶
IRuntimeEnvironmentAPI is an autogenerated mock type for the IRuntimeEnvironmentAPI type
func (*IRuntimeEnvironmentAPI) Create ¶
func (_m *IRuntimeEnvironmentAPI) Create(_a0 *codefresh.CreateRuntimeOptions) (*codefresh.RuntimeEnvironment, error)
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 ¶
func (_m *IRuntimeEnvironmentAPI) Get(_a0 string) (*codefresh.RuntimeEnvironment, error)
Get provides a mock function with given fields: _a0
func (*IRuntimeEnvironmentAPI) List ¶
func (_m *IRuntimeEnvironmentAPI) List() ([]*codefresh.RuntimeEnvironment, error)
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 ¶
func (_m *IRuntimeEnvironmentAPI) Validate(_a0 *codefresh.ValidateRuntimeOptions) error
Validate provides a mock function with given fields: _a0
type ITokenAPI ¶
ITokenAPI is an autogenerated mock type for the ITokenAPI type
type IWorkflowAPI ¶
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