config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2019 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init() error

func Set

func Set(conf RpaasConfig)

Types

type FlavorConfig

type FlavorConfig struct {
	Name string
	Spec v1alpha1.RpaasPlanSpec
}

type RpaasConfig

type RpaasConfig struct {
	ServiceName        string            `json:"service-name"`
	ServiceAnnotations map[string]string `json:"service-annotations"`
	APIUsername        string            `json:"api-username"`
	APIPassword        string            `json:"api-password"`
	Flavors            []FlavorConfig
	DefaultAffinity    *corev1.Affinity           `json:"default-affinity"`
	TeamAffinity       map[string]corev1.Affinity `json:"team-affinity"`
}

func Get

func Get() RpaasConfig

Jump to

Keyboard shortcuts

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