odcscontracts

package
v0.2.1-rc.1-linux-arm64 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 8 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 (
	ErrNotFound = xerror.New(xerror.KindNotFound, "ODCS_NOT_FOUND", "ODCS catalog resource not found")
	ErrConflict = xerror.New(xerror.KindAlreadyExists, "ODCS_CONFLICT", "ODCS identity, revision, or digest already exists")
)

Functions

This section is empty.

Types

type ConsumerSnapshot

type ConsumerSnapshot struct {
	Origin, Environment, SpecHash string
	Spec, Pins                    []byte
}

type Repository

type Repository interface {
	FindArtifact(context.Context, postgres.DBTX, slug.Slug, slug.Slug, model.ODCSArtifact) (*model.ODCSArtifact, error)
	FindContractByIdentity(context.Context, postgres.DBTX, slug.Slug, slug.Slug, string) (*model.ODCSContract, error)
	FindRevisionByDigest(context.Context, postgres.DBTX, slug.Slug, slug.Slug, slug.Slug, string) (*model.ODCSRevision, error)
	CreateArtifact(context.Context, postgres.DBTX, slug.Slug, slug.Slug, model.ODCSArtifact) error

	CreateContract(context.Context, postgres.DBTX, slug.Slug, slug.Slug, model.NewODCSContract) (*model.ODCSContract, error)
	GetContract(context.Context, postgres.DBTX, slug.Slug, slug.Slug, slug.Slug) (*model.ODCSContract, error)
	LockContract(context.Context, postgres.DBTX, slug.Slug, slug.Slug, slug.Slug) (*model.ODCSContract, error)
	UpdateContract(context.Context, postgres.DBTX, slug.Slug, slug.Slug, slug.Slug, model.UpdateODCSContract) (*model.ODCSContract, error)
	ListContracts(context.Context, postgres.DBTX, slug.Slug, slug.Slug, model.ListRequest) ([]model.ODCSContract, error)
	CreateRevision(context.Context, postgres.DBTX, slug.Slug, slug.Slug, slug.Slug, model.ODCSRevision) (*model.ODCSRevision, error)
	GetRevision(context.Context, postgres.DBTX, slug.Slug, slug.Slug, slug.Slug, slug.Slug) (*model.ODCSRevision, error)
	ListRevisions(context.Context, postgres.DBTX, slug.Slug, slug.Slug, slug.Slug, model.ListRequest) ([]model.ODCSRevision, error)
	ListConsumerSnapshots(context.Context, postgres.DBTX, slug.Slug, slug.Slug) ([]ConsumerSnapshot, error)
}

func NewRepository

func NewRepository() Repository

Jump to

Keyboard shortcuts

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