basespec

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxKindBytes             = 128
	MaxFingerprintBytes      = 128
	MaxSchemaIDBytes         = 256
	MaxDisplayNameBytes      = 256
	MaxDescriptionBytes      = 16 * 1024
	MaxLogicalNameBytes      = 256
	MaxURIBytes              = 16 * 1024
	MaxVersionBytes          = 256
	MaxSourceGenerationBytes = 1024
	MaxLocatorBytes          = 4096

	MaxLabels                 = 64
	MaxLabelValueBytes        = 256
	MaxConfigBytes            = 1 << 20
	MaxLocalDataBytes         = 1 << 20
	MaxDefinitionBodyBytes    = 4 << 20
	MaxDefinitionBytes        = 16 << 20
	MaxDefinitionDependencies = 4096
	MaxCandidateBytes         = 4 << 20
	MaxScanBytes              = int64(512 << 20)

	DefaultMaxCandidates   = 10_000
	DefaultMaxEntries      = 100_000
	DefaultMaxDepth        = 64
	MaxDiscoveryCandidates = 100_000
	MaxDiscoveryEntries    = 1_000_000
	MaxDiscoveryDepth      = 256
)

Variables

View Source
var (
	ErrClosed              = errors.New("artifact store: closed")
	ErrNotFound            = errors.New("artifact store: not found")
	ErrRootNotFound        = errors.New("artifact store: root not found")
	ErrSourceNotFound      = errors.New("artifact store: source not found")
	ErrAttachmentNotFound  = errors.New("artifact store: attachment not found")
	ErrCollectionNotFound  = errors.New("artifact store: collection not found")
	ErrArtifactNotFound    = errors.New("artifact store: artifact not found")
	ErrConflict            = errors.New("artifact store: conflict")
	ErrInvalid             = errors.New("artifact store: invalid")
	ErrUnsupported         = errors.New("artifact store: unsupported")
	ErrSourceUnavailable   = errors.New("artifact store: source unavailable")
	ErrDefinitionNotFound  = errors.New("artifact store: definition not found")
	ErrDigestMismatch      = errors.New("artifact store: digest mismatch")
	ErrCatalogUnavailable  = errors.New("artifact store: catalog unavailable")
	ErrCatalogStale        = errors.New("artifact store: catalog stale")
	ErrDecoderUnavailable  = errors.New("artifact store: decoder unavailable")
	ErrAmbiguousDecoder    = errors.New("artifact store: ambiguous decoder")
	ErrReferenceUnresolved = errors.New("artifact store: reference unresolved")
	ErrSuppressed          = errors.New("artifact store: source binding suppressed")
	ErrRetired             = errors.New("artifact store: retired")
)

Functions

func ValidateArtifactID

func ValidateArtifactID(value ArtifactID) error

func ValidateArtifactKind

func ValidateArtifactKind(value ArtifactKind) error

func ValidateAttachmentRole

func ValidateAttachmentRole(value AttachmentRole) error

func ValidateCollectionID

func ValidateCollectionID(value CollectionID) error

func ValidateCollectionKind

func ValidateCollectionKind(value CollectionKind) error

func ValidateDecoderID

func ValidateDecoderID(value DecoderID) error

func ValidateIdentifier

func ValidateIdentifier(label, value string, maximum int) error

func ValidateLocator

func ValidateLocator(value Locator, allowRoot bool) error

func ValidateLogicalName

func ValidateLogicalName(value LogicalName) error

func ValidateLogicalVersion

func ValidateLogicalVersion(value LogicalVersion, optional bool) error

func ValidateOptionalText

func ValidateOptionalText(label, value string, maximum int) error

func ValidatePortableLocator

func ValidatePortableLocator(value Locator, allowRoot bool) error

ValidatePortableLocator applies the platform-independent locator rules used for managed content and portable packages.

Generic Source locators can describe an existing platform-specific Source. Portable locators are stricter because the same package must not acquire a different meaning after being moved between Unix and Windows.

func ValidatePortableSubresourceLocator

func ValidatePortableSubresourceLocator(value SubresourceLocator) error

func ValidateRequiredText

func ValidateRequiredText(label, value string, maximum int) error

func ValidateRootID

func ValidateRootID(value RootID) error

func ValidateSchemaID

func ValidateSchemaID(value SchemaID) error

func ValidateSourceGeneration

func ValidateSourceGeneration(value string) error

func ValidateSourceID

func ValidateSourceID(value SourceID) error

func ValidateSourceKind

func ValidateSourceKind(value SourceKind) error

func ValidateSubresourceLocator

func ValidateSubresourceLocator(value SubresourceLocator) error

Types

type ArtifactID

type ArtifactID string

type ArtifactKind

type ArtifactKind string

type AttachmentRole

type AttachmentRole string

type CollectionID

type CollectionID string

type CollectionKind

type CollectionKind string

type DecoderID

type DecoderID string

type Locator

type Locator string

type LogicalName

type LogicalName string

type LogicalVersion

type LogicalVersion string

type RootID

type RootID string

type SchemaID

type SchemaID string

type SourceID

type SourceID string

type SourceKind

type SourceKind string

type SubresourceLocator

type SubresourceLocator string

Jump to

Keyboard shortcuts

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