schema

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type From

type From struct {
	Provider string           `yaml:"provider"`
	Spec     FromProviderSpec `yaml:"spec"`
}

func (*From) UnmarshalYAML

func (f *From) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements yaml.Unmarshaler interface

type FromProviderSpec

type FromProviderSpec struct {
	fromprovider.Operator
	// contains filtered or unexported fields
}

func (*FromProviderSpec) UnmarshalYAML

func (s *FromProviderSpec) UnmarshalYAML(bytes []byte) error

UnmarshalYAML implements yaml.Unmarshaler interface

type FromUnmarshaler

type FromUnmarshaler From

type Rotation

type Rotation struct {
	Name string `yaml:"name"`
	From From   `yaml:"from"`
	To   []*To  `yaml:"to"`
}

func LoadRotations

func LoadRotations(r io.Reader) ([]*Rotation, error)

LoadRotations loads YAML and extracts rotations

type To

type To struct {
	Provider string         `yaml:"provider"`
	Spec     ToProviderSpec `yaml:"spec"`
}

func (*To) UnmarshalYAML

func (t *To) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements yaml.Unmarshaler interface

type ToProviderSpec

type ToProviderSpec struct {
	toprovider.Operator
	// contains filtered or unexported fields
}

func (*ToProviderSpec) UnmarshalYAML

func (s *ToProviderSpec) UnmarshalYAML(bytes []byte) error

UnmarshalYAML implements yaml.Unmarshaler interface

type ToUnmarshaler

type ToUnmarshaler To

Jump to

Keyboard shortcuts

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