apicache

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: Apache-2.0 Imports: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APICache

type APICache interface {
	// get cached secrets filtered by label selectors k/v pairs
	GetSecretsFilteredBy(labelSelectors map[string]string) ([]v1.Secret, error)
	// get cached pods filtered by label selectors k/v pairs
	GetPodsFilteredBy(labelSelectors map[string]string) ([]v1.Pod, error)
}

APICache continuously queries the kubernetes api and caches secret and pod information in the current implementation this way dashboards can be build faster

func New

func New(client kubernetes.Interface, namespace string, resyncPeriod time.Duration) APICache

New returns a new APICache

type ByCreation added in v0.16.0

type ByCreation []v1.Secret

ByCreation sorts secrets by their creation timestamp.

func (ByCreation) Len added in v0.16.0

func (b ByCreation) Len() int

Len returns the length of the secrets slice.

func (ByCreation) Less added in v0.16.0

func (b ByCreation) Less(i, j int) bool

Less tests that i is less than j.

func (ByCreation) Swap added in v0.16.0

func (b ByCreation) Swap(i, j int)

Swap swaps the position of two indices.

Jump to

Keyboard shortcuts

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