controller

package
v2.3.37+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2018 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExposeConfigURLProtocol                    = "expose.config.fabric8.io/url-protocol"
	ExposeConfigURLKeyAnnotation               = "expose.config.fabric8.io/url-key"
	ExposeConfigHostKeyAnnotation              = "expose.config.fabric8.io/host-key"
	ExposeConfigApiServerKeyAnnotation         = "expose.config.fabric8.io/apiserver-key"
	ExposeConfigApiServerURLKeyAnnotation      = "expose.config.fabric8.io/apiserver-url-key"
	ExposeConfigConsoleURLKeyAnnotation        = "expose.config.fabric8.io/console-url-key"
	ExposeConfigApiServerProtocolKeyAnnotation = "expose.config.fabric8.io/apiserver-protocol-key"
	ExposeConfigOAuthAuthorizeURLKeyAnnotation = "expose.config.fabric8.io/oauth-authorize-url-key"

	ExposeConfigYamlAnnotation = "expose.config.fabric8.io/config-yaml"

	OAuthAuthorizeUrlEnvVar = "OAUTH_AUTHORIZE_URL"
)

Variables

View Source
var (
	DefaultConfig = Config{}
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Domain                string `yaml:"domain,omitempty"`
	Exposer               string `yaml:"exposer"`
	ApiServer             string `yaml:"apiserver,omitempty"`
	NodeIP                string `yaml:"node-ip,omitempty"`
	RouteHost             string `yaml:"route-host,omitempty"`
	RouteUsePath          bool   `yaml:"route-use-path,omitempty"`
	ConsoleURL            string `yaml:"console-url,omitempty"`
	AuthorizePath         string `yaml:"authorize-path,omitempty"`
	ApiServerProtocol     string `yaml:"apiserver-protocol"`
	WatchNamespaces       string `yaml:"watch-namespaces"`
	WatchCurrentNamespace bool   `yaml:"watch-current-namespace"`
	HTTP                  bool   `yaml:"http"`
	TLSAcme               bool   `yaml:"tls-acme"`
	UrlTemplate           string `yaml:"urltemplate,omitempty"`
	// contains filtered or unexported fields
}

func Load

func Load(s string) (*Config, error)

func LoadFile

func LoadFile(path string) (*Config, error)

func (Config) String

func (c Config) String() string

func (*Config) UnmarshalYAML

func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error

type ConfigYaml

type ConfigYaml struct {
	Key        string
	Expression string
	Prefix     string
	Suffix     string
}

func (*ConfigYaml) UpdateConfigMap

func (c *ConfigYaml) UpdateConfigMap(configMap *api.ConfigMap, values map[string]string) bool

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func NewController

func NewController(
	kubeClient *client.Client,
	restClientConfig *restclient.Config,
	encoder runtime.Encoder,
	resyncPeriod time.Duration, namespace string, config *Config) (*Controller, error)

func (*Controller) Hasrun

func (c *Controller) Hasrun() bool

func (*Controller) Run

func (c *Controller) Run()

Run starts the controller.

func (*Controller) Stop

func (c *Controller) Stop()

type OAuthServer

type OAuthServer struct {
	Issuer                string `json:"issuer,omitempty"`
	AuthorizationEndpoint string `json:"authorization_endpoint,omitempty"`
	TokenEndpoint         string `json:"token_endpoint,omitempty"`
}

Jump to

Keyboard shortcuts

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