config

package
v0.8.1-rc.10 Latest Latest
Warning

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

Go to latest
Published: May 12, 2020 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPortRangeMin = 20000
	DefaultPortRangeMax = 30000
)

Variables

This section is empty.

Functions

func Init

func Init() error

func Set

func Set(conf RpaasConfig)

Types

type RpaasConfig

type RpaasConfig struct {
	ServiceName     string                     `json:"service-name"`
	APIUsername     string                     `json:"api-username"`
	APIPassword     string                     `json:"api-password"`
	TLSCertificate  string                     `json:"tls-certificate"`
	TLSKey          string                     `json:"tls-key"`
	DefaultAffinity *corev1.Affinity           `json:"default-affinity"`
	TeamAffinity    map[string]corev1.Affinity `json:"team-affinity"`
	SyncInterval    time.Duration              `json:"sync-interval"`
	PortRangeMin    int32                      `json:"port-range-min"`
	PortRangeMax    int32                      `json:"port-range-max"`
}

func Get

func Get() RpaasConfig

Jump to

Keyboard shortcuts

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