Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultGenericsSpecs defines the default builder that we want to run DefaultCrawlerSpecs = Config{ Crawlers: map[string]interface{}{ "dockercompose": dockercompose.Spec{}, "dockerfile": dockerfile.Spec{}, "helm": helm.Spec{}, "helmfile": helmfile.Spec{}, "maven": maven.Spec{}, "rancher/fleet": fleet.Spec{}, }, } // AutodiscoverySpecs is a map of all Autodiscovery specification AutodiscoverySpecsMapping = map[string]interface{}{ "dockercompose": &dockercompose.Spec{}, "dockerfile": &dockerfile.Spec{}, "helm": &helm.Spec{}, "helmfile": &helmfile.Spec{}, "maven": &maven.Spec{}, "rancher/fleet": &fleet.Spec{}, } )
Functions ¶
This section is empty.
Types ¶
type AutoDiscovery ¶
type AutoDiscovery struct {
// contains filtered or unexported fields
}
func New ¶
func New(spec Config, workDir string) (*AutoDiscovery, error)
New returns an initiated autodiscovery object
func (*AutoDiscovery) Run ¶
func (g *AutoDiscovery) Run() ([][]byte, error)
Run execute each Autodiscovery crawlers to generate Updatecli manifests
type Config ¶ added in v0.41.0
type Config struct {
// Crawlers specifies crawler configuration
Crawlers map[string]interface{} `yaml:",omitempty"`
// ScmID specifies a scmid configuration to use to generate the manifest
ScmId string `yaml:",omitempty"`
// ActionId specifies an action configuration to use to generate the manifest
ActionId string `yaml:",omitempty"`
// GroupBy specifies how to group pipeline. The Accepted is one of "all", "individual"
GroupBy GroupBy
// !Deprecated in favor of `actionid`
PullrequestId string `yaml:",omitempty"`
}
Config defines autodiscovery parameters
func (Config) JSONSchema ¶ added in v0.41.0
JSONSchema implements the json schema interface to generate the "condition" jsonschema.
Click to show internal directories.
Click to hide internal directories.