namespace

package
v0.12.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ASTRelationFor

func ASTRelationFor(ctx context.Context, m Manager, namespace, relation string) (*ast.Relation, error)

Types

type Manager

type Manager interface {
	GetNamespaceByName(ctx context.Context, name string) (*Namespace, error)
	// Deprecated: Use GetNamespaceByName instead.
	GetNamespaceByConfigID(ctx context.Context, id int32) (*Namespace, error)
	Namespaces(ctx context.Context) ([]*Namespace, error)
	ShouldReload(newValue interface{}) bool
}

type ManagerProvider

type ManagerProvider interface {
	NamespaceManager() (Manager, error)
}

type Namespace

type Namespace struct {
	// Deprecated: Only use the Name instead.
	ID int32 `json:"id" db:"-" toml:"id"`
	// The unique name of the namespace.
	Name   string          `json:"name" db:"-" toml:"name"`
	Config json.RawMessage `json:"config,omitempty" db:"-" toml:"config,omitempty"`

	Relations []ast.Relation `json:"-" db:"-"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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