manifest

package
v0.0.0-...-cf7397b Latest Latest
Warning

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

Go to latest
Published: May 3, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Scaffold

func Scaffold(path string) error

Scaffold takes a path and creates a minimal duffle configuration file (duffle.json)

and scaffolds the components in that manifest

Types

type InvocationImage

type InvocationImage struct {
	Name          string            `json:"name"`
	Builder       string            `json:"builder"`
	Configuration map[string]string `json:"configuration"`
}

InvocationImage represents an invocation image component of a CNAB bundle

type Manifest

type Manifest struct {
	Name               string                       `json:"name"`
	Version            string                       `json:"version"`
	SchemaVersion      string                       `json:"schemaVersion"`
	Description        string                       `json:"description,omitempty"`
	Keywords           []string                     `json:"keywords,omitempty"`
	Maintainers        []bundle.Maintainer          `json:"maintainers,omitempty"`
	InvocationImages   map[string]*InvocationImage  `json:"invocationImages,omitempty"`
	Images             map[string]bundle.Image      `json:"images,omitempty"`
	Actions            map[string]bundle.Action     `json:"actions,omitempty"`
	Parameters         map[string]bundle.Parameter  `json:"parameters,omitempty"`
	Credentials        map[string]bundle.Credential `json:"credentials,omitempty"`
	Definitions        definition.Definitions       `json:"definitions,omitempty"`
	Outputs            map[string]bundle.Output     `json:"outputs,omitempty"`
	Custom             map[string]interface{}       `json:"custom,omitempty"`
	License            string                       `json:"license,omitempty"`
	RequiredExtensions []string                     `json:"requiredExtensions,omitempty"`
}

Manifest represents a duffle manifest.

func Load

func Load(name, dir string) (*Manifest, error)

Load parses the named file into a manifest.

func New

func New() *Manifest

New creates a new manifest with the Environments intialized.

Jump to

Keyboard shortcuts

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