tenant

package
v0.0.65 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const Default = "staples"

Variables

This section is empty.

Functions

func Config

func Config(o *v1.Config, domains []string) *v1.Config

Types

type Loader

type Loader interface {
	TenantBySiteID(ctx context.Context, siteId string) (tenantId string)
}

type Tenants

type Tenants struct {
	// contains filtered or unexported fields
}

func NewTenants

func NewTenants(o *v1.Config) *Tenants

func (*Tenants) All

func (t *Tenants) All() []*v1.Tenant

func (*Tenants) AllDomains

func (t *Tenants) AllDomains() (o []*v1.Domain)

func (*Tenants) Domains

func (t *Tenants) Domains(id string) []*v1.Domain

func (*Tenants) Get

func (t *Tenants) Get(domain string) *v1.Tenant

func (*Tenants) GetByID

func (t *Tenants) GetByID(id string) *v1.Tenant

func (*Tenants) TenantBySiteID

func (t *Tenants) TenantBySiteID(ctx context.Context, siteId string) (tenantId string)

Jump to

Keyboard shortcuts

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