odcscontractsvc

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 30 Imported by: 0

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