implement remote call for remote action
This commit is contained in:
		@@ -5,6 +5,7 @@ import (
 | 
			
		||||
 | 
			
		||||
	"cloud.o-forge.io/core/oc-lib/models/resources"
 | 
			
		||||
	"cloud.o-forge.io/core/oc-lib/models/utils"
 | 
			
		||||
	"cloud.o-forge.io/core/oc-lib/tools"
 | 
			
		||||
	"github.com/google/uuid"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
@@ -28,9 +29,9 @@ func (d *Workspace) GetName() string {
 | 
			
		||||
	return d.Name
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (d *Workspace) GetAccessor() utils.Accessor {
 | 
			
		||||
func (d *Workspace) GetAccessor(caller *tools.HTTPCaller) utils.Accessor {
 | 
			
		||||
	data := New()
 | 
			
		||||
	data.SetLogger(utils.WORKSPACE)
 | 
			
		||||
	data.Init(utils.WORKSPACE, caller)
 | 
			
		||||
	return data
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user