Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent interface { Get(companyId string) (httpCode int, body interface{}) GetTerminalByName(name string) (httpCode int, body interface{}) Store(agent interface{}, name string) (httpCode int, error error) }
Agent operations
type Bitbucket ¶
type Bitbucket interface { ListenEvent(payload interface{}, companyId string) error GetBranches(url, repositoryId, companyId string) (httpCode int, body interface{}) GetCommitByBranch(url, repoId, branch, companyId string, option v1.Pagination) (httpCode int, body interface{}) EnableWebhook(companyId, repoId, url string) (httpCode int, err error) DisableWebhook(companyId, repoId, url, webhookId string) (httpCode int, err error) }
type Company ¶
type Company interface { GetById(headers map[string]string, id, action string, option v1.CompanyQueryOption) (httpCode int, body interface{}) Get(option v1.CompanyQueryOption, status string) (httpCode int, body interface{}) GetRepositoriesById(id string, option v1.CompanyQueryOption) (httpCode int, body interface{}) Store(company interface{}) (httpCode int, error error) GetRepositoryByRepositoryId(id string, companyId string, loadApplications string) (httpCode int, body interface{}) GetApplicationsByRepositoryId(repoId string, companyId string, option v1.RepositoryQueryOption, status string) (httpCode int, body interface{}) UpdateRepositories(companyId string, company interface{}, option string) (httpCode int, error error) UpdateApplication(id string, repoId string, payload interface{}, option string) (httpCode int, error error) GetApplicationByApplicationId(companyId string, repoId string, applicationId string) (httpCode int, data interface{}) GetAllApplications(companyId string, option v1.CompanyQueryOption) (httpCode int, data interface{}) GetApplicationsByCompanyIdAndRepositoryType(id string, _type string, option v1.CompanyQueryOption, status string) (httpCode int, data interface{}) UpdateWebhook(id, repoId, url, webhookId, action, repoType string) (httpCode int, error error) CreateApplicationPipeline(companyId, repositoryId, appId string, payload interface{}) (httpCode int, body interface{}) UpdateApplicationPipeline(companyId, repositoryId, appId string, payload interface{}) (httpCode int, body interface{}) }
Company Company operations.
type Github ¶
type Github interface { ListenEvent(payload interface{}, companyId string) error GetBranches(url, repositoryId, companyId string) (httpCode int, body interface{}) GetCommitByBranch(url, repoId, branch, companyId string, option v1.Pagination) (httpCode int, body interface{}) EnableWebhook(companyId, repoId, url string) (httpCode int, err error) DisableWebhook(companyId, repoId, url, webhookId string) (httpCode int, err error) }
type HttpClient ¶
type HttpClient interface { Get(url string, header map[string]string) (httpCode int, body []byte, err error) Post(url string, header map[string]string, body []byte) (httpCode int, err error) Put(url string, header map[string]string, body []byte) (httpCode int, err error) Delete(url string, header map[string]string) (httpCode int, err error) Patch(url string, header map[string]string, body []byte) (httpCode int, err error) }
HttpClient HttpClient operations.
type Jwt ¶
type Jwt interface { ValidateToken(tokenString string) (bool, *jwt.Token) ValidateTokenForInternalCall(tokenString string) (bool, *jwt.Token) }
Jwt Jwt operations.
type KubeObject ¶
type KubeObject interface {
Get(action, companyId, object, agent, ownerReference, processId string, option v1.ResourceQueryOption) (httpCode int, body interface{})
}
KubeObject k8s Object operations.
type Pipeline ¶
type Pipeline interface { Get(companyId, repositoryId, url, revision, action, from, to string) (httpCode int, body interface{}) GetByProcessId(companyId, processId, action string, option v1.Pagination) (httpCode int, body interface{}) ReadEventsByCompanyId(c chan map[string]interface{}, companyId, userId string) Create(companyId, repositoryId, url string, payload interface{}) (httpCode int, body interface{}) Update(companyId, repositoryId, url string, payload interface{}) (httpCode int, body interface{}) }
Pipeline Pipeline operations.
type Process ¶
type Process interface { Get(companyId, repositoryId, appId, commitId, operation, from, to string, option v1.ProcessQueryOption) (httpCode int, body interface{}) GetById(companyId, processId string) (httpCode int, body interface{}) GetProcessLifeCycleEventByProcessIdAndStepName(companyId, processId, step string) (httpCode int, body interface{}) GetFootmarksByProcessIdAndStep(processId, step string) (httpCode int, body interface{}) GetLogsByProcessIdAndStepAndFootmark(companyId, processId, step, footmark string, claims string, option v1.CompanyQueryOption) (httpCode int, body interface{}) }
Process Process operations.
type ProcessEvent ¶
type ProcessLifeCycleEvent ¶
type ProcessLifeCycleEvent interface { Store(events interface{}) (httpCode int, error error) PullNonInitializedAndAutoTriggerEnabledEventsByStepType(count, stepType string) (httpCode int, body interface{}) PullPausedAndAutoTriggerEnabledResourcesByAgentName(count, agent string) (httpCode int, body interface{}) UpdateClaim(companyId, processId, step, status string) (httpCode int, body interface{}) }
ProcessLifeCycleEvent Process Life Cycle Event operations.
Click to show internal directories.
Click to hide internal directories.