references

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Copyright 2025 HAProxy Technologies LLC

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReferencedBy

type ReferencedBy struct {

	// Owner: Gate Key -> GVK of Owner -> Owner Key
	Owner map[client.ObjectKey]map[schema.GroupVersionKind]map[client.ObjectKey]struct{}
	Name  string
	// contains filtered or unexported fields
}

func NewReferencedBy

func NewReferencedBy(name string, exctractGVK utilsk8s.ExtractGVK) ReferencedBy

func (*ReferencedBy) AddReferencedBy

func (r *ReferencedBy) AddReferencedBy(logger *slog.Logger, ownedKey client.ObjectKey, owner client.Object)

func (*ReferencedBy) AddReferencedByUsingKeys

func (r *ReferencedBy) AddReferencedByUsingKeys(logger *slog.Logger, ownedKey, ownerKey client.ObjectKey, ownerGVK schema.GroupVersionKind)

func (*ReferencedBy) AllReferenced

func (r *ReferencedBy) AllReferenced(ownerGVK schema.GroupVersionKind) map[client.ObjectKey]map[client.ObjectKey]struct{}

AllReferenced returns all owned keys that are referenced by a given ownerGVK, along with the list of owner keys For examples, return all secrets that are referenced by a Gateway, along with the owner Gateway keys map[ownedKey] => map [ownerKey] => struct{}

func (*ReferencedBy) CleanOwners

func (r *ReferencedBy) CleanOwners()

func (ReferencedBy) DeepCopy

func (r ReferencedBy) DeepCopy() ReferencedBy

func (*ReferencedBy) ReferencedBy

func (r *ReferencedBy) ReferencedBy(owned client.Object, ownerGVK schema.GroupVersionKind) map[client.ObjectKey]struct{}

func (*ReferencedBy) ReferencedByUsingKeys

func (r *ReferencedBy) ReferencedByUsingKeys(ownedKey client.ObjectKey, ownerGVK schema.GroupVersionKind) map[client.ObjectKey]struct{}

func (*ReferencedBy) RemoveReferencedBy

func (r *ReferencedBy) RemoveReferencedBy(logger *slog.Logger, ownedKey client.ObjectKey, owner client.Object)

func (*ReferencedBy) RemoveReferencedByUsingKeys

func (r *ReferencedBy) RemoveReferencedByUsingKeys(logger *slog.Logger, ownedKey, ownerKey client.ObjectKey, ownerGVK schema.GroupVersionKind)

Jump to

Keyboard shortcuts

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