Documentation
¶
Index ¶
- func GetExporterNameForOutput(output v1alpha1.Output) string
- func QueryOutputSecret(ctx context.Context, client client.Client, output *v1alpha1.Output) error
- func QueryOutputSecretWithData(ctx context.Context, client client.Client, output *v1alpha1.Output) (*corev1.Secret, error)
- func SortNamespacedNames(names []v1alpha1.NamespacedName)
- type ErrorMode
- type OutputWithSecretData
- type ResourceRelations
- func (r *ResourceRelations) FindOutputsForSubscription(subscription v1alpha1.NamespacedName) []v1alpha1.NamespacedName
- func (r *ResourceRelations) FindTenantForOutput(targetOutput v1alpha1.NamespacedName) (*v1alpha1.Tenant, error)
- func (r *ResourceRelations) GetTenantByName(tenantName string) (*v1alpha1.Tenant, error)
- func (r *ResourceRelations) IsOutputInSubscription(subscription, output v1alpha1.NamespacedName) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func QueryOutputSecret ¶
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 OutputWithSecretData ¶
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