workspaces

package
v0.0.44 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveOctants

func SaveOctants(octants []Octant) error

Types

type Octant

type Octant struct {
	Name           string `json:"name"`
	Dir            string `json:"dir"`
	KubeConfigPath string `json:"kubeConfig"`
	Port           int    `json:"port"`
	Admin          bool   `json:"admin"`
}

func LoadOctants

func LoadOctants() ([]Octant, error)

type Octants

type Octants struct {
	Octants []Octant
	// contains filtered or unexported fields
}

func NewOctants

func NewOctants() (*Octants, error)

func (*Octants) Get

func (o *Octants) Get(workspace *Workspace) Octant

Get gets the octant values

func (*Octants) Save

func (o *Octants) Save() error

func (*Octants) Set

func (o *Octants) Set(values Octant) bool

Set updates the octant values returning true if its a new octant

type Workspace

type Workspace struct {
	Name        string `json:"name"`
	GitURL      string `json:"gitURL"`
	Team        string `json:"team"`
	Environment string `json:"environment"`
	ConnectCLI  string `json:"connectCLI"`
	BrowserPath string `json:"browserPath"`
	Port        int    `json:"port"`
	Default     bool   `json:"default"`
}

func LoadWorkspaces

func LoadWorkspaces() ([]*Workspace, error)

type WorkspaceOctant

type WorkspaceOctant struct {
	Workspace
	URL string
}

func ToWorkspaceOctants

func ToWorkspaceOctants(workspaces []*Workspace, octants *Octants) []WorkspaceOctant

Jump to

Keyboard shortcuts

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