Documentation ¶
Index ¶
- func InstallPlugin(pluginSpec workspace.PluginSpec, log func(sev diag.Severity, msg string)) (*semver.Version, error)
- func ValidateProjectDescription(s string) error
- func ValidateProjectName(s string) error
- func ValueOrDefaultProjectDescription(description string, projectDescription string, defaultDescription string) string
- func ValueOrSanitizedDefaultProjectName(name string, projectName string, defaultNameToSanitize string) string
- type InstallPluginError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstallPlugin ¶
func ValidateProjectDescription ¶ added in v3.84.0
ValidateProjectDescription ensures a project description name is valid, if it is not it returns an error with a message suitable for display to an end user.
func ValidateProjectName ¶ added in v3.84.0
ValidateProjectName ensures a project name is valid, if it is not it returns an error with a message suitable for display to an end user.
Types ¶
type InstallPluginError ¶
type InstallPluginError struct { // The specification of the plugin to install Spec workspace.PluginSpec // The underlying error that occurred during the download or install. Err error }
InstallPluginError is returned by InstallPlugin if we couldn't install the plugin
func (*InstallPluginError) Error ¶
func (err *InstallPluginError) Error() string
func (*InstallPluginError) Unwrap ¶
func (err *InstallPluginError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.