workspace

package
v0.0.0-...-3acebc4 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAccessor

func NewAccessor(request *tools.APIRequest) *workspaceMongoAccessor

func NewAccessorHistory

func NewAccessorHistory(request *tools.APIRequest) *workspaceMongoAccessor

New creates a new instance of the workspaceMongoAccessor

func NewHistory

func NewHistory() *workspaceHistoryMongoAccessor

New creates a new instance of the workspaceMongoAccessor

Types

type Workspace

type Workspace struct {
	utils.AbstractObject         // AbstractObject contains the basic fields of an object (id, name)
	resources.ResourceSet        // ResourceSet contains the resources of the workspace (data, compute, processing, storage, workflow)
	IsContextual          bool   `json:"is_contextual" bson:"is_contextual" default:"false"` // IsContextual is a flag that indicates if the workspace is contextual
	Active                bool   `json:"active" bson:"active" default:"false"`               // Active is a flag that indicates if the workspace is active
	Shared                string `json:"shared,omitempty" bson:"shared,omitempty"`           // Shared is the ID of the shared workspace
}

Workspace is a struct that represents a workspace

func (*Workspace) GetAccessor

func (d *Workspace) GetAccessor(request *tools.APIRequest) utils.Accessor

func (*Workspace) VerifyAuth

func (ao *Workspace) VerifyAuth(request *tools.APIRequest) bool

type WorkspaceHistory

type WorkspaceHistory struct{ Workspace }

func (*WorkspaceHistory) GenerateID

func (r *WorkspaceHistory) GenerateID()

func (*WorkspaceHistory) GetAccessor

func (d *WorkspaceHistory) GetAccessor(request *tools.APIRequest) utils.Accessor

Jump to

Keyboard shortcuts

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