registry

package
v0.4.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

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