namespace

package
v0.7.0-alpha.0.pre.3 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	GetNamespaceByName(ctx context.Context, name string) (*Namespace, error)
	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 {
	ID     int32           `json:"id" db:"-" toml:"id"`
	Name   string          `json:"name" db:"-" toml:"name"`
	Config json.RawMessage `json:"config,omitempty" db:"-" toml:"config,omitempty"`
}

Jump to

Keyboard shortcuts

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