Help us shape the future of Go! Take the 2026 Go Developer Survey

expander

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2016 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 Expander

type Expander interface {
	ExpandTemplate(template *common.Template) (string, error)
}

Expander abstracts interactions with the expander and deployer services.

func NewExpander

func NewExpander(binary string) Expander

NewExpander returns a new initialized Expander.

type ExpansionResponse

type ExpansionResponse struct {
	Config string `json:"config"`
	Layout string `json:"layout"`
}

ExpansionResponse describes the results of marshaling an ExpansionResult.

func NewExpansionResponse

func NewExpansionResponse(output string) (*ExpansionResponse, error)

NewExpansionResponse creates and returns a new expansion response from the raw output of ExpandTemplate.

func (*ExpansionResponse) Unmarshal

func (eResponse *ExpansionResponse) Unmarshal() (*ExpansionResult, error)

Unmarshal creates and returns an ExpansionResult from an ExpansionResponse.

type ExpansionResult

type ExpansionResult struct {
	Config map[string]interface{}
	Layout map[string]interface{}
}

ExpansionResult describes the unmarshalled output of ExpandTemplate.

func NewExpansionResult

func NewExpansionResult(output string) (*ExpansionResult, error)

NewExpansionResult creates and returns a new expansion result from the raw output of ExpandTemplate.

func (*ExpansionResult) Marshal

func (eResult *ExpansionResult) Marshal() (*ExpansionResponse, error)

Marshal creates and returns an ExpansionResponse from an ExpansionResult.

Jump to

Keyboard shortcuts

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