dynamic

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2019 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 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

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