Documentation
¶
Overview ¶
Package workspace represents the workspace for Pastiche
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextValue ¶ added in v0.5.0
ContextValue provides an action that sets the given value into the context. The only supported type is *Workspace.
func FlagsAndArgs ¶ added in v0.5.0
FlagsAndArgs adds flags supporting the workspace. Despite its name, which is conventional, this action adds to args.
func SetDisableValidation ¶ added in v0.5.0
SetDisableValidation disables validattion of configuration in the workspace
Types ¶
type InitServiceCommand ¶ added in v0.5.0
func NewInitServiceCommand ¶ added in v0.5.0
func NewInitServiceCommand() *InitServiceCommand
type Option ¶ added in v0.5.0
Option sets up an option to configure the workspace
func DisableValidation ¶ added in v0.5.0
func DisableValidation() Option
type Workspace ¶ added in v0.5.0
type Workspace struct {
// Action provides the action to provide when the workspace is
// added to a pipeline.
cli.Action
*joeconfig.Workspace
// contains filtered or unexported fields
}
Workspace represents the information about the Pastiche workspace
func FromContext ¶ added in v0.5.0
FromContext gets the Workspace from the context otherwise panics
func (*Workspace) ClearLogDir ¶ added in v0.5.0
func (*Workspace) Load ¶ added in v0.5.0
Load will load the workspace, returning the error that occurred on load.
func (*Workspace) Model ¶ added in v0.5.0
Model obtains the model for the workspace. This method implicitly loads the workspace and panics when the workspace cannot be loaded. Investigate Workspace.Load to load while handling load errors