config

package
v3.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: CC0-1.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

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

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