Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct { APIServerIP string Client *kube.Client Namespace string EnvVarName string // contains filtered or unexported fields }
Controller for talking to Kubernetes
func New ¶
func New(apiServerIP, namespace, evn string) *Controller
New creates a new Controller struct
func (*Controller) Ping ¶
func (c *Controller) Ping() error
Ping checks that Kubernetes' master exists
func (*Controller) UpdateServiceEndPoint ¶
func (c *Controller) UpdateServiceEndPoint(newEndPoint string) error
UpdateServiceEndPoint updates kubernetes with the new endpoint for the service
Click to show internal directories.
Click to hide internal directories.