k8sclient

package
v0.0.0-...-5bf65c3 Latest Latest
Warning

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

Go to latest
Published: May 12, 2017 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewListWatchFromClient

func NewListWatchFromClient(c cache.Getter, resource string, namespace string, selector labels.Selector) *cache.ListWatch

NewListWatchFromClient is a helper method taken from the kube-cert-manager newListWatchFromClient and retrieves a list watch object for the provided client.

Types

type Client

type Client struct {
	Clientset *kubernetes.Clientset
}

Client provides the type to interact with Kubernetes.

func NewClient

func NewClient(configFile string) (*Client, error)

NewClient deals with creating a new kubernetes client instance from provided configuration.

func NewInClusterClient

func NewInClusterClient() (*Client, error)

NewInClusterClient deals with creating a new instance of a Kubernetes client.

func (*Client) ListServices

func (cli *Client) ListServices(namespace string, routesLabel string) (*v1.ServiceList, error)

ListServices retrieves a list of services with the defined label.

func (*Client) WatchServices

func (cli *Client) WatchServices(namespace string, routesLabel string) (watch.Interface, error)

WatchServices deals with watching services for the provided namespace. To note: Only services with the defined label are watched in this stream.

Jump to

Keyboard shortcuts

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