tfmodule

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: AGPL-3.0 Imports: 8 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 driver factory.

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 Unit

type Unit struct {
	base.Unit
	OutputRaw string                 `yaml:"-" json:"output"`
	Inputs    map[string]interface{} `yaml:"-" json:"inputs"`
	UnitKind  string                 `yaml:"-" json:"type"`
	StatePtr  *Unit                  `yaml:"-" json:"-"`
}

func NewEmptyUnit

func NewEmptyUnit() Unit

func NewUnit

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

func (*Unit) Apply

func (u *Unit) Apply() (err error)

func (*Unit) Build

func (u *Unit) Build() error

Build generate all terraform code for project.

func (*Unit) GetDiffData

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

func (*Unit) GetState

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

func (*Unit) GetUnitDiff

func (m *Unit) GetUnitDiff() UnitDiffSpec

func (*Unit) KindKey

func (u *Unit) KindKey() string

func (*Unit) LoadState

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

func (*Unit) ReadConfig

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

func (*Unit) ReplaceMarkers

func (u *Unit) ReplaceMarkers() error

ReplaceMarkers replace all templated markers with values.

func (*Unit) UpdateProjectRuntimeData

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

UpdateProjectRuntimeData update project runtime dataset, adds printer unit outputs.

type UnitDiffSpec

type UnitDiffSpec struct {
	base.UnitDiffSpec
	Inputs        interface{} `json:"inputs"`
	OutputsConfig *string     `json:"-"`
}

Jump to

Keyboard shortcuts

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