18 lines
577 B
Go
18 lines
577 B
Go
package artifactmodel
|
|
|
|
// ContractMetadata identifies the data contract implemented by an artifact.
|
|
type ContractMetadata struct {
|
|
MediaType string `json:"media_type"`
|
|
SchemaID string `json:"schema_id"`
|
|
SchemaVersion string `json:"schema_version"`
|
|
ModuleKey string `json:"module_key,omitempty"`
|
|
}
|
|
|
|
// ExternalProvenance identifies an artifact produced by an external system.
|
|
type ExternalProvenance struct {
|
|
System string `json:"system"`
|
|
RunID string `json:"run_id"`
|
|
PipelineID string `json:"pipeline_id"`
|
|
ArtifactID string `json:"artifact_id"`
|
|
}
|