config

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIServer added in v1.3.1

type APIServer struct {
	ExtraArgs map[string]string `yaml:"extraArgs"`
}

type Audit added in v1.3.1

type Audit struct {
	Address string `yaml:"address"`
}

type AuthzWebhook added in v1.3.1

type AuthzWebhook struct {
	Endpoint string `yaml:"endpoint"`
}

type Business added in v1.3.1

type Business struct {
	Enabled bool `yaml:"enabled"`
}

type Config

type Config struct {
	PlatformAPIClientConfig    string            `yaml:"platformAPIClientConfig"`
	ApplicationAPIClientConfig string            `yaml:"applicationAPIClientConfig"`
	Registry                   Registry          `yaml:"registry"`
	Audit                      Audit             `yaml:"audit"`
	Feature                    Feature           `yaml:"feature"`
	Docker                     Docker            `yaml:"docker"`
	Kubelet                    Kubelet           `yaml:"kubelet"`
	APIServer                  APIServer         `yaml:"apiServer"`
	ControllerManager          ControllerManager `yaml:"controllerManager"`
	Scheduler                  Scheduler         `yaml:"scheduler"`
	AuthzWebhook               AuthzWebhook      `yaml:"authzWebhook"`
	Business                   Business          `yaml:"business"`
}

func New

func New(filename string) (*Config, error)

func (*Config) AuditEnabled added in v1.3.1

func (c *Config) AuditEnabled() bool

func (*Config) BusinessEnabled added in v1.3.1

func (c *Config) BusinessEnabled() bool

func (*Config) Save

func (c *Config) Save(filename string) error

type ControllerManager added in v1.3.1

type ControllerManager struct {
	ExtraArgs map[string]string `yaml:"extraArgs"`
}

type Docker added in v1.3.1

type Docker struct {
	ExtraArgs map[string]string `yaml:"extraArgs"`
}

type Feature

type Feature struct {
	SkipConditions []string `yaml:"skipConditions"`
}

type Kubelet added in v1.3.1

type Kubelet struct {
	ExtraArgs map[string]string `yaml:"extraArgs"`
}

type Registry

type Registry struct {
	Prefix    string `yaml:"prefix"`
	IP        string `yaml:"ip"`
	Domain    string `yaml:"-"`
	Namespace string `yaml:"-"`
}

func (*Registry) NeedSetHosts

func (r *Registry) NeedSetHosts() bool

type Scheduler added in v1.3.1

type Scheduler struct {
	ExtraArgs map[string]string `yaml:"extraArgs"`
}

Jump to

Keyboard shortcuts

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