service

package
v0.3.91-rc118 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StableVersion = "stable"
	IncludeFormat = "config/%s/include"

	EntigoSource = "github.com/entigolabs/entigo-infralib-release"
)

Variables

View Source
var ReservedFiles = model.ToSet([]string{"main.tf", "provider.tf", "backend.conf"})

Functions

func AddModuleInputFiles

func AddModuleInputFiles(config *model.Config, basePath string, readFile func(string) ([]byte, error))

func AddStepsFilesFromBucket

func AddStepsFilesFromBucket(config *model.Config, bucket model.Bucket)

func AddStepsFilesFromFolder

func AddStepsFilesFromFolder(config *model.Config, basePath string)

func GetCloudProvider

func GetCloudProvider(ctx context.Context, flags *common.Flags) model.CloudProvider

func GetConfig

func GetConfig(configFile string, bucket model.Bucket) model.Config

func GetLocalConfig

func GetLocalConfig(configFile string) model.Config

func GetModuleState

func GetModuleState(stepState *model.StateStep, moduleName string) *model.StateModule

func GetProviderPrefix

func GetProviderPrefix(flags *common.Flags) string

func GetRemoteConfig

func GetRemoteConfig(bucket model.Bucket) model.Config

func GetStepState

func GetStepState(state *model.State, stepName string) *model.StateStep

func ProcessSteps

func ProcessSteps(config *model.Config, providerType model.ProviderType)

func PutAdditionalFiles

func PutAdditionalFiles(bucket model.Bucket, steps []model.Step)

func PutConfig

func PutConfig(bucket model.Bucket, config model.Config)

func ValidateConfig

func ValidateConfig(config *model.Config, state *model.State)

Types

type Agent

type Agent interface {
	CreatePipeline(version string) error
	UpdateProjectImage(version string, cmd common.Command) error
}

func NewAgent

func NewAgent(resources model.Resources) Agent

type Deleter

type Deleter interface {
	Delete()
	Destroy() bool
}

func NewDeleter

func NewDeleter(ctx context.Context, flags *common.Flags) Deleter

type Updater

type Updater interface {
	Run()
	Update()
}

func NewUpdater

func NewUpdater(ctx context.Context, flags *common.Flags) Updater

Jump to

Keyboard shortcuts

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