get.porter.sh/porter@v1.3.0/pkg/storage/migrations/source_claim.go (about) 1 package migrations 2 3 import ( 4 "time" 5 6 "get.porter.sh/porter/pkg/cnab" 7 "github.com/cnabio/cnab-go/bundle" 8 ) 9 10 // SourceClaim represents the file format of claim documents from v0.38 11 type SourceClaim struct { 12 // SchemaVersion is the version of the claim schema. 13 SchemaVersion cnab.SchemaVersion `json:"schemaVersion"` 14 15 // ID of the claim. 16 ID string `json:"id"` 17 18 // Installation name. 19 Installation string `json:"installation"` 20 21 // Revision of the installation. 22 Revision string `json:"revision"` 23 24 // Created timestamp of the claim. 25 Created time.Time `json:"created"` 26 27 // Action executed against the installation. 28 Action string `json:"action"` 29 30 // Bundle is the definition of the bundle. 31 Bundle bundle.Bundle `json:"bundle"` 32 33 // BundleReference is the canonical reference to the bundle used in the action. 34 BundleReference string `json:"bundleReference,omitempty"` 35 36 // Parameters are the key/value pairs that were passed in during the operation. 37 Parameters map[string]interface{} `json:"parameters,omitempty"` 38 39 // Custom extension data applicable to a given runtime. 40 Custom interface{} `json:"custom,omitempty"` 41 }