Documentation ¶
Index ¶
- func GetExporterNameForOutput(output v1alpha1.Output) string
- 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 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
Click to show internal directories.
Click to hide internal directories.