Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntityType ¶
type EntityType string
const ( EntityCollection EntityType = "collection" EntityArtifact EntityType = "artifact" )
type Key ¶
type Key struct {
Entity EntityType `json:"entity"`
Kind Kind `json:"kind"`
SchemaID SchemaID `json:"schemaID"`
SchemaVersion string `json:"schemaVersion"`
}
func ArtifactKey ¶
func ArtifactKey( kind artifact.ArtifactKind, schemaID SchemaID, schemaVersion string, ) Key
func CollectionKey ¶
func CollectionKey( kind collection.CollectionKind, schemaID SchemaID, schemaVersion string, ) Key
type Kind ¶
type Kind string
Kind is the entity-neutral kind portion of a schema key.
The Entity field determines whether the Kind must satisfy CollectionKind or ArtifactKind validation.
type ParsedDocument ¶
type ParsedDocument struct {
Key Key
Digest cryptoutil.Digest
Raw json.RawMessage
}
ParsedDocument is a canonical document accepted by a registered schema codec. It is a Store domain value, not a provider-private type.
func (ParsedDocument) Clone ¶
func (d ParsedDocument) Clone() ParsedDocument
func (ParsedDocument) Validate ¶
func (d ParsedDocument) Validate() error
Click to show internal directories.
Click to hide internal directories.