client

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotExist    = errors.New("cluster not exist. ")
	ErrMaintaining = errors.New("cluster being maintaining .please try again later. ")
)

Functions

func BuildApiserverClient

func BuildApiserverClient()

func Client

func Client(cluster string) (*kubernetes.Clientset, error)

func Clients

func Clients() map[string]*kubernetes.Clientset

func Cluster

func Cluster(cluster string) (*models.Cluster, error)

func Managers

func Managers() map[string]*ClusterManager

Types

type CacheIndexer

type CacheIndexer struct {
	Pod   kcache.Indexer
	Event kcache.Indexer
	// contains filtered or unexported fields
}

type ClusterManager

type ClusterManager struct {
	Cluster *models.Cluster
	Client  *kubernetes.Clientset
	Config  *rest.Config
	Indexer *CacheIndexer
}

func Manager

func Manager(cluster string) (*ClusterManager, error)

func (ClusterManager) Close

func (c ClusterManager) Close()

Jump to

Keyboard shortcuts

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