strategy

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMountNotSimple = errors.New("mount entry is not simple, mount datastores can't be nested")

Functions

This section is empty.

Types

type SimpleMount

type SimpleMount struct {
	// contains filtered or unexported fields
}

type SimpleMounts

type SimpleMounts []SimpleMount

type Spec

type Spec map[string]interface{}

func (*Spec) Id

func (s *Spec) Id() (string, error)

func (*Spec) Sub

func (s *Spec) Sub(key string) (Spec, bool)

func (*Spec) Type

func (s *Spec) Type() (string, bool)

type Strategy

type Strategy interface {
	Spec() Spec
	Id() string
}

func NewCopyStrategy

func NewCopyStrategy(fromSpec Spec, toSpec Spec) (Strategy, error)

func NewNoopStrategy

func NewNoopStrategy() (Strategy, error)

func NewStrategy

func NewStrategy(fromSpecIn, toSpecIn map[string]interface{}) (Strategy, error)

Jump to

Keyboard shortcuts

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