validation

package
v0.7.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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(config *apiBean.GitOpsConfigDto) apiBean.DetailedErrorGitOpsConfigResponse
	// ValidateCustomGitRepoURL 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
	ValidateCustomGitRepoURL(request gitOpsBean.ValidateCustomGitRepoURLRequest) (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 (*GitOpsValidationServiceImpl) ValidateCustomGitRepoURL

func (impl *GitOpsValidationServiceImpl) ValidateCustomGitRepoURL(request gitOpsBean.ValidateCustomGitRepoURLRequest) (string, bool, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL