workspace

package
v0.50.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 2 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrWorkspaceNotFound = errors.New("workspace not found")
)

Functions

func GetWorkspaceEnvVars added in v0.15.0

func GetWorkspaceEnvVars(workspace *Workspace, params WorkspaceEnvVarParams, telemetryEnabled bool) map[string]string

func IsWorkspaceNotFound added in v0.18.0

func IsWorkspaceNotFound(err error) bool

Types

type Store

type Store interface {
	List() ([]*Workspace, error)
	Find(idOrName string) (*Workspace, error)
	Save(workspace *Workspace) error
	Delete(workspace *Workspace) error
}

type Workspace

type Workspace struct {
	Id       string             `json:"id" validate:"required"`
	Name     string             `json:"name" validate:"required"`
	Projects []*project.Project `json:"projects" validate:"required"`
	Target   string             `json:"target" validate:"required"`
	ApiKey   string             `json:"-"`
	EnvVars  map[string]string  `json:"-"`

} // @name Workspace

func (*Workspace) GetProject

func (w *Workspace) GetProject(projectName string) (*project.Project, error)

type WorkspaceEnvVarParams added in v0.15.0

type WorkspaceEnvVarParams struct {
	ApiUrl        string
	ServerUrl     string
	ServerVersion string
	ClientId      string
}

type WorkspaceInfo

type WorkspaceInfo struct {
	Name             string                 `json:"name" validate:"required"`
	Projects         []*project.ProjectInfo `json:"projects" validate:"required"`
	ProviderMetadata string                 `json:"providerMetadata,omitempty" validate:"optional"`

} // @name WorkspaceInfo

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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