Documentation ¶
Index ¶
- Constants
- type BuildOn
- type CiSetupData
- type CustomImage
- type GitProvider
- type GradleIndicator
- type IncludeExclude
- type JFrogPipelinesConfigurator
- type JFrogPipelinesYamlGenerator
- type MavenIndicator
- type NpmIndicator
- type Pipeline
- type PipelineConfiguration
- type PipelineStep
- type PipelineYml
- type Resource
- type ResourceConfiguration
- type ResourceType
- type Runtime
- type RuntimeImage
- type RuntimeType
- type StepConfiguration
- type StepExecution
- type StepIntegration
- type StepResource
- type Technology
- type TechnologyIndicator
- type VcsServerDetails
Constants ¶
View Source
const ( Github = "GitHub" GithubEnterprise = "GitHub Enterprise" Bitbucket = "Bitbucket" BitbucketServer = "Bitbucket Server" Gitlab = "GitLab" )
View Source
const ( Maven = "maven" Gradle = "gradle" Npm = "npm" )
View Source
const ConfigServerId = "ci-setup-cmd"
View Source
const (
PipelinesYamlPath = "pipelines.yml"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CiSetupData ¶
type CiSetupData struct { RepositoryName string ProjectDomain string VcsBaseUrl string LocalDirPath string GitBranch string BuildCommand string BuildName string ArtifactoryVirtualRepos map[Technology]string // A collection of technologies that was found with a list of theirs indications DetectedTechnologies map[Technology]bool VcsCredentials VcsServerDetails GitProvider GitProvider }
func (*CiSetupData) GetRepoFullName ¶
func (sd *CiSetupData) GetRepoFullName() string
type CustomImage ¶
type GitProvider ¶
type GitProvider string
type GradleIndicator ¶
type GradleIndicator struct { }
func (GradleIndicator) GetTechnology ¶
func (gi GradleIndicator) GetTechnology() Technology
func (GradleIndicator) Indicates ¶
func (gi GradleIndicator) Indicates(file string) bool
type IncludeExclude ¶
type JFrogPipelinesConfigurator ¶
type JFrogPipelinesConfigurator struct { SetupData *CiSetupData PipelinesToken string }
func (*JFrogPipelinesConfigurator) Config ¶
func (pc *JFrogPipelinesConfigurator) Config() (vcsIntName, rtIntName string, err error)
type JFrogPipelinesYamlGenerator ¶
type JFrogPipelinesYamlGenerator struct { VcsIntName string RtIntName string SetupData *CiSetupData }
type MavenIndicator ¶
type MavenIndicator struct { }
func (MavenIndicator) GetTechnology ¶
func (mi MavenIndicator) GetTechnology() Technology
func (MavenIndicator) Indicates ¶
func (mi MavenIndicator) Indicates(file string) bool
type NpmIndicator ¶
type NpmIndicator struct { }
func (NpmIndicator) GetTechnology ¶
func (ni NpmIndicator) GetTechnology() Technology
func (NpmIndicator) Indicates ¶
func (ni NpmIndicator) Indicates(file string) bool
type Pipeline ¶
type Pipeline struct { Name string `yaml:"name,omitempty"` Configuration PipelineConfiguration `yaml:"configuration,omitempty"` Steps []PipelineStep `yaml:"steps,omitempty"` }
type PipelineConfiguration ¶
type PipelineConfiguration struct {
Runtime `yaml:"runtime,omitempty"`
}
type PipelineStep ¶
type PipelineStep struct { Name string `yaml:"name,omitempty"` StepType string `yaml:"type,omitempty"` Configuration StepConfiguration `yaml:"configuration,omitempty"` Execution StepExecution `yaml:"execution,omitempty"` }
type PipelineYml ¶
type Resource ¶
type Resource struct { Name string `yaml:"name,omitempty"` ResourceType `yaml:"type,omitempty"` ResourceConfiguration `yaml:"configuration,omitempty"` }
type ResourceConfiguration ¶
type ResourceConfiguration struct { Path string `yaml:"path,omitempty"` GitProvider string `yaml:"gitProvider,omitempty"` BuildOn `yaml:"buildOn,omitempty"` Branches IncludeExclude `yaml:"branches,omitempty"` }
type Runtime ¶
type Runtime struct { RuntimeType `yaml:"type,omitempty"` Image RuntimeImage `yaml:"image,omitempty"` }
type RuntimeImage ¶
type RuntimeImage struct {
Custom CustomImage `yaml:"custom,omitempty"`
}
type StepConfiguration ¶
type StepConfiguration struct { InputResources []StepResource `yaml:"inputResources,omitempty"` Integrations []StepIntegration `yaml:"integrations,omitempty"` }
type StepExecution ¶
type StepIntegration ¶
type StepIntegration struct {
Name string `yaml:"name,omitempty"`
}
type StepResource ¶
type StepResource struct {
Name string `yaml:"name,omitempty"`
}
type Technology ¶
type Technology string
type TechnologyIndicator ¶
type TechnologyIndicator interface { GetTechnology() Technology Indicates(file string) bool }
func GetTechIndicators ¶
func GetTechIndicators() []TechnologyIndicator
Click to show internal directories.
Click to hide internal directories.