snap

package
v0.0.76 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterInfo

type ClusterInfo = gen.ClusterInfo

aliases for proto types to maintain compatibility for now

type ClusterResourceExtractorFunc

type ClusterResourceExtractorFunc func(*gen.ClusterScopedSnapshot) map[string]*gen.ResourceIdentifier

ClusterResourceExtractorFunc extracts a resource map from cluster-scoped snapshot

type ClusterScopedSnapshot

type ClusterScopedSnapshot = gen.ClusterScopedSnapshot

aliases for proto types to maintain compatibility for now

type ClusterSnapshot

type ClusterSnapshot = gen.ClusterSnapshot

aliases for proto types to maintain compatibility for now

type ClusterSnapshotter

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

ClusterSnapshotter takes periodic snapshots and computes deltas

func NewClusterSnapshotter

func NewClusterSnapshotter(
	client kubernetes.Interface,
	kedaClient kedaclient.Interface,
	dynamicClient dynamic.Interface,
	interval time.Duration,
	sender transport.DirectSender,
	collectorManager *collector.CollectionManager,
	namespaces []string,
	excludedPods []collector.ExcludedPod,
	excludedNodes []string,
	logger logr.Logger,
) *ClusterSnapshotter

func (*ClusterSnapshotter) AddResource

func (c *ClusterSnapshotter) AddResource(resource interface{}) error

AddResource manually adds a resource - not supported for cluster snapshotter

func (*ClusterSnapshotter) GetResourceChannel

func (c *ClusterSnapshotter) GetResourceChannel() <-chan []collector.CollectedResource

func (*ClusterSnapshotter) GetType

func (c *ClusterSnapshotter) GetType() string

func (*ClusterSnapshotter) IsAvailable

func (c *ClusterSnapshotter) IsAvailable(ctx context.Context) bool

func (*ClusterSnapshotter) Start

func (c *ClusterSnapshotter) Start(ctx context.Context) error

func (*ClusterSnapshotter) Stop

func (c *ClusterSnapshotter) Stop() error

type Namespace

type Namespace = gen.Namespace

aliases for proto types to maintain compatibility for now

type NamespaceResourceExtractorFunc

type NamespaceResourceExtractorFunc func(*gen.Namespace) map[string]*gen.ResourceIdentifier

NamespaceResourceExtractorFunc extracts a resource map from namespace snapshot

type NamespacedResourceHandler

type NamespacedResourceHandler struct {
	Lister            NamespacedResourceListFunc
	Extractor         ResourceExtractorFunc
	SnapshotExtractor NamespaceResourceExtractorFunc
}

NamespacedResourceHandler combines a namespaced lister and extractor for a resource type

type NamespacedResourceListFunc

type NamespacedResourceListFunc func(ctx context.Context, namespace string, options metav1.ListOptions) (runtime.Object, error)

NamespacedResourceListFunc defines a function type for listing namespaced resources by UID

type NodeData

type NodeData = gen.NodeData

aliases for proto types to maintain compatibility for now

type ResourceExtractorFunc

type ResourceExtractorFunc func(runtime.Object) (interface{}, error)

ResourceExtractorFunc defines a function type for extracting first item from a list

type ResourceHandler

type ResourceHandler struct {
	Lister            ResourceListFunc
	Extractor         ResourceExtractorFunc
	SnapshotExtractor ClusterResourceExtractorFunc
}

ResourceHandler combines a lister and extractor for a resource type

type ResourceIdentifier

type ResourceIdentifier = gen.ResourceIdentifier

aliases for proto types to maintain compatibility for now

type ResourceListFunc

type ResourceListFunc func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error)

ResourceListFunc defines a function type for listing resources by UID

Jump to

Keyboard shortcuts

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