Documentation ¶
Index ¶
Constants ¶
View Source
const SchemaVersion = "v1.0.0"
Variables ¶
This section is empty.
Functions ¶
func IsPorterBundle ¶
Types ¶
type ManifestConverter ¶
type ManifestConverter struct { *context.Context Manifest *manifest.Manifest ImageDigests map[string]string Mixins []mixin.Metadata }
ManifestConverter converts from a porter manifest to a CNAB bundle definition.
func NewManifestConverter ¶
func (*ManifestConverter) DigestManifest ¶
func (c *ManifestConverter) DigestManifest() (string, error)
func (*ManifestConverter) GenerateStamp ¶
func (c *ManifestConverter) GenerateStamp() (Stamp, error)
type MixinRecord ¶
type MixinRecord struct{}
MixinRecord contains information about a mixin used in a bundle For now it is a placeholder for data that we would like to include in the future.
type Stamp ¶
type Stamp struct { // ManifestDigest takes into account all unique data that goes into a // porter build to help determine if the last build is stale. // * manifest // * mixins // * (TODO) files in current directory ManifestDigest string `json:"manifestDigest"` // Mixins used in the bundle. Mixins map[string]MixinRecord `json:"mixins"` // Manifest is the base64 encoded porter.yaml. EncodedManifest string `json:"manifest"` // Version and commit define the version of the Porter used when a bundle was built. Version string `json:"version"` Commit string `json:"commit"` }
Stamp contains Porter specific metadata about a bundle that we can place in the custom section of a bundle.json
func (Stamp) DecodeManifest ¶
DecodeManifest base64 decodes the manifest stored in the stamp
Click to show internal directories.
Click to hide internal directories.