config

package
v3.0.0-stargate Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: CC0-1.0 Imports: 3 Imported by: 3 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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