kube

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	// Start run informer in another goroutine, and wait for it synced.
	Start(stopCh <-chan struct{}) error
	GetReleaseMeta(namespace, pod string) map[string]string
	GetLegacyLogSources(namespace, pod, container string) []string
}

func New

func New() (Cache, error)

New create a new Cache

type ListWatchCache

type ListWatchCache struct {
	// contains filtered or unexported fields
}

func NewListWatchCache

func NewListWatchCache(listWatcher cache.ListerWatcher, objType runtime.Object) (*ListWatchCache, error)

func NewListWatchCacheWithEventHandler

func NewListWatchCacheWithEventHandler(listWatcher cache.ListerWatcher, objType runtime.Object,
	evHandler cache.ResourceEventHandler) (*ListWatchCache, error)

func (*ListWatchCache) Get

func (c *ListWatchCache) Get(key string) (item interface{}, exists bool, err error)

func (*ListWatchCache) GetInNamespace

func (c *ListWatchCache) GetInNamespace(namespace, key string) (item interface{}, exists bool, err error)

func (*ListWatchCache) List

func (c *ListWatchCache) List() (items []interface{})

func (*ListWatchCache) Run

func (c *ListWatchCache) Run(stopCh <-chan struct{}) error

type LogFile

type LogFile struct {
	Container string `json:"container"`
	Source    string `json:"realPath"`
}

type LogFiles

type LogFiles struct {
	Files []LogFile `json:"files"`
}

Jump to

Keyboard shortcuts

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