Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildDownloadURLFunc ¶ added in v1.3.0
type BuildDownloadURLFunc func(scmType SCMType, baseURL, source, version, filename string) (string, error)
var BuildDownloadURL BuildDownloadURLFunc = buildDownloadURL
type Config ¶
type Config struct {
Maschine MaschineBlock `hcl:"maschine,block"`
}
Config represents the configuration structure for the Maschine plugin system.
func LoadConfig ¶
LoadConfig loads a configuration from the specified HCL file.
func (*Config) DownloadPlugins ¶ added in v1.3.0
DownloadPlugins downloads the plugins specified in the configuration to the given directory.
type MaschineBlock ¶
type MaschineBlock struct {
DefaultSCM SCMConfig `hcl:"scm,block"`
Plugins []PluginBlock `hcl:"plugin,block"`
}
MaschineBlock represents the top-level block in the configuration file.
type PluginBlock ¶
type PluginBlock struct {
Name string `hcl:",label"`
Type *SCMType `hcl:"type,optional"` // Optional, verwendet DefaultSCM wenn nicht gesetzt
Source string `hcl:"source"`
Version string `hcl:"version"`
}
PluginBlock represents a plugin configuration block within the Maschine block.
Click to show internal directories.
Click to hide internal directories.