config

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: CC0-1.0 Imports: 3 Imported by: 5

Documentation

Index

Constants

View Source
const (
	TypeRemote = "remote"
	TypeLocal  = "local"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Type    string  `yaml:"type"`
	Details Details `yaml:"-"`
}

func DefaultConfig

func DefaultConfig() Config

func NewConfig

func NewConfig(nodeType string, details Details) Config

func (*Config) MarshalYAML

func (s *Config) MarshalYAML() (interface{}, error)

func (*Config) UnmarshalYAML

func (s *Config) UnmarshalYAML(n *yaml.Node) error

type Details

type Details interface {
	Validate() error
}

Jump to

Keyboard shortcuts

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