tfmodule

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2025 License: AGPL-3.0 Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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{}, unitKey string, p *project.StateProject) (project.Unit, error)

NewFromState creates new unit from state data.

type Unit

type Unit struct {
	base.Unit
	Source      string                 `yaml:"-" json:"source"`
	Version     string                 `yaml:"-" json:"version,omitempty"`
	Inputs      map[string]interface{} `yaml:"-" json:"inputs,omitempty"`
	LocalModule *common.FilesListT     `yaml:"-" json:"local_module"`
	CustomFiles *common.FilesListT     `yaml:"create_files,omitempty" json:"create_files,omitempty"`
	UnitKind    string                 `yaml:"-" json:"type"`
	// StateData            project.Unit           `yaml:"-" json:"-"`
	LocalModuleCachePath string `yaml:"-" json:"-"`
}

func NewEmptyUnit

func NewEmptyUnit() Unit

func NewUnit

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

func (*Unit) Build

func (u *Unit) Build() error

Build generate all terraform code for project.

func (*Unit) GetDiffData

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

func (*Unit) GetState

func (u *Unit) GetState() project.Unit

func (*Unit) GetStateUnit

func (u *Unit) GetStateUnit() *Unit

func (*Unit) GetUnitDiff

func (u *Unit) GetUnitDiff() UnitDiffSpec

func (*Unit) KindKey

func (u *Unit) KindKey() string

func (*Unit) LoadState

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

func (*Unit) Prepare

func (u *Unit) Prepare() error

Prepare scan all markers in unit, and build project unit links, and unit dependencies.

func (*Unit) ReadConfig

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

func (*Unit) ScanData

func (u *Unit) ScanData(scanner project.MarkerScanner) error

func (*Unit) UpdateProjectRuntimeData

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

UpdateProjectRuntimeData update project runtime, dataset, adds module outputs.

type UnitDiffSpec

type UnitDiffSpec struct {
	base.UnitDiffSpec
	Source       string              `json:"source"`
	Version      string              `json:"version,omitempty"`
	Inputs       interface{}         `json:"inputs,omitempty"`
	ModulesFiles map[string][]string `json:"module_files,omitempty"`
}

Jump to

Keyboard shortcuts

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