kubeClient

package
v0.0.0-...-85d2ec5 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2016 License: Apache-2.0 Imports: 9 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 {
	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

Jump to

Keyboard shortcuts

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