readinesssvc

package
v0.2.0-rc.13 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 12 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package readinesssvc evaluates persisted pipeline setup without running connectors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Diagnostic

type Diagnostic struct {
	Severity        string    `json:"severity"`
	Code            string    `json:"code"`
	EnvironmentSlug slug.Slug `json:"environment_slug"`
	PipelineSlug    slug.Slug `json:"pipeline_slug"`
	StepSlug        slug.Slug `json:"step_slug"`
	RequirementKey  string    `json:"requirement_key"`
	FieldPath       string    `json:"field_path"`
	NextAction      string    `json:"next_action"`
}

type EnvironmentInput

type EnvironmentInput struct {
	Slug      slug.Slug
	Variables map[string]bool // Effective presence, including organization defaults.
}

type EnvironmentResult

type EnvironmentResult struct {
	EnvironmentSlug slug.Slug    `json:"environment_slug"`
	Status          string       `json:"status"`
	Diagnostics     []Diagnostic `json:"diagnostics"`
}

type PipelineInput

type PipelineInput struct {
	Spec     *pipelinespec.Pipeline
	Refs     []model.DataSourceRef
	Bindings []model.DataSourceBinding
}

type Report

type Report struct {
	Status       string              `json:"status"`
	Environments []EnvironmentResult `json:"environments"`
}

func Evaluate

func Evaluate(pipelines []PipelineInput, environments []EnvironmentInput) Report

func Load

func Load(ctx context.Context, pipelines pipelinesvc.Service, environments environmentssvc.Service, refs datasourcerefssvc.Service, org, project, pipeline slug.Slug) (Report, error)

Load evaluates the current persisted specs. An empty pipeline selects the whole project.

func LoadSpecs

func LoadSpecs(ctx context.Context, environments environmentssvc.Service, refs datasourcerefssvc.Service, org, project slug.Slug, specs []*pipelinespec.Pipeline) ([]Report, error)

LoadSpecs evaluates incoming pipeline specs against the project's current setup.

Jump to

Keyboard shortcuts

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