configadapter

package
v0.21.1-beta.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const SchemaVersion = "v1.0.0"

Variables

This section is empty.

Functions

This section is empty.

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 NewManifestConverter(cxt *context.Context, manifest *manifest.Manifest, imageDigests map[string]string, mixins []mixin.Metadata) *ManifestConverter

func (*ManifestConverter) GenerateStamp

func (c *ManifestConverter) GenerateStamp() Stamp

func (*ManifestConverter) ToBundle

func (c *ManifestConverter) ToBundle() *bundle.Bundle

type Stamp

type Stamp struct {
	ManifestDigest string `json:"manifestDigest"`
}

func LoadStamp

func LoadStamp(bun *bundle.Bundle) (*Stamp, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL