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 ¶
- type ReferencedBy
- func (r *ReferencedBy) AddReferencedBy(logger *slog.Logger, ownedKey client.ObjectKey, owner client.Object)
- func (r *ReferencedBy) AddReferencedByUsingKeys(logger *slog.Logger, ownedKey, ownerKey client.ObjectKey, ...)
- func (r *ReferencedBy) AllReferenced(ownerGVK schema.GroupVersionKind) map[client.ObjectKey]map[client.ObjectKey]struct{}
- func (r *ReferencedBy) CleanOwners()
- func (r ReferencedBy) DeepCopy() ReferencedBy
- func (r *ReferencedBy) ReferencedBy(owned client.Object, ownerGVK schema.GroupVersionKind) map[client.ObjectKey]struct{}
- func (r *ReferencedBy) ReferencedByUsingKeys(ownedKey client.ObjectKey, ownerGVK schema.GroupVersionKind) map[client.ObjectKey]struct{}
- func (r *ReferencedBy) RemoveReferencedBy(logger *slog.Logger, ownedKey client.ObjectKey, owner client.Object)
- func (r *ReferencedBy) RemoveReferencedByUsingKeys(logger *slog.Logger, ownedKey, ownerKey client.ObjectKey, ...)
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 utils.ExtractGVK) ReferencedBy
func (*ReferencedBy) AddReferencedBy ¶
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 (*ReferencedBy) RemoveReferencedByUsingKeys ¶
func (r *ReferencedBy) RemoveReferencedByUsingKeys(logger *slog.Logger, ownedKey, ownerKey client.ObjectKey, ownerGVK schema.GroupVersionKind)