odcscontractsvc

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2026 License: Apache-2.0 Imports: 31 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

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrArtifact       = xerror.New(xerror.KindInvalidInput, "ODCS_ARTIFACT_INVALID", "invalid ODCS artifact import")
	ErrImportConflict = xerror.New(xerror.KindAlreadyExists, "ODCS_IMPORT_CONFLICT", "ODCS import conflicts with catalog or repository state")
)
View Source
var ErrArchived = xerror.New(xerror.KindAlreadyExists, "ODCS_CONTRACT_ARCHIVED", "cannot add revisions to an archived contract")
View Source
var ErrImpactSelection = xerror.New(xerror.KindInvalidInput, "ODCS_IMPACT_SELECTION_UNAVAILABLE", "select two supported retained compiled plans containing the exact requested contract revisions")

Functions

This section is empty.

Types

type ArtifactImporter

type ArtifactImporter struct {
	// contains filtered or unexported fields
}

ArtifactImporter reads only the configured project Git backend; callers enforce project permissions.

func (*ArtifactImporter) Get

func (s *ArtifactImporter) Get(ctx context.Context, org, project, contract, revisionSlug slug.Slug, repo, commit, filePath string) (*model.ODCSArtifact, error)

func (*ArtifactImporter) Import

func (s *ArtifactImporter) Import(ctx context.Context, org, project slug.Slug, apply bool, expectedCommit string) (*model.ODCSArtifactImport, error)

type ConsumerImpact

type ConsumerImpact struct {
	ProjectSlug, PipelineSlug, StepSlug, RevisionSlug               slug.Slug
	Origin, Environment, SpecHash, Port, SchemaObjectID, Comparison string
	Diagnostics                                                     []ImpactDiagnostic
	Impact                                                          *drift.Report
}

type ImpactChange

type ImpactChange struct {
	drift.Change
	BeforePropertyID, AfterPropertyID string
}

type ImpactDiagnostic

type ImpactDiagnostic struct {
	PropertyID   string
	RevisionSlug slug.Slug
	odcs.Diagnostic
}

type ImpactPlanSelection

type ImpactPlanSelection struct {
	Pipeline        slug.Slug
	Digest          string
	ProjectionInput *int
}

type Inspection

type Inspection struct {
	Revision   *model.ODCSRevision
	Projection *odcs.ConversionResult
}

type ObjectImpact

type ObjectImpact struct {
	Scope          string
	SchemaObjectID string
	Comparison     string
	Changes        []ImpactChange
	Diagnostics    []ImpactDiagnostic
	// contains filtered or unexported fields
}

type RevisionImpact

type RevisionImpact struct {
	FromPlan, ToPlan                 *ImpactPlanSelection
	ProjectSlug                      slug.Slug
	ContractSlug                     slug.Slug
	FromRevisionSlug, ToRevisionSlug slug.Slug
	FromDigest, ToDigest             string
	Objects                          []ObjectImpact
	Consumers                        []ConsumerImpact
}

type RevisionImpactRequest

type RevisionImpactRequest struct {
	From, To         slug.Slug
	FromPlan, ToPlan *ImpactPlanSelection
}

Jump to

Keyboard shortcuts

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