table

package
v1.19.2 Latest Latest
Warning

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

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

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

func NewEnrolledNamespacesTable

func NewEnrolledNamespacesTable(db *statedb.DB) (statedb.RWTable[*EnrolledNamespace], error)

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.

Jump to

Keyboard shortcuts

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