Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Company ¶
type Company interface { Store(company v1.Company) error UpdateRepositories(companyId string, repositories []v1.Repository, companyUpdateOption v1.RepositoryUpdateOption) error UpdateApplications(companyId string, repositoryId string, apps []v1.Application, companyUpdateOption v1.ApplicationUpdateOption) error UpdateApplication(companyId string, repositoryId string, app v1.Application) error Delete(companyId string) error GetCompanies(option v1.CompanyQueryOption, status v1.StatusQueryOption) []v1.Company GetByCompanyId(id string, option v1.CompanyQueryOption) (v1.Company, int64) GetRepositoriesByCompanyId(id string, option v1.CompanyQueryOption) ([]v1.Repository, int64) GetRepositoryByRepositoryId(id, repoId string, option v1.CompanyQueryOption) v1.Repository GetAllApplications(companyId string, option v1.CompanyQueryOption) ([]v1.Application, int64) GetApplicationsByRepositoryId(repositoryId string, companyId string, option v1.CompanyQueryOption, status v1.StatusQueryOption) ([]v1.Application, int64) GetCompanyByApplicationUrl(url string) v1.Company GetApplicationsByCompanyIdAndRepositoryType(id string, _type enums.REPOSITORY_TYPE, option v1.CompanyQueryOption, status v1.StatusQueryOption) []v1.Application GetRepositoryByCompanyIdAndApplicationUrl(id, url string) v1.Repository GetApplicationByCompanyIdAndRepositoryIdAndApplicationUrl(companyId, repositoryId, applicationUrl string) v1.Application GetApplicationByApplicationId(companyId string, repoId string, applicationId string) v1.Application GetDashboardData(companyId string) v1.DashboardData AppendRepositories(companyId string, repositories []v1.Repository) error SoftDeleteRepositories(companyId string, company v1.Company, repositories []v1.Repository) error DeleteRepositories(companyId string, company v1.Company, repositories []v1.Repository) error AppendApplications(companyId, repositoryId string, apps []v1.Application, option v1.CompanyQueryOption) error SoftDeleteApplications(companyId, repositoryId string, company v1.Company, apps []v1.Application) error DeleteApplications(companyId, repositoryId string, company v1.Company, apps []v1.Application, option v1.CompanyQueryOption) error CreateGithubWebHookAndUpdateApplication(companyId string, repoId string, token string, app v1.Application) CreateBitbucketWebHookAndUpdateApplication(companyId string, repoId string, token string, app v1.Application) UpdateWebhook(companyId, repoId, url, webhookId, action string) error EnableBitbucketWebhookAndUpdateApplication(companyId, repoId, url, token string) error EnableGithubWebhookAndUpdateApplication(companyId, repoId, url, token string) error DisableBitbucketWebhookAndUpdateApplication(companyId, repoId, url, webhookId, token string) error DisableGithubWebhookAndUpdateApplication(companyId, repoId, url, webhookId, token string) error }
Company Company related operations.
type Git ¶
type Git interface { GetPipeline(repositoryName, username, revision, token string) (*v1.Pipeline, error) GetDescriptors(repositoryName, username, revision, token, path, env string) ([]unstructured.Unstructured, error) GetDirectoryContents(repositoryName, username, revision, token, path string) ([]v1.GitDirectoryContent, error) GetContent(repositoryName, username, token, path string) (v1.GitContent, error) CreateDirectoryContent(repositoryName, username, token, path string, content v1.DirectoryContentCreatePayload) (v1.DirectoryContentCreateAndUpdateResponse, error) UpdateDirectoryContent(repositoryName, username, token, path string, content v1.DirectoryContentUpdatePayload) (v1.DirectoryContentCreateAndUpdateResponse, error) CreateRepositoryWebhook(username, repositoryName, token string, companyId string) (v1.GitWebhook, error) DeleteRepositoryWebhookById(username, repositoryName, webhookId, token string) error GetBranches(username, repositoryName, token string) (v1.GitBranches, error) GetCommitsByBranch(username, repositoryName, branch, token string, option v1.Pagination) ([]v1.GitCommit, int64, error) }
Git Git related operations.
type HttpClient ¶
type HttpClient interface { Get(url string, header map[string]string) ([]byte, error) Post(url string, header map[string]string, body []byte) ([]byte, error) Delete(url string, header map[string]string) error Put(url string, header map[string]string, body []byte) ([]byte, error) }
HttpClient HttpClient related operations.
type Pipeline ¶
type Pipeline interface { GetPipelineForValidation(companyId, repositoryId, url, revision string) (v1.PipelineForValidation, error) Create(companyId, repositoryId, url string, payload v1.DirectoryContentCreatePayload) (v1.DirectoryContentCreateAndUpdateResponse, error) Update(companyId, repositoryId, url string, payload v1.DirectoryContentUpdatePayload) (v1.DirectoryContentCreateAndUpdateResponse, error) }
type ProcessInventoryEvent ¶
ProcessInventoryEvent Process Inventory Event related operations.
Click to show internal directories.
Click to hide internal directories.