tfmodule

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: AGPL-3.0 Imports: 5 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 State

type State struct {
	common.Unit
	ModType      string      `json:"type"`
	Inputs       interface{} `json:"inputs"`
	ModOutputRaw string      `json:"output"`
}

func (*State) GetType

func (s *State) GetType() string

type StateDiff

type StateDiff struct {
	common.UnitDiffSpec
	Inputs interface{} `json:"inputs"`
}

type Unit

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

func (*Unit) Apply

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

func (*Unit) Build

func (m *Unit) Build() error

CreateCodeDir generate all terraform code for project.

func (*Unit) GetDiffData

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

func (*Unit) GetState

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

func (*Unit) KindKey

func (m *Unit) KindKey() string

func (*Unit) LoadState

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

func (*Unit) ReadConfig

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

func (*Unit) ReplaceMarkers

func (m *Unit) ReplaceMarkers() error

ReplaceMarkers replace all templated markers with values.

func (*Unit) UpdateProjectRuntimeData

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

UpdateProjectRuntimeData update project runtime dataset, adds printer unit outputs.

Jump to

Keyboard shortcuts

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