manifest

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Features

type Features struct {
	ConvergeVariables    bool `yaml:"converge_variables"`
	RandomizeAZPlacement bool `yaml:"randomize_az_placement"`
	UseDNSAddresses      bool `yaml:"use_dns_addresses"`
	UseTmpfsConfig       bool `yaml:"use_tmpfs_config"`
	UseShortDNSAddresses bool `yaml:"use_short_dns_addresses"`
}

type Payload

type Payload struct {
	Name      string     `validate:"required"`
	Features  Features   `yaml:",omitempty"`
	Releases  []Release  `validate:"required,dive"`
	Stemcells []Stemcell `validate:"required,dive"`
}

func (*Payload) Validate

func (p *Payload) Validate() (validator.ValidationErrorsTranslations, error)

type Release

type Release struct {
	Name         string            `validate:"required"`
	Version      string            `validate:"required"`
	URL          string            `yaml:",omitempty"`
	SHA1         string            `yaml:"sha1,omitempty"`
	Stemcell     []ReleaseStemcell `yaml:",omitempty" validate:"dive"`
	ExportedFrom []ReleaseStemcell `yaml:"exported_from,omitempty" validate:"dive"`
}

type ReleaseStemcell

type ReleaseStemcell struct {
	Name    string `validate:"required"`
	Version string `validate:"required"`
}

type Stemcell

type Stemcell struct {
	Alias   string `validate:"required"`
	OS      string `yaml:",omitempty" validate:"required_without=Name"`
	Version string `validate:"required"`
	Name    string `yaml:",omitempty" validate:"required_without=OS"`
}

Jump to

Keyboard shortcuts

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