models

package
v0.0.0-...-f4b0cf5 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2025 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ModelsCatalog = map[string]func() utils.DBObject{
	tools.WORKFLOW_RESOURCE.String():   func() utils.DBObject { return &resource.WorkflowResource{} },
	tools.DATA_RESOURCE.String():       func() utils.DBObject { return &resource.DataResource{} },
	tools.COMPUTE_RESOURCE.String():    func() utils.DBObject { return &resource.ComputeResource{} },
	tools.STORAGE_RESOURCE.String():    func() utils.DBObject { return &resource.StorageResource{} },
	tools.PROCESSING_RESOURCE.String(): func() utils.DBObject { return &resource.ProcessingResource{} },
	tools.WORKFLOW.String():            func() utils.DBObject { return &w2.Workflow{} },
	tools.WORKFLOW_EXECUTION.String():  func() utils.DBObject { return &workflow_execution.WorkflowExecution{} },
	tools.WORKSPACE.String():           func() utils.DBObject { return &w3.Workspace{} },
	tools.PEER.String():                func() utils.DBObject { return &peer.Peer{} },
	tools.COLLABORATIVE_AREA.String():  func() utils.DBObject { return &collaborative_area.CollaborativeArea{} },
	tools.RULE.String():                func() utils.DBObject { return &rule.Rule{} },
	tools.BOOKING.String():             func() utils.DBObject { return &booking.Booking{} },
	tools.WORKFLOW_HISTORY.String():    func() utils.DBObject { return &w2.WorkflowHistory{} },
	tools.WORKSPACE_HISTORY.String():   func() utils.DBObject { return &w3.WorkspaceHistory{} },
	tools.ORDER.String():               func() utils.DBObject { return &order.Order{} },
	tools.PURCHASE_RESOURCE.String():   func() utils.DBObject { return &purchase_resource.PurchaseResource{} },
	tools.LIVE_DATACENTER.String():     func() utils.DBObject { return &live.LiveDatacenter{} },
	tools.LIVE_STORAGE.String():        func() utils.DBObject { return &live.LiveStorage{} },
	tools.BILL.String():                func() utils.DBObject { return &bill.Bill{} },
}

This package contains the models used in the application It's used to create the models dynamically

Functions

func GetModelsNames

func GetModelsNames() []string

GetModelsNames returns the names of the models

func Model

func Model(model int) utils.DBObject

Model returns the model object based on the model type

Types

This section is empty.

Jump to

Keyboard shortcuts

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