Documentation ¶
Index ¶
- Constants
- type ExportOptions
- type Folder
- type Workspace
- func (w *Workspace) Export(destPath string, destStorage storage.Storage, opts *ExportOptions) error
- func (w *Workspace) Knock(path string, externalVars map[string]string) (*knock.Result, error)
- func (w *Workspace) Load() error
- func (w *Workspace) LoadFolders(endPath string) ([]*Folder, error)
- func (w *Workspace) LoadVariables(folders []*Folder, external map[string]string) (map[string]string, error)
- func (w *Workspace) Save() error
- func (w *Workspace) Validate() error
Constants ¶
View Source
const SettingsPath = ".guest/workspace.json"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExportOptions ¶
type ExportOptions struct {
Ignore []string
}
type Folder ¶
type Folder struct { Description string `json:"description"` Variables map[string]string `json:"variables,omitempty" yaml:"variables,omitempty"` Scripts map[string]string `json:"scripts,omitempty" yaml:"scripts,omitempty"` HandOptions map[string]interface{} `json:"options,omitempty" yaml:"options,omitempty"` }
type Workspace ¶
type Workspace struct { Folder PathInfo *storage.StoragePathInfo VirtualFs storage.Storage // contains filtered or unexported fields }
func FromStorage ¶
func NewWorkspace ¶
func (*Workspace) LoadVariables ¶
Click to show internal directories.
Click to hide internal directories.