config

package
v0.0.0-...-3047eb5 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2020 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultDomain

func DefaultDomain() string

func DefaultEnterprise

func DefaultEnterprise() string

Types

type EtcdConfig

type EtcdConfig struct {
	ServerCA          string   `yaml:"ca"`
	ClientCertificate string   `yaml:"certFile"`
	ClientKey         string   `yaml:"keyFile"`
	UrlList           []string `yaml:"urls"`
}

type MasterConfig

type MasterConfig struct {
	NetworkConfig networkConfig `yaml:"networkConfig"`
}

Fields we care about in the openshift master-config.yaml

func (*MasterConfig) Parse

func (conf *MasterConfig) Parse(data []byte) error

type NamespaceMap

type NamespaceMap map[string]bool

type NamespaceUpdateEvent

type NamespaceUpdateEvent int
const (
	AddSubnet NamespaceUpdateEvent = iota
	DeleteSubnet
)

type NamespaceUpdateRequest

type NamespaceUpdateRequest struct {
	NamespaceID string //Name of the namespace in the NamespaceData map
	Event       NamespaceUpdateEvent
}

type NuageKubeMonConfig

type NuageKubeMonConfig struct {
	KubeConfigFile      string           `yaml:"kubeConfig"`
	MasterConfigFile    string           `yaml:"masterConfig"`
	NuageVsdApiUrl      string           `yaml:"vsdApiUrl"`
	NuageVspVersion     string           `yaml:"vspVersion"`
	LicenseFile         string           `yaml:"licenseFile"`
	EnterpriseName      string           `yaml:"enterpriseName"`
	DomainName          string           `yaml:"domainName"`
	StatsLogging        string           `yaml:"statsLogging"`
	RestServer          RestServerConfig `yaml:"nuageMonServer"`
	UserCertificateFile string           `yaml:"userCertificateFile"`
	UserKeyFile         string           `yaml:"userKeyFile"`
	PrivilegedProject   []string         `yaml:"privilegedProject"`
	PrivilegedNamespace []string         `yaml:"privilegedNamespace"`
	ConfigFile          string           `yaml:"-"` // yaml tag `-` denotes that this cannot be supplied in yaml.
	MasterConfig        MasterConfig     `yaml:"-"`
	EtcdClientConfig    EtcdConfig       `yaml:"etcdClientConfig"`
	AutoScaleSubnets    string           `yaml:"autoScaleSubnets"`
	UnderlaySupport     string           `yaml:"underlaySupport"`
	EncryptionEnabled   string           `yaml:"encryptionEnabled"`
}

func (*NuageKubeMonConfig) Parse

func (conf *NuageKubeMonConfig) Parse(data []byte) error

type RestServerConfig

type RestServerConfig struct {
	Url                   string `yaml:"URL"`
	ClientCA              string `yaml:"clientCA"`
	ServerCertificate     string `yaml:"serverCertificate"`
	ServerKey             string `yaml:"serverKey"`
	ClientCAData          string `yaml:"clientCAData"`
	ServerCertificateData string `yaml:"serverCertificateData"`
	ServerKeyData         string `yaml:"serverKeyData"`
}

Jump to

Keyboard shortcuts

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