Documentation
¶
Index ¶
- Constants
- func EmbeddedSchema() []byte
- func EmbeddedSchemaDigest() string
- func EmbeddedSnapshotSchema() []byte
- func EmbeddedSnapshotSchemaDigest() string
- func ValidateArtifactJSON(raw []byte) error
- func ValidateJSON(raw []byte) error
- func ValidateSnapshotJSON(raw []byte) error
- func ValidateSnapshotStrict(ref SchemaRef) error
- func ValidateStrict(ref SchemaRef) error
- type SchemaRef
Constants ¶
View Source
const ( ExpectedSchemaName = "io.mb3r.bering.model" ExpectedSchemaVersion = "1.0.0" ExpectedSchemaURI = "https://mb3r-lab.github.io/Bering/schema/model/v1.0.0/model.schema.json" ExpectedSchemaDigest = "sha256:272277c093f37580adcd2dded225bd37c86539d642d7910baad7e4228227d1a7" ExpectedSnapshotSchemaName = "io.mb3r.bering.snapshot" ExpectedSnapshotSchemaVersion = "1.0.0" ExpectedSnapshotSchemaURI = "https://mb3r-lab.github.io/Bering/schema/snapshot/v1.0.0/snapshot.schema.json" ExpectedSnapshotSchemaDigest = "sha256:87e4e887ed4a37b72f6136e268b73552eccb92941c4de2c6f3a514dd066ea972" )
Variables ¶
This section is empty.
Functions ¶
func EmbeddedSchema ¶
func EmbeddedSchema() []byte
func EmbeddedSchemaDigest ¶
func EmbeddedSchemaDigest() string
func EmbeddedSnapshotSchema ¶
func EmbeddedSnapshotSchema() []byte
func EmbeddedSnapshotSchemaDigest ¶
func EmbeddedSnapshotSchemaDigest() string
func ValidateArtifactJSON ¶
func ValidateJSON ¶
func ValidateSnapshotJSON ¶
func ValidateSnapshotStrict ¶
func ValidateStrict ¶
Types ¶
type SchemaRef ¶
type SchemaRef struct {
Name string `json:"name"`
Version string `json:"version"`
URI string `json:"uri"`
Digest string `json:"digest"`
}
func ExpectedRef ¶
func ExpectedRef() SchemaRef
func ExpectedSnapshotRef ¶
func ExpectedSnapshotRef() SchemaRef
func ExtractSchemaRef ¶
Click to show internal directories.
Click to hide internal directories.