Documentation
¶
Index ¶
- Constants
- Variables
- func ValidateArtifactID(value ArtifactID) error
- func ValidateArtifactKind(value ArtifactKind) error
- func ValidateAttachmentRole(value AttachmentRole) error
- func ValidateCollectionID(value CollectionID) error
- func ValidateCollectionKind(value CollectionKind) error
- func ValidateDecoderID(value DecoderID) error
- func ValidateIdentifier(label, value string, maximum int) error
- func ValidateLocator(value Locator, allowRoot bool) error
- func ValidateLogicalName(value LogicalName) error
- func ValidateLogicalVersion(value LogicalVersion, optional bool) error
- func ValidateOptionalText(label, value string, maximum int) error
- func ValidatePortableLocator(value Locator, allowRoot bool) error
- func ValidatePortableSubresourceLocator(value SubresourceLocator) error
- func ValidateRequiredText(label, value string, maximum int) error
- func ValidateRootID(value RootID) error
- func ValidateSchemaID(value SchemaID) error
- func ValidateSourceGeneration(value string) error
- func ValidateSourceID(value SourceID) error
- func ValidateSourceKind(value SourceKind) error
- func ValidateSubresourceLocator(value SubresourceLocator) error
- type ArtifactID
- type ArtifactKind
- type AttachmentRole
- type CollectionID
- type CollectionKind
- type DecoderID
- type Locator
- type LogicalName
- type LogicalVersion
- type RootID
- type SchemaID
- type SourceID
- type SourceKind
- type SubresourceLocator
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") ErrDefinitionNotFound = errors.New("artifact store: definition not found") ErrDigestMismatch = errors.New("artifact store: digest mismatch") ErrCatalogStale = errors.New("artifact store: catalog stale") 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 ValidateIdentifier ¶
func ValidateLocator ¶
func ValidateLogicalName ¶
func ValidateLogicalName(value LogicalName) error
func ValidateLogicalVersion ¶
func ValidateLogicalVersion(value LogicalVersion, optional bool) error
func ValidateOptionalText ¶
func ValidatePortableLocator ¶
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 ValidateRootID ¶
func ValidateSchemaID ¶
func ValidateSourceID ¶
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 LogicalName ¶
type LogicalName string
type LogicalVersion ¶
type LogicalVersion string
type SourceKind ¶
type SourceKind string
type SubresourceLocator ¶
type SubresourceLocator string
Click to show internal directories.
Click to hide internal directories.