controller

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2017 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	RestClient *restclient.RESTClient
	ClientSet  internalclientset.Interface
	MasterHost string
}

Controller is an exported struct that holds all of the information we will need throughout our program to talk to the kubernetes api server. this includes a rest client and well a clientset that gives us access to the libs

func New

func New() (*Controller, error)

New creates a new kubernetes controller the controller is secure and uses the cluster's kubeconfig file to construct permissions

func (*Controller) CreateTPRs

func (c *Controller) CreateTPRs() error

CreateTPRs will create the two tprs that kanali uses ApiProxy an ApiKey

func (*Controller) Watch

func (c *Controller) Watch()

Watch will use goroutines and channels to listen to different endpoints on the kubernetes api server and act on events that they emit

Jump to

Keyboard shortcuts

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