shell

package
v0.4.0-alfa5 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OutputsReplacer

func OutputsReplacer(data reflect.Value, module project.Module) (reflect.Value, error)

OutputsReplacer - replace output markers in shell module to env variables names.

Types

type DependencyMarker

type DependencyMarker struct {
	InfraName  string
	ModuleName string
	Output     string
}

DependencyMarker - marker for template function AddDepMarker. Represent module dependency (remote state).

type Factory

type Factory struct {
}

Factory factory for s3 backends.

func (*Factory) New

New creates new module driver factory.

type Module

type Module struct {
	BackendPtr project.Backend

	Type   string
	Inputs []string
	// contains filtered or unexported fields
}

Module describe cluster.dev module.

func (*Module) Backend

func (m *Module) Backend() project.Backend

Backend return module backend.

func (*Module) BuildDeps

func (m *Module) BuildDeps() error

func (*Module) CreateCodeDir

func (m *Module) CreateCodeDir(codeDir string) error

CreateCodeDir generate all code for module.

func (*Module) Dependencies

func (m *Module) Dependencies() []*project.Dependency

Dependencies return slice of module dependencies.

func (*Module) ExpectedOutputs

func (m *Module) ExpectedOutputs() *map[string]bool

ExpectedOutputs return expected outputs.

func (*Module) GetApplyShellCmd

func (m *Module) GetApplyShellCmd() string

GetApplyShellCmd return string with bash commands sequence witch need to run in working dir to apply this module.

func (*Module) GetDestroyShellCmd

func (m *Module) GetDestroyShellCmd() string

GetDestroyShellCmd return string with bash commands sequence witch need to run in working dir to destroy this module.

func (*Module) InfraName

func (m *Module) InfraName() string

InfraName return module infrastructure name.

func (*Module) InfraPtr

func (m *Module) InfraPtr() *project.Infrastructure

InfraPtr return ptr to module infrastructure.

func (*Module) Name

func (m *Module) Name() string

Name return module name.

func (*Module) PreHook

func (m *Module) PreHook() *project.Dependency

func (*Module) ProjectPtr

func (m *Module) ProjectPtr() *project.Project

ProjectPtr return ptr to module project.

func (*Module) ReplaceMarkers

func (m *Module) ReplaceMarkers() error

ReplaceMarkers replace all templated markers with values.

func (*Module) Self

func (m *Module) Self() interface{}

Self return pointer to self. It should be used fo access to some internal module data or methods (witch not described in Module interface) from this module driver.

type TFModuleDriver

type TFModuleDriver struct {
	// contains filtered or unexported fields
}

TFModuleDriver driver for module type

func (*TFModuleDriver) GetScanners

func (d *TFModuleDriver) GetScanners() []project.MarkerScanner

GetScanners return list of marker scanners for this module driver.

func (*TFModuleDriver) GetTemplateFunctions

func (d *TFModuleDriver) GetTemplateFunctions() map[string]interface{}

GetTemplateFunctions return list of additional template functions for this module driver.

func (*TFModuleDriver) NewModule

func (d *TFModuleDriver) NewModule(spec map[string]interface{}, infra *project.Infrastructure) (project.Module, error)

NewModule creates the new TerraformModule.

Jump to

Keyboard shortcuts

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