controller

package
v2.3.9+incompatible Latest Latest
Warning

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

Go to latest
Published: May 17, 2017 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	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"
	ExposeConfigApiServerProtocolKeyAnnotation = "expose.config.fabric8.io/apiserver-protocol-key"
	ExposeConfigOAuthAuthorizeURLKeyAnnotation = "expose.config.fabric8.io/oauth-authorize-url-key"

	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"`
	AuthorizePath         string `yaml:"authorize-path,omitempty"`
	ApiServerProtocol     string `yaml:"apiserver-protocol"`
	WatchNamespaces       string `yaml:"watch-namespaces"`
	WatchCurrentNamespace bool   `yaml:"watch-current-namespace"`
	// 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 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) 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