controller

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//setting default threadiness to number of go-routines
	DefaultThreadiness       = 5
	DefaultElection          = true
	DefaultElectionID        = "app-mesh-controller-leader"
	DefaultElectionNamespace = ""
)

Variables

This section is empty.

Functions

func NewServer

func NewServer(cfg ServerOptions) *http.Server

Types

type ClientOptions

type ClientOptions struct {
	Master     string
	Kubeconfig string
}

type Controller

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

func NewController

func NewController(
	cloud aws.CloudAPI,
	kubeclientset kubernetes.Interface,
	meshclientset meshclientset.Interface,
	podInformer coreinformers.PodInformer,
	meshInformer meshinformers.MeshInformer,
	virtualNodeInformer meshinformers.VirtualNodeInformer,
	virtualServiceInformer meshinformers.VirtualServiceInformer,
	stats *metrics.Recorder,
	leaderElection bool,
	leaderElectionID string,
	leaderElectionNamespace string) (*Controller, error)

func (*Controller) Run

func (c *Controller) Run(threadiness int, stopCh chan struct{}) error

type Handler

type Handler struct {
	http.ServeMux
}

type ServerOptions

type ServerOptions struct {
	Address string
}

Jump to

Keyboard shortcuts

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