Versions in this module Expand all Collapse all v0 v0.6.0 Jun 30, 2023 Changes in this version + var DefaultNamespace = &Namespace + type DiscoveryRepository interface + CreateNamespace func(context.Context, *Namespace) error + type Namespace struct + ID uuid.UUID + Metadata map[string]interface{} + Name string + State State + func (n Namespace) String() string + type Service struct + func NewService(logger log.Logger, storageRepo StorageRepository, ...) *Service + func (s Service) Create(ctx context.Context, namespace *Namespace) (string, error) + func (s Service) GetByID(ctx context.Context, id uuid.UUID) (*Namespace, error) + func (s Service) GetByName(ctx context.Context, name string) (*Namespace, error) + func (s Service) List(ctx context.Context) ([]*Namespace, error) + func (s Service) MigrateDefault(ctx context.Context) (string, error) + func (s Service) Update(ctx context.Context, namespace *Namespace) error + type State string + const DedicatedState + const PendingState + const SharedState + const UpgradeState + func (s State) String() string + type StorageRepository interface + Create func(context.Context, *Namespace) (string, error) + GetByID func(context.Context, uuid.UUID) (*Namespace, error) + GetByName func(context.Context, string) (*Namespace, error) + List func(context.Context) ([]*Namespace, error) + Update func(context.Context, *Namespace) error