config

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2022 License: MPL-2.0 Imports: 9 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Databases []DatabaseConfig `yaml:"databases"`
}

func Read added in v0.4.0

func Read() (*Config, error)

type DatabaseConfig added in v0.4.0

type DatabaseConfig struct {
	Name    string                               `yaml:"name"`
	Type    PluginReference                      `yaml:"type"`
	Version *YamlUnmarshallableVersionConstraint `yaml:"version"`
	Config  yaml.Node                            `yaml:"config"`
}

type PluginReference added in v0.4.0

type PluginReference struct {
	Name       string
	Repository string
}

func (*PluginReference) String added in v0.4.0

func (r *PluginReference) String() string

func (*PluginReference) UnmarshalText added in v0.4.0

func (r *PluginReference) UnmarshalText(text []byte) error

type YamlUnmarshallableVersionConstraint added in v0.4.0

type YamlUnmarshallableVersionConstraint semver.Constraints

func NewYamlUnmarshallableVersionConstraint added in v0.4.0

func NewYamlUnmarshallableVersionConstraint(v *semver.Constraints) *YamlUnmarshallableVersionConstraint

func (*YamlUnmarshallableVersionConstraint) Raw added in v0.4.0

func (*YamlUnmarshallableVersionConstraint) UnmarshalText added in v0.4.0

func (constraint *YamlUnmarshallableVersionConstraint) UnmarshalText(text []byte) error

Jump to

Keyboard shortcuts

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