Documentation ¶
Index ¶
- Constants
- type DeploymentOrder
- func (d *DeploymentOrder) Cancel(ctx context.Context, req *apistructs.DeploymentOrderCancelRequest) (*dbclient.DeploymentOrder, error)
- func (d *DeploymentOrder) ContinueDeployOrder(orderId string) error
- func (d *DeploymentOrder) Create(ctx context.Context, req *apistructs.DeploymentOrderCreateRequest) (*apistructs.DeploymentOrderCreateResponse, error)
- func (d *DeploymentOrder) Deploy(ctx context.Context, req *apistructs.DeploymentOrderDeployRequest) (*dbclient.DeploymentOrder, error)
- func (d *DeploymentOrder) FetchDeploymentConfigDetail(namespace string) ([]apistructs.EnvConfig, []apistructs.EnvConfig, error)
- func (d *DeploymentOrder) Get(ctx context.Context, userId string, orderId string) (*apistructs.DeploymentOrderDetail, error)
- func (d *DeploymentOrder) List(userId string, orgId uint64, ...) (*apistructs.DeploymentOrderListData, error)
- func (d *DeploymentOrder) PushOnDeploymentOrderPolling() (abort bool, err0 error)
- func (d *DeploymentOrder) RenderDetail(ctx context.Context, id, userId, releaseId, workspace string, projectId uint64, ...) (*apistructs.DeploymentOrderDetail, error)
- type Option
- func WithAddon(a *addon.Addon) Option
- func WithBundle(bdl *bundle.Bundle) Option
- func WithDBClient(db *dbclient.DBClient) Option
- func WithDeployment(deploy *deployment.Deployment) Option
- func WithEnvConfig(envConfig *environment.EnvConfig) Option
- func WithQueue(queue *queue.PusherQueue) Option
- func WithReleaseSvc(svc pb.ReleaseServiceServer) Option
- func WithRuntime(rt *runtime.Runtime) Option
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) Cancel ¶
func (d *DeploymentOrder) Cancel(ctx context.Context, req *apistructs.DeploymentOrderCancelRequest) (*dbclient.DeploymentOrder, error)
func (*DeploymentOrder) ContinueDeployOrder ¶
func (d *DeploymentOrder) ContinueDeployOrder(orderId string) error
ContinueDeployOrder deploy from queue compensation
func (*DeploymentOrder) Create ¶
func (d *DeploymentOrder) Create(ctx context.Context, req *apistructs.DeploymentOrderCreateRequest) (*apistructs.DeploymentOrderCreateResponse, error)
func (*DeploymentOrder) Deploy ¶
func (d *DeploymentOrder) Deploy(ctx context.Context, req *apistructs.DeploymentOrderDeployRequest) (*dbclient.DeploymentOrder, error)
func (*DeploymentOrder) FetchDeploymentConfigDetail ¶
func (d *DeploymentOrder) FetchDeploymentConfigDetail(namespace string) ([]apistructs.EnvConfig, []apistructs.EnvConfig, error)
func (*DeploymentOrder) Get ¶
func (d *DeploymentOrder) Get(ctx context.Context, userId string, orderId string) (*apistructs.DeploymentOrderDetail, error)
func (*DeploymentOrder) List ¶
func (d *DeploymentOrder) List(userId string, orgId uint64, conditions *apistructs.DeploymentOrderListConditions, pageInfo *apistructs.PageInfo) (*apistructs.DeploymentOrderListData, error)
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 WithDBClient ¶
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 WithReleaseSvc ¶
func WithReleaseSvc(svc pb.ReleaseServiceServer) Option
WithReleaseSvc with dicehub release service
Click to show internal directories.
Click to hide internal directories.