Documentation ¶
Index ¶
- type GithubJob
- type GithubStep
- type GithubWorkflow
- type GitlabStageScript
- type GitlabStageScripts
- type JfrogPipeline
- type JfrogPipelineFile
- type JfrogPipelineStep
- type JfrogPipelineStepExecution
- type Rule
- type SchemaError
- func EnsureCodeCoverageChecker(githubData map[string]*githubConnector.GithubOwner, ...) ([]*SchemaError, error)
- func EnsureCodeQualityScanner(githubData map[string]*githubConnector.GithubOwner, ...) ([]*SchemaError, error)
- func EnsureLinter(githubData map[string]*githubConnector.GithubOwner, ...) ([]*SchemaError, error)
- func EnsureScaScanner(githubData map[string]*githubConnector.GithubOwner, ...) ([]*SchemaError, error)
- func EnsureSecretsScanner(githubData map[string]*githubConnector.GithubOwner, ...) ([]*SchemaError, error)
- func EnsureTerraformScanner(githubData map[string]*githubConnector.GithubOwner, ...) ([]*SchemaError, error)
- func Validate(rule *Rule, githubData map[string]*githubConnector.GithubOwner, ...) ([]*SchemaError, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GithubJob ¶
type GithubJob struct {
Steps []GithubStep `json:"steps"`
}
type GithubStep ¶
type GithubWorkflow ¶
type GitlabStageScript ¶
type GitlabStageScript struct {
Script string `json:"script"`
}
type GitlabStageScripts ¶
type GitlabStageScripts struct {
Scripts []string `json:"script"`
}
type JfrogPipeline ¶
type JfrogPipeline struct {
Steps []JfrogPipelineStep `json:"steps"`
}
type JfrogPipelineFile ¶
type JfrogPipelineFile struct {
Pipelines []JfrogPipeline `json:"pipelines"`
}
type JfrogPipelineStep ¶
type JfrogPipelineStep struct {
Execution JfrogPipelineStepExecution `json:"execution"`
}
type JfrogPipelineStepExecution ¶
type JfrogPipelineStepExecution struct {
OnExecute []string `json:"onExecute"`
}
type Rule ¶
type Rule struct { Description string `json:"description"` UniqueId int `json:"uniqueId" validate:"required"` Schema map[string]interface{} `json:"schema"` FailureMessage string `json:"failureMessage" validate:"required"` EnabledByDefault bool `json:"enabledByDefault"` InCodeImplementation bool `json:"inCodeImplementation"` }
type SchemaError ¶
type SchemaError struct { OwnerName string RepositryName string WorkflowRelPath string CiCdPlatform string ErrorLevel int ScmPlatform string }
func EnsureCodeCoverageChecker ¶
func EnsureCodeCoverageChecker(githubData map[string]*githubConnector.GithubOwner, gitlabData map[string]*gitlabConnector.GitlabGroup) ([]*SchemaError, error)
func EnsureCodeQualityScanner ¶
func EnsureCodeQualityScanner(githubData map[string]*githubConnector.GithubOwner, gitlabData map[string]*gitlabConnector.GitlabGroup) ([]*SchemaError, error)
func EnsureLinter ¶
func EnsureLinter(githubData map[string]*githubConnector.GithubOwner, gitlabData map[string]*gitlabConnector.GitlabGroup) ([]*SchemaError, error)
func EnsureScaScanner ¶
func EnsureScaScanner(githubData map[string]*githubConnector.GithubOwner, gitlabData map[string]*gitlabConnector.GitlabGroup) ([]*SchemaError, error)
func EnsureSecretsScanner ¶
func EnsureSecretsScanner(githubData map[string]*githubConnector.GithubOwner, gitlabData map[string]*gitlabConnector.GitlabGroup) ([]*SchemaError, error)
func EnsureTerraformScanner ¶
func EnsureTerraformScanner(githubData map[string]*githubConnector.GithubOwner, gitlabData map[string]*gitlabConnector.GitlabGroup) ([]*SchemaError, error)
func Validate ¶
func Validate(rule *Rule, githubData map[string]*githubConnector.GithubOwner, gitlabData map[string]*gitlabConnector.GitlabGroup) ([]*SchemaError, error)
Click to show internal directories.
Click to hide internal directories.