Documentation ¶
Index ¶
- Constants
- type DetailedErrorGitOpsConfigResponse
- type GitOpsConfigService
- type GitOpsConfigServiceImpl
- func (impl *GitOpsConfigServiceImpl) CreateGitOpsConfig(request *bean2.GitOpsConfigDto) (*bean2.GitOpsConfigDto, error)
- func (impl *GitOpsConfigServiceImpl) GetAllGitOpsConfig() ([]*bean2.GitOpsConfigDto, error)
- func (impl *GitOpsConfigServiceImpl) GetGitOpsConfigActive() (*bean2.GitOpsConfigDto, error)
- func (impl *GitOpsConfigServiceImpl) GetGitOpsConfigById(id int) (*bean2.GitOpsConfigDto, error)
- func (impl *GitOpsConfigServiceImpl) GetGitOpsConfigByProvider(provider string) (*bean2.GitOpsConfigDto, error)
- func (impl *GitOpsConfigServiceImpl) GitOpsValidateDryRun(config *bean2.GitOpsConfigDto) DetailedErrorGitOpsConfigResponse
- func (impl *GitOpsConfigServiceImpl) UpdateGitOpsConfig(request *bean2.GitOpsConfigDto) error
- func (impl *GitOpsConfigServiceImpl) ValidateAndCreateGitOpsConfig(config *bean2.GitOpsConfigDto) (DetailedErrorGitOpsConfigResponse, error)
- func (impl *GitOpsConfigServiceImpl) ValidateAndUpdateGitOpsConfig(config *bean2.GitOpsConfigDto) (DetailedErrorGitOpsConfigResponse, error)
- type KeyDto
- type RepositoryCredentialsDto
Constants ¶
View Source
const ( GitOpsSecretName = "devtron-gitops-secret" DryrunRepoName = "devtron-sample-repo-dryrun-" DeleteRepoStage = "Delete Repo" CommitOnRestStage = "Commit On Rest" PushStage = "Push" CloneStage = "Clone" GetRepoUrlStage = "Get Repo Url" CreateRepoStage = "Create Repo" CloneHttp = "Clone Http" CreateReadmeStage = "Create Readme" GITHUB_PROVIDER = "GITHUB" GITLAB_PROVIDER = "GITLAB" BITBUCKET_PROVIDER = "BITBUCKET_CLOUD" AZURE_DEVOPS_PROVIDER = "AZURE_DEVOPS" BITBUCKET_API_HOST = "https://api.bitbucket.org/2.0/" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DetailedErrorGitOpsConfigResponse ¶ added in v0.2.27
type GitOpsConfigService ¶
type GitOpsConfigService interface { ValidateAndCreateGitOpsConfig(config *bean2.GitOpsConfigDto) (DetailedErrorGitOpsConfigResponse, error) ValidateAndUpdateGitOpsConfig(config *bean2.GitOpsConfigDto) (DetailedErrorGitOpsConfigResponse, error) GitOpsValidateDryRun(config *bean2.GitOpsConfigDto) DetailedErrorGitOpsConfigResponse CreateGitOpsConfig(config *bean2.GitOpsConfigDto) (*bean2.GitOpsConfigDto, error) UpdateGitOpsConfig(config *bean2.GitOpsConfigDto) error GetGitOpsConfigById(id int) (*bean2.GitOpsConfigDto, error) GetAllGitOpsConfig() ([]*bean2.GitOpsConfigDto, error) GetGitOpsConfigByProvider(provider string) (*bean2.GitOpsConfigDto, error) GetGitOpsConfigActive() (*bean2.GitOpsConfigDto, error) }
type GitOpsConfigServiceImpl ¶
type GitOpsConfigServiceImpl struct { K8sUtil *util.K8sUtil // contains filtered or unexported fields }
func NewGitOpsConfigServiceImpl ¶
func NewGitOpsConfigServiceImpl(Logger *zap.SugaredLogger, ciHandler pipeline.CiHandler, gitOpsRepository repository.GitOpsConfigRepository, K8sUtil *util.K8sUtil, aCDAuthConfig *user.ACDAuthConfig, clusterService cluster.ClusterService, envService cluster.EnvironmentService, versionService argocdServer.VersionService, gitFactory *util.GitFactory) *GitOpsConfigServiceImpl
func (*GitOpsConfigServiceImpl) CreateGitOpsConfig ¶
func (impl *GitOpsConfigServiceImpl) CreateGitOpsConfig(request *bean2.GitOpsConfigDto) (*bean2.GitOpsConfigDto, error)
func (*GitOpsConfigServiceImpl) GetAllGitOpsConfig ¶
func (impl *GitOpsConfigServiceImpl) GetAllGitOpsConfig() ([]*bean2.GitOpsConfigDto, error)
func (*GitOpsConfigServiceImpl) GetGitOpsConfigActive ¶
func (impl *GitOpsConfigServiceImpl) GetGitOpsConfigActive() (*bean2.GitOpsConfigDto, error)
func (*GitOpsConfigServiceImpl) GetGitOpsConfigById ¶
func (impl *GitOpsConfigServiceImpl) GetGitOpsConfigById(id int) (*bean2.GitOpsConfigDto, error)
func (*GitOpsConfigServiceImpl) GetGitOpsConfigByProvider ¶
func (impl *GitOpsConfigServiceImpl) GetGitOpsConfigByProvider(provider string) (*bean2.GitOpsConfigDto, error)
func (*GitOpsConfigServiceImpl) GitOpsValidateDryRun ¶ added in v0.2.27
func (impl *GitOpsConfigServiceImpl) GitOpsValidateDryRun(config *bean2.GitOpsConfigDto) DetailedErrorGitOpsConfigResponse
func (*GitOpsConfigServiceImpl) UpdateGitOpsConfig ¶
func (impl *GitOpsConfigServiceImpl) UpdateGitOpsConfig(request *bean2.GitOpsConfigDto) error
func (*GitOpsConfigServiceImpl) ValidateAndCreateGitOpsConfig ¶ added in v0.2.27
func (impl *GitOpsConfigServiceImpl) ValidateAndCreateGitOpsConfig(config *bean2.GitOpsConfigDto) (DetailedErrorGitOpsConfigResponse, error)
func (*GitOpsConfigServiceImpl) ValidateAndUpdateGitOpsConfig ¶ added in v0.2.27
func (impl *GitOpsConfigServiceImpl) ValidateAndUpdateGitOpsConfig(config *bean2.GitOpsConfigDto) (DetailedErrorGitOpsConfigResponse, error)
Click to show internal directories.
Click to hide internal directories.