namespace

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NamespacePredefined is the list of pre-defined namespaces
	NamespacePredefined         = "predefined"
	NamespaceMultipartyContract = "contract"
)

Variables

This section is empty.

Functions

func InitConfig

func InitConfig(withDefaults bool)

Types

type Manager

type Manager interface {
	Init(ctx context.Context, cancelCtx context.CancelFunc, reset chan bool) error
	Start() error
	WaitStop()
	Reset(ctx context.Context)

	Orchestrator(ctx context.Context, ns string) (orchestrator.Orchestrator, error)
	MustOrchestrator(ns string) orchestrator.Orchestrator
	SPIEvents() spievents.Manager
	GetNamespaces(ctx context.Context) ([]*core.Namespace, error)
	GetOperationByNamespacedID(ctx context.Context, nsOpID string) (*core.Operation, error)
	ResolveOperationByNamespacedID(ctx context.Context, nsOpID string, op *core.OperationUpdateDTO) error
	Authorize(ctx context.Context, authReq *fftypes.AuthReq) error
}

func NewNamespaceManager

func NewNamespaceManager(withDefaults bool) Manager

Jump to

Keyboard shortcuts

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