namespace

package
v0.6.0-alpha.1.pre.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: Apache-2.0 Imports: 3 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 {
	GetNamespace(ctx context.Context, name string) (*Namespace, error)
	Namespaces(ctx context.Context) ([]*Namespace, error)
}

type ManagerProvider

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

type Migrator

type Migrator interface {
	NamespaceMigrationBox(ctx context.Context, n *Namespace) (*popx.MigrationBox, error)
}

type MigratorProvider

type MigratorProvider interface {
	NamespaceMigrator() Migrator
}

type Namespace

type Namespace struct {
	ID     int             `json:"id" db:"id" 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