Documentation
¶
Index ¶
- type GitOpsValidationService
- type GitOpsValidationServiceImpl
- func (impl *GitOpsValidationServiceImpl) GitOpsValidateDryRun(isArgoModuleInstalled bool, config *apiBean.GitOpsConfigDto) apiBean.DetailedErrorGitOpsConfigResponse
- func (impl *GitOpsValidationServiceImpl) ValidateCustomGitOpsConfig(request gitOpsBean.ValidateGitOpsRepoRequest) (string, bool, error)
- func (impl *GitOpsValidationServiceImpl) ValidateGitOpsRepoUrl(request *gitOpsBean.ValidateGitOpsRepoUrlRequest) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitOpsValidationService ¶
type GitOpsValidationService interface {
// GitOpsValidateDryRun performs the following validations:
// "Get Repo URL", "Create Repo (if it doesn't exist)", "Create Readme", "Clone Http", "Clone Ssh", "Commit On Rest", "Push", "Delete Repo"
// And returns: gitOps.DetailedErrorGitOpsConfigResponse
GitOpsValidateDryRun(isArgoModuleInstalled bool, config *apiBean.GitOpsConfigDto) apiBean.DetailedErrorGitOpsConfigResponse
// ValidateGitOpsRepoUrl performs the following validations:
// "Organisational URL Validation", "Unique GitOps Repo"
// And returns: SanitisedRepoUrl and error
ValidateGitOpsRepoUrl(request *gitOpsBean.ValidateGitOpsRepoUrlRequest) (string, error)
// ValidateCustomGitOpsConfig performs the following validations:
// "Get Repo URL", "Create Repo (if it doesn't exist)", "Organisational URL Validation", "Unique GitOps Repo"
// And returns: RepoUrl and isNew Repository url and error
ValidateCustomGitOpsConfig(request gitOpsBean.ValidateGitOpsRepoRequest) (string, bool, error)
}
type GitOpsValidationServiceImpl ¶
type GitOpsValidationServiceImpl struct {
// contains filtered or unexported fields
}
func NewGitOpsValidationServiceImpl ¶
func NewGitOpsValidationServiceImpl(Logger *zap.SugaredLogger, gitFactory *git.GitFactory, gitOperationService git.GitOperationService, gitOpsConfigReadService config.GitOpsConfigReadService, chartTemplateService util.ChartTemplateService, chartService chartService.ChartService, installedAppService FullMode.InstalledAppDBExtendedService) *GitOpsValidationServiceImpl
func (*GitOpsValidationServiceImpl) GitOpsValidateDryRun ¶
func (impl *GitOpsValidationServiceImpl) GitOpsValidateDryRun(isArgoModuleInstalled bool, config *apiBean.GitOpsConfigDto) apiBean.DetailedErrorGitOpsConfigResponse
func (*GitOpsValidationServiceImpl) ValidateCustomGitOpsConfig ¶ added in v1.4.0
func (impl *GitOpsValidationServiceImpl) ValidateCustomGitOpsConfig(request gitOpsBean.ValidateGitOpsRepoRequest) (string, bool, error)
func (*GitOpsValidationServiceImpl) ValidateGitOpsRepoUrl ¶ added in v1.4.0
func (impl *GitOpsValidationServiceImpl) ValidateGitOpsRepoUrl(request *gitOpsBean.ValidateGitOpsRepoUrlRequest) (string, error)
Click to show internal directories.
Click to hide internal directories.