schema

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2025 License: AGPL-3.0 Imports: 7 Imported by: 0

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

func LoadConfig(filename string) (*Config, error)

LoadConfig loads a configuration from the specified HCL file.

func (*Config) DownloadPlugins added in v1.3.0

func (c *Config) DownloadPlugins(dir, operatingSystem, arch string) error

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.

type SCMConfig added in v1.3.0

type SCMConfig struct {
	Type    SCMType `hcl:"type"`
	BaseURL string  `hcl:"base_url,optional"` // Optional, standard hosts will use default URLs
}

SCMConfig defines the configuration for a Source Code Management (SCM) system.

type SCMType added in v1.3.0

type SCMType string
const (
	GitHub    SCMType = "github"
	GitLab    SCMType = "gitlab"
	BitBucket SCMType = "bitbucket"
)

Jump to

Keyboard shortcuts

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