get.porter.sh/porter@v1.3.0/pkg/storage/migrations/source_credential_set.go (about) 1 package migrations 2 3 import ( 4 "time" 5 6 "get.porter.sh/porter/pkg/cnab" 7 "github.com/cnabio/cnab-go/valuesource" 8 ) 9 10 // SourceCredentialSet represents the file format of credential set documents from v0.38 11 type SourceCredentialSet struct { 12 // SchemaVersion is the version of the credential-set schema. 13 SchemaVersion cnab.SchemaVersion `json:"schemaVersion" yaml:"schemaVersion"` 14 15 // Name is the name of the credentialset. 16 Name string `json:"name" yaml:"name"` 17 18 // Created timestamp of the credentialset. 19 Created time.Time `json:"created" yaml:"created"` 20 21 // Modified timestamp of the credentialset. 22 Modified time.Time `json:"modified" yaml:"modified"` 23 24 // Credentials is a list of credential specs. 25 Credentials []valuesource.Strategy `json:"credentials" yaml:"credentials"` 26 }