manifest

package
v0.0.0-...-b9690c5 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package manifest represents internal structure of a release job.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	Name        string `yaml:"name"`
	Description string `yaml:"description"`

	TemplateNames TemplateNames `yaml:"templates"`

	PackageNames []string `yaml:"packages"`

	PropertyMappings PropertyMappings `yaml:"properties"`
}

type Manifest

type Manifest struct {
	Job Job
}

func NewManifestFromBytes

func NewManifestFromBytes(bytes []byte) (Manifest, error)

func NewManifestFromPath

func NewManifestFromPath(path string, fs boshsys.FileSystem) (Manifest, error)

type PropertyDefinition

type PropertyDefinition struct {
	Description string `yaml:"description"`

	// Non-raw field is populated by the validator.
	DefaultRaw interface{} `yaml:"default"`
	Default    interface{}

	// Non-raw field is populated by the validator.
	ExampleRaw interface{} `yaml:"example"`
	Example    interface{}

	Examples []PropertyExampleDefinition `yaml:"examples"`
}

type PropertyExampleDefinition

type PropertyExampleDefinition struct {
	Description string

	// Non-raw field is populated by the validator.
	ValueRaw interface{} `yaml:"value"`
	Value    interface{}
}

type PropertyMappings

type PropertyMappings map[string]PropertyDefinition

type SyntaxValidator

type SyntaxValidator struct {
	// contains filtered or unexported fields
}

func NewSyntaxValidator

func NewSyntaxValidator(manifest *Manifest) SyntaxValidator

func (SyntaxValidator) Validate

func (v SyntaxValidator) Validate() error

type TemplateNames

type TemplateNames map[string]string

Jump to

Keyboard shortcuts

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