environment

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2014 License: Apache-2.0 Imports: 7 Imported by: 22

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetList

func GetList() []string

func MakeDefaultEnvironment

func MakeDefaultEnvironment()

Creates the default environment on startup

Types

type ChefEnvironment

type ChefEnvironment struct {
	Name             string                 `json:"name"`
	ChefType         string                 `json:"chef_type"`
	JsonClass        string                 `json:"json_class"`
	Description      string                 `json:"description"`
	Default          map[string]interface{} `json:"default_attributes"`
	Override         map[string]interface{} `json:"override_attributes"`
	CookbookVersions map[string]string      `json:"cookbook_versions"`
}

func Get

func Get(env_name string) (*ChefEnvironment, error)

func New

func New(name string) (*ChefEnvironment, util.Gerror)

func NewFromJson

func NewFromJson(json_env map[string]interface{}) (*ChefEnvironment, util.Gerror)

func (*ChefEnvironment) AllCookbookHash

func (e *ChefEnvironment) AllCookbookHash(num_versions interface{}) map[string]interface{}

func (*ChefEnvironment) Delete

func (e *ChefEnvironment) Delete() error

func (*ChefEnvironment) DocId

func (e *ChefEnvironment) DocId() string

Search indexing methods

func (*ChefEnvironment) Flatten

func (e *ChefEnvironment) Flatten() []string

func (*ChefEnvironment) GetName

func (e *ChefEnvironment) GetName() string

func (*ChefEnvironment) Index

func (e *ChefEnvironment) Index() string

func (*ChefEnvironment) RecipeList

func (e *ChefEnvironment) RecipeList() []string

func (*ChefEnvironment) Save

func (e *ChefEnvironment) Save() error

func (*ChefEnvironment) URLType

func (e *ChefEnvironment) URLType() string

func (*ChefEnvironment) UpdateFromJson

func (e *ChefEnvironment) UpdateFromJson(json_env map[string]interface{}) util.Gerror

Jump to

Keyboard shortcuts

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