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
Click to show internal directories.
Click to hide internal directories.