Acces execution verification for manual verif

This commit is contained in:
mr
2026-03-12 11:40:17 +01:00
parent 9f514a133e
commit 9645e71b54
3 changed files with 44 additions and 38 deletions

View File

@@ -63,6 +63,7 @@ const (
LIVE_STORAGE = tools.LIVE_STORAGE
PURCHASE_RESOURCE = tools.PURCHASE_RESOURCE
NATIVE_TOOL = tools.NATIVE_TOOL
EXECUTION_VERIFICATION = tools.EXECUTION_VERIFICATION
)
func GetMySelf() (*peer.Peer, error) {

View File

@@ -3,6 +3,7 @@ package models
import (
"cloud.o-forge.io/core/oc-lib/logs"
"cloud.o-forge.io/core/oc-lib/models/bill"
"cloud.o-forge.io/core/oc-lib/models/execution_verification"
"cloud.o-forge.io/core/oc-lib/models/live"
"cloud.o-forge.io/core/oc-lib/models/order"
"cloud.o-forge.io/core/oc-lib/models/resources/purchase_resource"
@@ -44,6 +45,7 @@ var ModelsCatalog = map[string]func() utils.DBObject{
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{} },
tools.EXECUTION_VERIFICATION.String(): func() utils.DBObject { return &execution_verification.ExecutionVerification{} },
}
// Model returns the model object based on the model type

View File

@@ -31,6 +31,7 @@ const (
LIVE_STORAGE
BILL
NATIVE_TOOL
EXECUTION_VERIFICATION
)
var NOAPI = func() string {
@@ -81,6 +82,7 @@ var InnerDefaultAPI = [...]func() string{
DATACENTERAPI,
NOAPI,
CATALOGAPI,
DATACENTERAPI,
}
// Bind the standard data name to the data type
@@ -106,6 +108,7 @@ var Str = [...]string{
"live_storage",
"bill",
"native_tool",
"execution_verification",
}
func FromString(comp string) int {