components

package
v0.0.0-...-4c477b2 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2025 License: Apache-2.0 Imports: 9 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 QueryOutputSecret

func QueryOutputSecret(ctx context.Context, client client.Client, output *v1alpha1.Output) error

QueryOutputSecret retrieves the secret associated with the output's authentication configuration. It returns an error if the output is nil, if no authentication is configured, if multiple authentication methods are configured, or if the secret cannot be found.

func QueryOutputSecretWithData

func QueryOutputSecretWithData(ctx context.Context, client client.Client, output *v1alpha1.Output) (*corev1.Secret, error)

QueryOutputSecretWithData retrieves the secret associated with the output's authentication configuration. It returns the secret and an error if the output is nil, if no authentication is configured, if multiple authentication methods are configured, or if the secret cannot be found.

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