Documentation ¶
Index ¶
- Variables
- type DiscoveryRepository
- type Namespace
- type 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
- type StorageRepository
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultNamespace is used for compass single tenant applications DefaultNamespace = &Namespace{ ID: uuid.Nil, Name: "default", State: SharedState, Metadata: map[string]interface{}{}, } )
Functions ¶
This section is empty.
Types ¶
type DiscoveryRepository ¶
type Namespace ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(logger log.Logger, storageRepo StorageRepository, discoveryRepo DiscoveryRepository) *Service
func (Service) MigrateDefault ¶
type State ¶
type State string
const ( // PendingState could be used for tenants which are not ready for use at the moment PendingState State = "pending" SharedState State = "shared" // DedicatedState is for large tenants DedicatedState State = "dedicated" // UpgradeState is used when a shared tenant is getting upgraded to dedicated // TODO: *impt* : support of upgrading a shared to dedicated tenant is not implemented yet UpgradeState State = "upgrade" )
type StorageRepository ¶
Click to show internal directories.
Click to hide internal directories.