deployment_order

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FirstBatch        = iota + 1
	DeployModeEnvName = "ERDA_DEPLOY_MODES"
	DefaultMode       = "default"
)
View Source
const (
	I18nPermissionDeniedKey   = "DeployPermissionDenied"
	I18nFailedToParseErdaYaml = "FailedToParseErdaYaml"
	I18nEmptyErdaYaml         = "EmptyErdaYaml"
	I18nCustomAddonNotReady   = "CustomAddonNotReady"
	I18nAddonDoesNotExist     = "AddonDoesNotExist"
	I18nApplicationDeploying  = "ApplicationDeploying"
	I18nAddonPlanIllegal      = "AddonPlanIllegal"
	I18nAddonFormatIllegal    = "AddonFormatIllegal"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DeploymentOrder

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

func New

func New(options ...Option) *DeploymentOrder

func (*DeploymentOrder) ContinueDeployOrder

func (d *DeploymentOrder) ContinueDeployOrder(orderId string) error

ContinueDeployOrder deploy from queue compensation

func (*DeploymentOrder) FetchDeploymentConfigDetail

func (d *DeploymentOrder) FetchDeploymentConfigDetail(namespace string) ([]apistructs.EnvConfig, []apistructs.EnvConfig, error)

func (*DeploymentOrder) Get

func (*DeploymentOrder) List

func (*DeploymentOrder) PushOnDeploymentOrderPolling

func (d *DeploymentOrder) PushOnDeploymentOrderPolling() (abort bool, err0 error)

func (*DeploymentOrder) RenderDetail

func (d *DeploymentOrder) RenderDetail(ctx context.Context, id, userId, releaseId, workspace string,
	projectId uint64, modes []string) (*apistructs.DeploymentOrderDetail, error)

type Option

type Option func(*DeploymentOrder)

func WithAddon

func WithAddon(a *addon.Addon) Option

func WithBundle

func WithBundle(bdl *bundle.Bundle) Option

WithBundle with bundle

func WithDBClient

func WithDBClient(db *dbclient.DBClient) Option

WithDBClient with database client

func WithDeployment

func WithDeployment(deploy *deployment.Deployment) Option

WithDeployment with deployment service

func WithEnvConfig

func WithEnvConfig(envConfig *environment.EnvConfig) Option

With with dicehub release service

func WithQueue

func WithQueue(queue *queue.PusherQueue) Option

WithQueue with queue service

func WithReleaseSvc

func WithReleaseSvc(svc pb.ReleaseServiceServer) Option

WithReleaseSvc with dicehub release service

func WithRuntime

func WithRuntime(rt *runtime.Runtime) Option

WithRuntime with runtime service

Jump to

Keyboard shortcuts

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