workflowtemplate

package
v0.0.0-...-d4d4b81 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operator

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

Operator is the model for cluster collection

func NewWorkflowTemplateOperator

func NewWorkflowTemplateOperator(mongodbOperator mongodb.MongoOperator) *Operator

NewWorkflowTemplateOperator returns a new instance of Operator

func (*Operator) CreateWorkflowTemplate

func (w *Operator) CreateWorkflowTemplate(ctx context.Context, template *WorkflowTemplate) error

CreateWorkflowTemplate add the template details in the database

func (*Operator) GetTemplateByTemplateID

func (w *Operator) GetTemplateByTemplateID(ctx context.Context, templateID string) (WorkflowTemplate, error)

GetTemplateByTemplateID is used to query a selected template using template id

func (*Operator) GetTemplatesByProjectID

func (w *Operator) GetTemplatesByProjectID(ctx context.Context, projectID string) ([]WorkflowTemplate, error)

GetTemplatesByProjectID is used to query the list of templates present in the project

func (*Operator) UpdateTemplateManifest

func (w *Operator) UpdateTemplateManifest(ctx context.Context, query bson.D, update bson.D) error

UpdateTemplateManifest is used to update the template details

type WorkflowTemplate

type WorkflowTemplate struct {
	TemplateID          string `bson:"template_id"`
	ProjectID           string `bson:"project_id"`
	Manifest            string `bson:"manifest"`
	TemplateName        string `bson:"template_name"`
	TemplateDescription string `bson:"template_description"`
	ProjectName         string `bson:"project_name"`
	CreatedAt           string `bson:"created_at"`
	IsRemoved           bool   `bson:"is_removed"`
	IsCustomWorkflow    bool   `bson:"is_custom_workflow"`
}

func (WorkflowTemplate) GetWorkflowTemplateOutput

func (template WorkflowTemplate) GetWorkflowTemplateOutput() *model.WorkflowTemplate

Jump to

Keyboard shortcuts

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