tfmodule

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2021 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct {
}

Factory factory for s3 backends.

func (*Factory) New

func (f *Factory) New(spec map[string]interface{}, stack *project.Stack) (project.Unit, error)

New creates new unit.

func (*Factory) NewFromState

func (f *Factory) NewFromState(spec map[string]interface{}, modKey string, p *project.StateProject) (project.Unit, error)

NewFromState creates new unit from state data.

type State

type State struct {
	common.StateSpecCommon
	Source      string            `json:"source"`
	Version     string            `json:"version,omitempty"`
	ModType     string            `json:"type"`
	Inputs      interface{}       `json:"inputs,omitempty"`
	LocalModule map[string]string `json:"local_module"`
}

func (*State) GetType

func (s *State) GetType() string

type StateDiff

type StateDiff struct {
	common.StateSpecDiffCommon
	Source      string            `json:"source"`
	Version     string            `json:"version,omitempty"`
	Inputs      interface{}       `json:"inputs,omitempty"`
	LocalModule map[string]string `json:"local_module"`
}

type Unit added in v0.5.0

type Unit struct {
	common.Unit
	// contains filtered or unexported fields
}

func (*Unit) Build added in v0.5.0

func (m *Unit) Build() error

Build generate all terraform code for project.

func (*Unit) GetDiffData added in v0.5.0

func (m *Unit) GetDiffData() interface{}

func (*Unit) GetState added in v0.5.0

func (m *Unit) GetState() interface{}

func (*Unit) KindKey added in v0.5.0

func (m *Unit) KindKey() string

func (*Unit) LoadState added in v0.5.0

func (m *Unit) LoadState(stateData interface{}, modKey string, p *project.StateProject) error

func (*Unit) ReadConfig added in v0.5.0

func (m *Unit) ReadConfig(spec map[string]interface{}, stack *project.Stack) error

func (*Unit) ReplaceMarkers added in v0.5.0

func (m *Unit) ReplaceMarkers() error

ReplaceMarkers replace all templated markers with values.

func (*Unit) UpdateProjectRuntimeData added in v0.5.0

func (m *Unit) UpdateProjectRuntimeData(p *project.Project) error

UpdateProjectRuntimeData update project runtime dataset, adds module outputs.

Jump to

Keyboard shortcuts

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