dynamic

package
v1.5.2-rc1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAccessDenied = errors.New("access denied")
View Source
var ErrConfigNotModified = errors.New("config not modified")
View Source
var ErrSourceUnavailable = errors.New("source not available")

Functions

func ParseRegistries

func ParseRegistries(regs []string) (registry.Set, error)

Types

type Merger

type Merger interface {
	// Merge merges two config objects returning the resulting config.
	Merge(orig, other *config.VirtualContainerHostConfigSpec) (*config.VirtualContainerHostConfigSpec, error)
}

Merger is used to merge two config objects

func NewMerger

func NewMerger() Merger

type Source

type Source interface {
	// Get returns a config object. If the remote/local source
	// is not available, Get returns nil, with an error indicating
	// what went wrong. If the configuration has not changed since
	// the last time Get was called, it returns
	// (nil, ErrConfigNotModified). If the remote/local source
	// denies access, it returns (nil, ErrAccessDenied).
	Get(ctx context.Context) (*config.VirtualContainerHostConfigSpec, error)
}

Source is configuration source, remote or otherwise

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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