generator

package
v0.0.0-...-c746026 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateManifestFromProperty

func CreateManifestFromProperty(name string, property Property) (interface{}, error)

func DeterminePropertyBlueprintDefault

func DeterminePropertyBlueprintDefault(name string, property Property) (interface{}, error)

func DeterminePropertyBlueprintType

func DeterminePropertyBlueprintType(name string, property Property) (string, error)

func Tile

func Tile(release BoshReleasePayload) (metadata.Payload, error)

Types

type BoshReleasePayload

type BoshReleasePayload struct {
	Specs         []SpecPayload
	Name          string
	LatestVersion string
}

func ParseRelease

func ParseRelease(releasePath string) (BoshReleasePayload, error)

type Property

type Property struct {
	Env         string
	Description string
	Default     interface{}
	Example     interface{}
	Type        string
	EnvFile     string `yaml:"env_file"`
	EnvFields   map[string]struct {
		EnvFile string `yaml:"env_file"`
	} `yaml:"env_fields"`
}

type ReleasePayload

type ReleasePayload struct {
	Name               string
	Version            string
	CommitHash         string `yaml:"commit_hash"`
	UncommittedChanges bool   `yaml:"uncommitted_changes"`
	Jobs               []struct {
		Name        string
		Version     string
		Fingerprint string
		Sha1        string `yaml:"sha1"`
	}
	Packages []struct {
		Name         string
		Version      string
		Fingerprint  string
		Sha1         string `yaml:"sha1"`
		Dependencies interface{}
	}
	License struct {
		Version     string
		Fingerprint string
		Sha1        string `yaml:"sha1"`
	}
}

type SpecPayload

type SpecPayload struct {
	Name        string
	Description string
	Templates   map[string]string
	Packages    []string
	Consumes    []consumePayload
	Provides    []providerPayload
	Properties  map[string]Property `yaml:"properties"`
}

func ParseSpec

func ParseSpec(filename string) (SpecPayload, error)

Jump to

Keyboard shortcuts

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