components

package
v0.0.0-...-bd3d795 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetExporterNameForOutput

func GetExporterNameForOutput(output v1alpha1.Output) string

func SortNamespacedNames

func SortNamespacedNames(names []v1alpha1.NamespacedName)

Types

type ErrorMode

type ErrorMode string
const (
	ErrorModeIgnore    ErrorMode = "ignore"
	ErrorModeSilent    ErrorMode = "silent"
	ErrorModePropagate ErrorMode = "propagate"
)

type OutputWithSecretData

type OutputWithSecretData struct {
	Output v1alpha1.Output
	Secret corev1.Secret
}

type ResourceRelations

type ResourceRelations struct {
	// These must only include resources that are selected by the collector, tenant labelselectors, and listed outputs in the subscriptions
	Tenants               []v1alpha1.Tenant
	Subscriptions         map[v1alpha1.NamespacedName]v1alpha1.Subscription
	Bridges               []v1alpha1.Bridge
	OutputsWithSecretData []OutputWithSecretData
	// Subscriptions map, where the key is the Tenants' name, value is a slice of subscriptions' namespaced name
	TenantSubscriptionMap map[string][]v1alpha1.NamespacedName
	SubscriptionOutputMap map[v1alpha1.NamespacedName][]v1alpha1.NamespacedName
}

func (*ResourceRelations) FindOutputsForSubscription

func (r *ResourceRelations) FindOutputsForSubscription(subscription v1alpha1.NamespacedName) []v1alpha1.NamespacedName

FindOutputsForSubscription retrieves all outputs for a given subscription

func (*ResourceRelations) FindTenantForOutput

func (r *ResourceRelations) FindTenantForOutput(targetOutput v1alpha1.NamespacedName) (*v1alpha1.Tenant, error)

FindTenantForOutput determines which tenant owns a specific output

func (*ResourceRelations) GetTenantByName

func (r *ResourceRelations) GetTenantByName(tenantName string) (*v1alpha1.Tenant, error)

func (*ResourceRelations) IsOutputInSubscription

func (r *ResourceRelations) IsOutputInSubscription(subscription, output v1alpha1.NamespacedName) bool

IsOutputInSubscription checks if a specific output belongs to a subscription

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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