Documentation
¶
Index ¶
Constants ¶
View Source
const ( BeringModelName = "io.mb3r.bering.model" BeringModelV100Name = BeringModelName BeringModelV100Version = "1.0.0" BeringModelV100URI = "https://mb3r-lab.github.io/Bering/schema/model/v1.0.0/model.schema.json" BeringModelV100Digest = "sha256:272277c093f37580adcd2dded225bd37c86539d642d7910baad7e4228227d1a7" BeringModelV110Name = BeringModelName BeringModelV110Version = "1.1.0" BeringModelV110URI = "https://mb3r-lab.github.io/Bering/schema/model/v1.1.0/model.schema.json" BeringModelV110Digest = "sha256:bc9a60736c9e6bda9599243fd68f293b88f42ade65321d8267369a5c3214779a" BeringSnapshotName = "io.mb3r.bering.snapshot" BeringSnapshotV100Name = BeringSnapshotName BeringSnapshotV100Version = "1.0.0" BeringSnapshotV100URI = "https://mb3r-lab.github.io/Bering/schema/snapshot/v1.0.0/snapshot.schema.json" BeringSnapshotV100Digest = "sha256:87e4e887ed4a37b72f6136e268b73552eccb92941c4de2c6f3a514dd066ea972" BeringSnapshotV110Name = BeringSnapshotName BeringSnapshotV110Version = "1.1.0" BeringSnapshotV110URI = "https://mb3r-lab.github.io/Bering/schema/snapshot/v1.1.0/snapshot.schema.json" BeringSnapshotV110Digest = "sha256:53b127608b2aaa4fabb352b998cd6b2c5ed558764729a09abea56f4f9b40fa01" ExpectedSchemaName = BeringModelV100Name ExpectedSchemaVersion = BeringModelV100Version ExpectedSchemaURI = BeringModelV100URI ExpectedSchemaDigest = BeringModelV100Digest )
Variables ¶
View Source
var VendoredModelV110Schema string
View Source
var VendoredSchema string
View Source
var VendoredSnapshotSchema string
View Source
var VendoredSnapshotV110Schema string
Functions ¶
func ValidateStrict ¶
Types ¶
type ArtifactKind ¶
type ArtifactKind string
const ( KindModel ArtifactKind = "model" KindSnapshot ArtifactKind = "snapshot" )
type SchemaRef ¶
type SchemaRef struct {
Name string `json:"name" yaml:"name"`
Version string `json:"version" yaml:"version"`
URI string `json:"uri" yaml:"uri"`
Digest string `json:"digest" yaml:"digest"`
}
func ExpectedModelV110Ref ¶ added in v0.2.0
func ExpectedModelV110Ref() SchemaRef
func ExpectedRef ¶
func ExpectedRef() SchemaRef
func ExpectedSnapshotRef ¶ added in v0.1.1
func ExpectedSnapshotRef() SchemaRef
func ExpectedSnapshotV110Ref ¶ added in v0.2.0
func ExpectedSnapshotV110Ref() SchemaRef
type SupportedContract ¶
type SupportedContract struct {
Name string
Version string
URI string
Digest string
Kind ArtifactKind
}
func Resolve ¶
func Resolve(schema SchemaRef) (SupportedContract, error)
func Supported ¶
func Supported() []SupportedContract
Click to show internal directories.
Click to hide internal directories.