service

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: AGPL-3.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StableVersion = "stable"
	IncludeFormat = "config/%s/include"
	ConfigFile    = "config.yaml"
	EntigoSource  = "github.com/entigolabs/entigo-infralib-release"
)

Variables

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

Functions

func AddModuleInputFiles

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

func AddStepsFilesFromBucket

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

func AddStepsFilesFromFolder

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

func GetBaseConfig added in v1.3.0

func GetBaseConfig(prefix, configFile string, bucket model.Bucket) model.Config

func GetCloudProvider

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

func GetFullConfig added in v1.3.0

func GetFullConfig(ssm model.SSM, prefix, configFile string, bucket model.Bucket) model.Config

func GetLocalConfig

func GetLocalConfig(ssm model.SSM, prefix, configFile string, bucket model.Bucket, addInputs bool) 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(ssm model.SSM, prefix string, bucket model.Bucket, addInputs bool) model.Config

func GetStepState

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

func ProcessConfig added in v1.3.0

func ProcessConfig(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 LocalPipeline added in v1.2.0

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

func NewLocalPipeline added in v1.2.0

func NewLocalPipeline(resources model.Resources, flags common.Pipeline) *LocalPipeline

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