background

package
v0.6.247 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisableAutoStop added in v0.6.213

func DisableAutoStop(s BackgroundStore, workspaceID string) error

func EnableAutoStop added in v0.6.213

func EnableAutoStop(s BackgroundStore, workspaceID string) error

func NewCmdBackground

func NewCmdBackground(t *terminal.Terminal, s BackgroundStore) *cobra.Command

Types

type BackgroundStore

type BackgroundStore interface {
	util.GetWorkspaceByNameOrIDErrStore
	GetActiveOrganizationOrDefault() (*entity.Organization, error)
	GetCurrentUser() (*entity.User, error)
	ModifyWorkspace(workspaceID string, options *store.ModifyWorkspaceRequest) (*entity.Workspace, error)
	GetWorkspace(workspaceID string) (*entity.Workspace, error)
	GetCurrentWorkspaceID() (string, error)
	CreateWorkspace(organizationID string, options *store.CreateWorkspacesOptions) (*entity.Workspace, error)
}

type Process

type Process struct {
	ID        int    `json:"id"`
	Command   string `json:"command"`
	LogsDir   string `json:"logsDir"`
	StartTime string `json:"startTime"`
}

type Processes

type Processes struct {
	Processes []Process `json:"processes"`
}

Jump to

Keyboard shortcuts

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