configspec

package
v0.0.0-...-694507d Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chef

type Chef struct {
	Username      string `mapstructure:"username"`
	Password      string `mapstructure:"password"`
	ChefServer    string `mapstructure:"chef_server"`
	ClientKey     string `mapstructure:"client_key"`
	ValidationKey string `mapstructure:"validation_key"`
}

type Foreman

type Foreman struct {
	Username string `mapstructure:"username"`
	Password string `mapstructure:"password"`
}

type Infoblox

type Infoblox struct {
	Username string `mapstructure:"username"`
	Password string `mapstructure:"password"`
}

type Spec

type Spec struct {
	Foreman  Foreman  `mapstructure:"foreman"`
	Chef     Chef     `mapstructure:"chef"`
	Vsphere  Vsphere  `mapstructure:"vsphere"`
	Infoblox Infoblox `mapstructure:"infoblox"`
}

func Parse

func Parse(r io.Reader) (*Spec, error)

Due to current internal limitations, the entire contents of the io.Reader will be copied into memory first before parsing.

func ParseFile

func ParseFile(path string) (*Spec, error)

ParseFile parses the given configspec file.

type Vsphere

type Vsphere struct {
	Username string `mapstructure:"username"`
	Password string `mapstructure:"password"`
}

Jump to

Keyboard shortcuts

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