schema

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2016 License: CC0-1.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ErrMalformedV1_0_0YamlPrefix is just the prefix to the error message for when the program is unable to parse
	// data into the v1.0.0 yaml struct.
	ErrMalformedV1_0_0YamlPrefix = "Unable to parse yaml data"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependencies

type Dependencies struct {
	Certifications []common.Entry `yaml:"certifications"`
	Systems        []common.Entry `yaml:",flow"`
	Standards      []common.Entry `yaml:",flow"`
}

Dependencies contains all the dependencies for the system

type Metadata

type Metadata struct {
	Description string   `yaml:"description"`
	Maintainers []string `yaml:",flow"`
}

Metadata contains metadata about the system.

type Schema

type Schema struct {
	common.Base    `yaml:",inline"`
	Meta           Metadata     `yaml:"metadata"`
	Name           string       `yaml:"name"`
	Components     []string     `yaml:",flow"`
	Certifications []string     `yaml:",flow"`
	Standards      []string     `yaml:",flow"`
	Dependencies   Dependencies `yaml:"dependencies"`
	// contains filtered or unexported fields
}

Schema contains the structs for the v1.0.0 schema

func (*Schema) GetResources

func (s *Schema) GetResources(source string, destination string, worker *common.ConfigWorker) error

GetResources will download all the resources that are specified by the v1.0.0 of the schema first by copying the local resources then downloading the remote ones and letting their respective schema version handle how to get their resources.

func (*Schema) Parse

func (s *Schema) Parse(data []byte) error

Parse will parse using it's own schema. In this case the v1.0.0 schema.

Jump to

Keyboard shortcuts

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