Documentation ¶
Overview ¶
Package registry provides registries for namespaces and resource definitions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NamespaceRegistry ¶
type NamespaceRegistry struct {
// contains filtered or unexported fields
}
NamespaceRegistry facilitates tracking namespaces.
func NewNamespaceRegistry ¶
func NewNamespaceRegistry(state state.State) *NamespaceRegistry
NewNamespaceRegistry creates new NamespaceRegistry.
func (*NamespaceRegistry) Register ¶
func (registry *NamespaceRegistry) Register(ctx context.Context, ns resource.Namespace, description string) error
Register a namespace.
func (*NamespaceRegistry) RegisterDefault ¶
func (registry *NamespaceRegistry) RegisterDefault(ctx context.Context) error
RegisterDefault registers default namespaces.
type ResourceRegistry ¶
type ResourceRegistry struct {
// contains filtered or unexported fields
}
ResourceRegistry facilitates tracking namespaces.
func NewResourceRegistry ¶
func NewResourceRegistry(state state.State) *ResourceRegistry
NewResourceRegistry creates new ResourceRegistry.
func (*ResourceRegistry) Register ¶
func (registry *ResourceRegistry) Register(ctx context.Context, r meta.ResourceWithRD) error
Register a namespace.
func (*ResourceRegistry) RegisterDefault ¶
func (registry *ResourceRegistry) RegisterDefault(ctx context.Context) error
RegisterDefault registers default resource definitions.
Click to show internal directories.
Click to hide internal directories.