Documentation ¶
Index ¶
- type Cookbook
- func (c *Cookbook) CookbookList(importedOnly bool) []*CookbookMetadata
- func (c *Cookbook) DeleteImportedCookbook(name string) error
- func (c *Cookbook) GetCookbook(name string) *CookbookMetadata
- func (c *Cookbook) GetRecipe(recipeKey, iaas string) Recipe
- func (c *Cookbook) HasRecipe(recipeKey, iaas string) bool
- func (c *Cookbook) IaaSList() []provider.CloudProvider
- func (c *Cookbook) ImportCookbook(cookbookPath string) (err error)
- func (c *Cookbook) MarshalJSON() ([]byte, error)
- func (c *Cookbook) RecipeList() []CookbookRecipeInfo
- func (c *Cookbook) SetRecipe(recipe Recipe)
- func (c *Cookbook) UnmarshalJSON(b []byte) error
- func (c *Cookbook) Validate() error
- type CookbookMetadata
- type CookbookRecipeInfo
- type Recipe
- type Variable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cookbook ¶
type Cookbook struct {
// contains filtered or unexported fields
}
func NewCookbook ¶
func (*Cookbook) CookbookList ¶
func (c *Cookbook) CookbookList(importedOnly bool) []*CookbookMetadata
func (*Cookbook) DeleteImportedCookbook ¶
func (*Cookbook) GetCookbook ¶
func (c *Cookbook) GetCookbook(name string) *CookbookMetadata
func (*Cookbook) IaaSList ¶
func (c *Cookbook) IaaSList() []provider.CloudProvider
func (*Cookbook) ImportCookbook ¶
func (*Cookbook) MarshalJSON ¶
func (*Cookbook) RecipeList ¶
func (c *Cookbook) RecipeList() []CookbookRecipeInfo
func (*Cookbook) UnmarshalJSON ¶
type CookbookMetadata ¶
type CookbookMetadata struct { CookbookName string `yaml:"cookbook-name"` CookbookVersion string `yaml:"cookbook-version"` Description string `yaml:"description"` TerraformVersion string `yaml:"terraform-version"` TargetOsName string `yaml:"target-os-name"` TargetOsArch string `yaml:"target-os-arch"` EnvVars [][]string `yaml:"env-args"` Imported bool Recipes []string // contains filtered or unexported fields }
type CookbookRecipeInfo ¶
type Recipe ¶
type Recipe interface { config.Configurable CreateCLI( workingPath string, outputBuffer, errorBuffer io.Writer, ) (run.CLI, error) ConfigPath() string PluginPath() string StatePath() string RunPath() string GetVariable(name string) (*Variable, bool) GetVariables() []*Variable GetKeyFieldValues() []string IsBastion() bool ResourceInstanceList() []string ResourceInstanceDataList() []string BackendType() string RepoTimestamp() string CookbookName() string CookbookVersion() string RecipeName() string RecipeIaaS() string RecipeKey() string AddEnvVars(vars map[string]string) }
Click to show internal directories.
Click to hide internal directories.