Documentation
¶
Index ¶
- Variables
- func Clone(s *scm.ScmHandler, channel chan int, hashes *[]uint64, wg *sync.WaitGroup) error
- func GenerateSchema(baseSchemaID, schemaDir string) error
- func PrintTitle(title string)
- type Engine
- func (e *Engine) Clean() (err error)
- func (e *Engine) InitSCM() (err error)
- func (e *Engine) LoadAutoDiscovery(ctx context.Context, defaultEnabled bool) error
- func (e *Engine) LoadConfigurations() error
- func (e *Engine) ManifestUpgrade(saveToDisk bool) (err error)
- func (e *Engine) OrderPipelines() error
- func (e *Engine) Prepare(ctx context.Context) (err error)
- func (e *Engine) PullFromRegistry(policyReference string, disableTLS bool) (err error)
- func (e *Engine) PushToRegistry(manifests, valuesFiles, secretsFiles, policyReference []string, ...) error
- func (e *Engine) Run(ctx context.Context) (err error)
- func (e *Engine) Scaffold(rootDir string) error
- func (e *Engine) SetTracer(t trace.Tracer)
- func (e *Engine) Show() (err error)
- type Options
Constants ¶
This section is empty.
Variables ¶
var ( // ErrNoManifestDetected is the error message returned by Updatecli if it can't find manifest ErrNoManifestDetected error = errors.New("no Updatecli manifest detected") )
Functions ¶
func GenerateSchema ¶ added in v0.23.0
Types ¶
type Engine ¶
type Engine struct {
Pipelines []*pipeline.Pipeline
Options Options
Reports reports.Reports
// contains filtered or unexported fields
}
Engine defined parameters for a specific engine run.
func (*Engine) LoadAutoDiscovery ¶ added in v0.31.0
LoadAutoDiscovery runs autodiscovery under the provided context so that crawler spans can be linked to the calling prepare span.
func (*Engine) LoadConfigurations ¶ added in v0.17.0
ReadConfigurations read every strategies configuration.
func (*Engine) ManifestUpgrade ¶ added in v0.27.0
ManifestUpgrade load Updatecli Manifest to update them then written them back on disk
func (*Engine) OrderPipelines ¶ added in v0.116.2
OrderPipelines resolves manifest-level dependencies and reorders pipelines accordingly.
func (*Engine) Prepare ¶
Prepare runs all preparation phases under the provided context, emitting an OTel span for the overall prepare phase and one child span per sub-phase.
func (*Engine) PullFromRegistry ¶ added in v0.63.0
PullFromRegistry retrieves an Updatecli policy from an OCI registry.
func (*Engine) PushToRegistry ¶ added in v0.63.0
func (e *Engine) PushToRegistry(manifests, valuesFiles, secretsFiles, policyReference []string, disableTLS bool, policyMetadataFile, fileStore string, overwrite bool) error
PushToRegistry pushes an Updatecli policy to an OCI registry.
func (*Engine) Run ¶
Run runs the full process under the provided context, emitting OpenTelemetry spans for each major operation so failures are observable.
type Options ¶
type Options struct {
// Config holds the application configuration options
Config config.Option
// Pipeline holds pipeline execution options
Pipeline pipeline.Options
// Manifests holds a list of manifests to process
Manifests []manifest.Manifest
// DisplayFlavor defines the flavor of the display output
DisplayFlavor string
// GraphFlavor defines the flavor of the dependency graph
GraphFlavor string
// PipelineIDs holds a list of pipeline IDs to filter on
PipelineIDs []string
// Labels holds a map of labels to filter on
Labels map[string]string
}
Options defines application specific behaviors