manifest

package
v0.0.0-...-73df0bb Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ManifestName check.Config `yaml:"manifest_name"`

	RootProperties   check.Config `yaml:"root_properties"`
	TopLevelJobs     check.Config `yaml:"top_level_jobs"`
	TopLevelNetworks check.Config `yaml:"top_level_networks"`
	YAMLAnchors      check.Config `yaml:"yaml_anchors"`
	VarInterpolation check.Config `yaml:"var_interpolation"`

	StemcellAlias check.Config `yaml:"stemcell_alias"`

	IGName       check.Config `yaml:"instance_group_name"`
	IGAZs        check.Config `yaml:"instance_group_azs"`
	IGStemcell   check.Config `yaml:"instance_group_stemcell"`
	IGProperties check.Config `yaml:"instance_group_properties"`
	IGLinks      check.Config `yaml:"instance_group_links"`
	StaticIPs    check.Config `yaml:"static_ips"`

	VariableName check.Config `yaml:"variable_name"`
}

func NewConfig

func NewConfig(bytes []byte) (Config, error)

type IGAZs

type IGAZs struct {
	check.Config
	// contains filtered or unexported fields
}

func NewIGAZs

func NewIGAZs(context check.Context, azs *[]string, config check.Config) IGAZs

func (IGAZs) Check

func (c IGAZs) Check() ([]check.Suggestion, error)

func (IGAZs) Description

func (c IGAZs) Description() check.Description
type IGLinks struct {
	check.Config
	// contains filtered or unexported fields
}

todo IGLinks should really be fatally validated in the Director

func NewIGLinks(context check.Context, consumes, provides interface{}, config check.Config) IGLinks

func (IGLinks) Check

func (c IGLinks) Check() ([]check.Suggestion, error)

func (IGLinks) Description

func (c IGLinks) Description() check.Description

type IGProperties

type IGProperties struct {
	check.Config
	// contains filtered or unexported fields
}

func NewIGProperties

func NewIGProperties(context check.Context, props interface{}, config check.Config) IGProperties

func (IGProperties) Check

func (c IGProperties) Check() ([]check.Suggestion, error)

func (IGProperties) Description

func (c IGProperties) Description() check.Description

type IGStemcell

type IGStemcell struct {
	check.Config
	// contains filtered or unexported fields
}

func NewIGStemcell

func NewIGStemcell(context check.Context, stemcell interface{}, config check.Config) IGStemcell

func (IGStemcell) Check

func (c IGStemcell) Check() ([]check.Suggestion, error)

func (IGStemcell) Description

func (c IGStemcell) Description() check.Description

type InstanceGroup

type InstanceGroup struct {
	Name string
	AZs  *[]string

	Stemcell   interface{}
	Properties interface{}

	Consumes interface{}
	Provides interface{}

	Networks []NetworkAssociation
}

type Job

type Job struct{}

type LintableManifest

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

func NewLintableManifest

func NewLintableManifest(bytes []byte, config Config) (LintableManifest, error)

func (LintableManifest) Lint

type Manifest

type Manifest struct {
	Name string

	Networks []Network
	Jobs     []Job

	Stemcells      []Stemcell
	InstanceGroups []InstanceGroup `yaml:"instance_groups"`

	Properties interface{}
	Variables  []Variable
}

type Network

type Network struct{}

type NetworkAssociation

type NetworkAssociation struct {
	Name      string
	Default   []string
	StaticIPs []string `yaml:"static_ips"`
}

type RootProperties

type RootProperties struct {
	check.Config
	// contains filtered or unexported fields
}

func NewRootProperties

func NewRootProperties(context check.Context, props interface{}, config check.Config) RootProperties

func (RootProperties) Check

func (c RootProperties) Check() ([]check.Suggestion, error)

func (RootProperties) Description

func (c RootProperties) Description() check.Description

type StaticIPs

type StaticIPs struct {
	check.Config
	// contains filtered or unexported fields
}

func NewStaticIPs

func NewStaticIPs(context check.Context, netAssocs []NetworkAssociation, config check.Config) StaticIPs

func (StaticIPs) Check

func (c StaticIPs) Check() ([]check.Suggestion, error)

func (StaticIPs) Description

func (c StaticIPs) Description() check.Description

type Stemcell

type Stemcell struct {
	Alias string
}

type TopLevelJobs

type TopLevelJobs struct {
	check.Config
	// contains filtered or unexported fields
}

func NewTopLevelJobs

func NewTopLevelJobs(context check.Context, jobs []Job, config check.Config) TopLevelJobs

func (TopLevelJobs) Check

func (c TopLevelJobs) Check() ([]check.Suggestion, error)

func (TopLevelJobs) Description

func (c TopLevelJobs) Description() check.Description

type TopLevelNetworks

type TopLevelNetworks struct {
	check.Config
	// contains filtered or unexported fields
}

func NewTopLevelNetworks

func NewTopLevelNetworks(context check.Context, networks []Network, config check.Config) TopLevelNetworks

func (TopLevelNetworks) Check

func (c TopLevelNetworks) Check() ([]check.Suggestion, error)

func (TopLevelNetworks) Description

func (c TopLevelNetworks) Description() check.Description

type VarInterpolation

type VarInterpolation struct {
	check.Config
	// contains filtered or unexported fields
}

func NewVarInterpolation

func NewVarInterpolation(context check.Context, bytes []byte, config check.Config) VarInterpolation

func (VarInterpolation) Check

func (c VarInterpolation) Check() ([]check.Suggestion, error)

func (VarInterpolation) Description

func (c VarInterpolation) Description() check.Description

type Variable

type Variable struct {
	Name string
}

type YAMLAnchors

type YAMLAnchors struct {
	check.Config
	// contains filtered or unexported fields
}

func NewYAMLAnchors

func NewYAMLAnchors(context check.Context, bytes []byte, config check.Config) YAMLAnchors

func (YAMLAnchors) Check

func (c YAMLAnchors) Check() ([]check.Suggestion, error)

func (YAMLAnchors) Description

func (c YAMLAnchors) Description() check.Description

Jump to

Keyboard shortcuts

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