configuration

package
v3.7.0-0.alpha.1.546.f... Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// CurrentVersion is the most recent Version that can be parsed.
	CurrentVersion = configuration.MajorMinorVersion(1, 0)

	ErrUnsupportedVersion = errors.New("Unsupported openshift configuration version")
)

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Version  configuration.Version `yaml:"version"`
	Metrics  Metrics               `yaml:"metrics"`
	Requests Requests              `yaml:"requests"`
}

func Parse

Parse parses an input configuration and returns docker configuration structure and openshift specific configuration. Environment variables may be used to override configuration parameters.

type Metrics

type Metrics struct {
	Enabled bool   `yaml:"enabled"`
	Secret  string `yaml:"secret"`
}

type Requests

type Requests struct {
	Read  RequestsLimits
	Write RequestsLimits
}

type RequestsLimits

type RequestsLimits struct {
	MaxRunning     int
	MaxInQueue     int
	MaxWaitInQueue time.Duration
}

Jump to

Keyboard shortcuts

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