scriptrun

package
v0.51.2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(r registerer)

Register registers this executor factory into a given registerer.

Types

type ContextInfo added in v0.48.0

type ContextInfo struct {
	DeploymentID        string            `json:"deploymentID,omitempty"`
	ApplicationID       string            `json:"applicationID,omitempty"`
	ApplicationName     string            `json:"applicationName,omitempty"`
	TriggeredAt         int64             `json:"triggeredAt,omitempty"`
	TriggeredCommitHash string            `json:"triggeredCommitHash,omitempty"`
	TriggeredCommander  string            `json:"triggeredCommander,omitempty"`
	RepositoryURL       string            `json:"repositoryURL,omitempty"`
	Summary             string            `json:"summary,omitempty"`
	Labels              map[string]string `json:"labels,omitempty"`
	IsRollback          bool              `json:"isRollback,omitempty"`
}

ContextInfo is the information that will be passed to the script run stage.

func NewContextInfo added in v0.48.0

func NewContextInfo(d *model.Deployment, isRollback bool) *ContextInfo

NewContextInfo creates a new ContextInfo from the given deployment.

func (*ContextInfo) BuildEnv added in v0.48.0

func (src *ContextInfo) BuildEnv() (map[string]string, error)

BuildEnv builds the environment variables from the context info.

type Executor

type Executor struct {
	executor.Input
	// contains filtered or unexported fields
}

func (*Executor) Execute

func (e *Executor) Execute(sig executor.StopSignal) model.StageStatus

type RollbackExecutor

type RollbackExecutor struct {
	executor.Input
}

func (*RollbackExecutor) Execute

Jump to

Keyboard shortcuts

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