cache

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StateReady          = "Ready"
	StateNotReady       = "NotReady"
	StateWaitingForSync = "WaitingForSync"
	StateTerminated     = "Terminated"
)

Variables

This section is empty.

Functions

func NewCluster

func NewCluster(
	name,
	checksum string,
	config *rest.Config,
	informerFactory kubeinformers.SharedInformerFactory,
	buildClient func(string, string, *rest.Config) (kubernetes.Interface, error),
	cacheSyncCb func(),
) *cluster

func NewServer

func NewServer() *server

Types

type CacheServer

type CacheServer interface {
	Serve()
	Store(*cluster)
	Fetch(string) (*cluster, bool)
	Remove(string)
	Count() int
	Stop()
}

Jump to

Keyboard shortcuts

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