Documentation ¶
Index ¶
- type Factory
- type Unit
- func (u *Unit) Build() error
- func (u *Unit) GetDiffData() interface{}
- func (u *Unit) GetState() interface{}
- func (u *Unit) GetStateUnit() *Unit
- func (u *Unit) GetUnitDiff() UnitDiffSpec
- func (u *Unit) KindKey() string
- func (u *Unit) LoadState(stateData interface{}, modKey string, p *project.StateProject) error
- func (u *Unit) Prepare() error
- func (u *Unit) ReadConfig(spec map[string]interface{}, stack *project.Stack) error
- func (u *Unit) ScanData(scanner project.MarkerScanner) error
- func (u *Unit) UpdateProjectRuntimeData(p *project.Project) error
- type UnitDiffSpec
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) 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"` UnitKind string `yaml:"-" json:"type"` StateData interface{} `yaml:"-" json:"-"` LocalModuleCachePath string `yaml:"-" json:"-"` }
func NewEmptyUnit ¶
func NewEmptyUnit() Unit
func (*Unit) GetDiffData ¶
func (u *Unit) GetDiffData() interface{}
func (*Unit) GetStateUnit ¶
func (*Unit) GetUnitDiff ¶
func (u *Unit) GetUnitDiff() UnitDiffSpec
func (*Unit) LoadState ¶
func (u *Unit) LoadState(stateData interface{}, modKey string, p *project.StateProject) error
func (*Unit) Prepare ¶
Prepare scan all markers in unit, and build project unit links, and unit dependencies.
func (*Unit) ReadConfig ¶
type UnitDiffSpec ¶
type UnitDiffSpec struct { base.UnitDiffSpec Source string `json:"source"` Version string `json:"version,omitempty"` Inputs interface{} `json:"inputs,omitempty"` LocalModule *common.FilesListT `json:"local_module,omitempty"` }
Click to show internal directories.
Click to hide internal directories.