Help us shape the future of Go! Take the 2026 Go Developer Survey

cloudaccountdeployment

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cfg, _ = config.GetConfig()
View Source
var StepDeployments = map[string]ExecutionResult{}

Functions

func FlushTrack

func FlushTrack(logger *logrus.Entry, track string) (steps map[string]*UpdateRegionalStatusPayload, err error)

Flush track will record a track's regional deployments

func RecordStepFail

func RecordStepFail(logger *logrus.Entry, csp string, track string, step string, regionDeployType string, region string, executionID string, stage string, runiacTargetRegions []string, err error)

func RecordStepStart

func RecordStepStart(logger *logrus.Entry, accountID string, track string, step string, regionDeployType string, region string, dryRun bool, csp string, version string, executionID string, stepFunctionName string, codePipelineExecutionID string, stage string, runiacTargetRegions []string)

func RecordStepSuccess

func RecordStepSuccess(logger *logrus.Entry, csp string, track string, step string, regionDeployType string, region string, executionID string, stage string, runiacTargetRegions []string)

func RecordStepTestFail

func RecordStepTestFail(logger *logrus.Entry, csp string, track string, step string, regionDeployType string, region string, executionID string, stage string, runiacTargetRegions []string, err error)

Types

type DeployPhase

type DeployPhase int
const (
	PreDeploy DeployPhase = iota
	PostDeploy
	RegionalPostDeploy
)

func (DeployPhase) String

func (d DeployPhase) String() string

type DeployResult

type DeployResult int
const (
	InProgress DeployResult = iota
	Success
	Fail
	Unstable
)

func (DeployResult) String

func (d DeployResult) String() string

type ExecutionResult

type ExecutionResult struct {
	Result                  DeployResult
	Region                  string
	RegionDeployType        string
	AccountStepDeploymentID string
	CSP                     string
	TargetRegions           []string
}

type UpdateRegionalStatusPayload

type UpdateRegionalStatusPayload struct {
	AccountStepDeploymentID string            `json:"account_step_deployment_id"`
	FailedRegions           []string          `json:"failed_regions"`
	DeploymentPhase         string            `json:"deployment_phase"`
	CSP                     string            `json:"csp"`
	Result                  string            `json:"result"`
	ResultMessage           string            `json:"result_message"`
	TargetRegions           []string          `json:"-"`
	Executions              []ExecutionResult `json:"-"`
}

type UpdateStatusPayload

type UpdateStatusPayload struct {
	Product             string   `json:"product"`
	AccountID           string   `json:"account_id"`
	CSP                 string   `json:"csp"`
	DeploymentPhase     string   `json:"deployment_phase"`
	Version             string   `json:"version"`
	Result              string   `json:"result"`
	ResultMessage       string   `json:"result_message"`
	Tool                string   `json:"tool"`
	AccountDeploymentID string   `json:"account_deployment_id"`
	RingDeploymentID    string   `json:"ring_deployment_id"`
	ReleaseDeploymentID string   `json:"release_deployment_id"`
	Stage               string   `json:"stage"`
	Track               string   `json:"track"`
	Step                string   `json:"step"`
	TargetRegions       []string `json:"targeted_regions"`
	PrimaryRegion       string   `json:"primary_region"`
}

Jump to

Keyboard shortcuts

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