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

bean

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: Apache-2.0 Imports: 6 Imported by: 15

Documentation

Index

Constants

View Source
const (
	APP_LABEL_KEY_PREFIX         = "APP_LABEL_KEY"
	APP_LABEL_VALUE_PREFIX       = "APP_LABEL_VALUE"
	APP_LABEL_COUNT              = "APP_LABEL_COUNT"
	CHILD_CD_ENV_NAME_PREFIX     = "CHILD_CD_ENV_NAME"
	CHILD_CD_CLUSTER_NAME_PREFIX = "CHILD_CD_CLUSTER_NAME"
	CHILD_CD_COUNT               = "CHILD_CD_COUNT"
	APP_NAME                     = "APP_NAME"
)
View Source
const (
	ARGOCD_SYNC_ERROR = "error in syncing argoCD app"
)
View Source
const (
	CronJobChartRegexExpression = "cronjob-chart_1-(2|3|4|5|6)-0"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CdTriggerRequest added in v1.8.0

type CdTriggerRequest struct {
	CdWf                   *pipelineConfig.CdWorkflow
	Pipeline               *pipelineConfig.Pipeline
	Artifact               *repository.CiArtifact
	ApplyAuth              bool
	TriggeredBy            int32
	RefCdWorkflowRunnerId  int
	RunStageInEnvNamespace string
	WorkflowType           bean.WorkflowType
	CdWorkflowRunnerId     int
	TriggerContext
	// below fields used for retrigger flow
	IsRetrigger bool
}

type DeploymentType

type DeploymentType = string
const (
	Helm                    DeploymentType = "helm"
	ArgoCd                  DeploymentType = "argo_cd"
	FluxCd                  DeploymentType = "flux_cd"
	ManifestDownload        DeploymentType = "manifest_download"
	GitOpsWithoutDeployment DeploymentType = "git_ops_without_deployment"
)

type TriggerContext

type TriggerContext struct {
	// Context is a context object to be passed to the pipeline trigger
	// +optional
	Context context.Context
	// ReferenceId is a unique identifier for the workflow runner
	// refer pipelineConfig.CdWorkflowRunner
	ReferenceId *string

	// manual or automatic
	TriggerType TriggerType
}

type TriggerEvent

type TriggerEvent struct {
	SaveTriggerHistory         bool
	PerformChartPush           bool
	PerformDeploymentOnCluster bool
	DeployArgoCdApp            bool
	DeploymentAppType          string
	ManifestStorageType        string
	TriggeredBy                int32
	TriggeredAt                time.Time
}

type TriggerRequirementRequestDto added in v0.7.0

type TriggerRequirementRequestDto struct {
	TriggerRequest CdTriggerRequest
}

type TriggerType added in v1.0.0

type TriggerType int
const (
	Automatic TriggerType = 1
	Manual    TriggerType = 2
)

type ValidateDeploymentTriggerObj added in v1.2.1

type ValidateDeploymentTriggerObj struct {
	Runner               *pipelineConfig.CdWorkflowRunner
	CdPipeline           *pipelineConfig.Pipeline
	ImageDigest          string
	DeploymentConfig     *bean2.DeploymentConfig
	TriggeredBy          int32
	IsRollbackDeployment bool
}

func (*ValidateDeploymentTriggerObj) IsDeploymentTypeRollback added in v1.2.1

func (r *ValidateDeploymentTriggerObj) IsDeploymentTypeRollback() bool

type VulnerabilityCheckRequest added in v0.7.0

type VulnerabilityCheckRequest struct {
	ImageDigest string
	CdPipeline  *pipelineConfig.Pipeline
}

Jump to

Keyboard shortcuts

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