Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EnrolledNamespacesNameIndex = statedb.Index[*EnrolledNamespace, string]{ Name: "name", FromObject: func(ns *EnrolledNamespace) index.KeySet { return index.NewKeySet(index.String(ns.Name)) }, FromKey: index.String, Unique: true, }
EnrolledNamespacesNameIndex allows looking up EnrolledNamespace by its name.
Functions ¶
Types ¶
type EnrolledNamespace ¶
type EnrolledNamespace struct {
Name string
Status reconciler.Status // reconciliation status
}
func K8sNamespaceToEnrolledNamespace ¶
func K8sNamespaceToEnrolledNamespace(ns k8s.Namespace, deleted bool) (*EnrolledNamespace, statedb.DeriveResult)
func (*EnrolledNamespace) Clone ¶
func (ns *EnrolledNamespace) Clone() *EnrolledNamespace
Clone returns a shallow copy of the EnrolledNamespace.
func (EnrolledNamespace) GetStatus ¶
func (ns EnrolledNamespace) GetStatus() reconciler.Status
GetStatus returns the reconciliation status. Used to provide the reconciler access to it.
func (*EnrolledNamespace) SetStatus ¶
func (ns *EnrolledNamespace) SetStatus(status reconciler.Status) *EnrolledNamespace
SetStatus sets the reconciliation status. Used by the reconciler to update the reconciliation status of the EnrolledNamespace.
func (*EnrolledNamespace) TableHeader ¶
func (ns *EnrolledNamespace) TableHeader() []string
TableHeader implements statedb.TableWritable.
func (*EnrolledNamespace) TableRow ¶
func (ns *EnrolledNamespace) TableRow() []string
TableRow implements statedb.TableWritable.
Click to show internal directories.
Click to hide internal directories.