engine

package
v0.0.0-...-e59a564 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoDestroyExpiredDeploymentWatchdog

func AutoDestroyExpiredDeploymentWatchdog(ctx context.Context, client *ent.Client, cbleServer *providers.CBLEServer)

func AutoSuspendDeploymentWatchdog

func AutoSuspendDeploymentWatchdog(ctx context.Context, client *ent.Client, cbleServer *providers.CBLEServer, suspendTime time.Duration)

AutoSuspendDeploymentWatchdog is designed to be executed as a go routine which searches for all deployments powered on which haven't been accessed in a time period

func CreateDeployment

func CreateDeployment(ctx context.Context, client *ent.Client, entBlueprint *ent.Blueprint, projectID uuid.UUID, templateVars map[string]string, expiryTime time.Time, requester *ent.User) (*ent.Deployment, error)

func LoadResources

func LoadResources(ctx context.Context, client *ent.Client, cbleServer *providers.CBLEServer, entBlueprint *ent.Blueprint) error

func StartDeployment

func StartDeployment(client *ent.Client, cbleServer *providers.CBLEServer, entDeployment *ent.Deployment)

Run in a go routine, runs the deployment with a provider

func StartDestroy

func StartDestroy(client *ent.Client, cbleServer *providers.CBLEServer, entDeployment *ent.Deployment)

Run in a go routine, destroys the deployment with a provider

func StartRedeploy

func StartRedeploy(client *ent.Client, cbleServer *providers.CBLEServer, entDeployment *ent.Deployment, nodeIdsToRedeploy []uuid.UUID)

Run in a go routine, runs the deployment with a provider

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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