Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateSandboxOptions ¶
type CreateTplOptions ¶
type SandboxStore ¶
type SandboxStore interface { // GetByID returns a sandbox with the given id. GetByID(id uint) (*Sandbox, error) // GetByUID returns a sandbox with the given uid. GetByUID(uid string) (*Sandbox, error) // ListAll returns all the sandboxes. ListAll() ([]*Sandbox, error) // Create creates a new sandbox with the given options. Create(opts CreateSandboxOptions) error // Update edits a new sandbox with the given options. Update(opts UpdateSandboxOptions) error // Delete deletes a sandbox with the given id. Delete(id uint) error }
var Sandboxes SandboxStore
type Tpl ¶
type Tpl struct { gorm.Model Name string `json:"name"` Language pgtype.TextArray `gorm:"type:text[]" json:"language"` // Limit Timeout int `json:"timeout"` MaxCPUs int64 `json:"max_cpus"` MaxMemory int64 `json:"max_memory"` InternetAccess bool `json:"internet_access"` DNS datatypes.JSON `gorm:"type:jsonb" json:"dns"` MaxContainer int64 `json:"max_container"` MaxContainerPerIP int64 `json:"max_container_per_ip"` }
type TplStore ¶
type TplStore interface { // GetByID returns a template with the given id. GetByID(id uint) (*Tpl, error) // ListAll returns all the templates. ListAll() ([]*Tpl, error) // Create creates a new template with the given options. Create(opts CreateTplOptions) error // Update edits a new template with the given options. Update(opts UpdateTplOptions) error // Delete deletes a template with the given id. Delete(id uint) error }
var Tpls TplStore
type UpdateSandboxOptions ¶
Click to show internal directories.
Click to hide internal directories.