tenant

package
v0.0.0-...-2af310e Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package tenant provides multi-tenancy helpers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateKey

func CreateKey(ctx context.Context, key string) string

CreateKey generated a unique key for a resource

func FromAccount

func FromAccount(acc *auth.Account) string

FromAccount returns a tenant from

func FromContext

func FromContext(ctx context.Context) (string, bool)

FromContext returns a tenant from the context

func Id

func Id(ctx context.Context) string

Get the tenant and default where needed

func NewContext

func NewContext(id, issuer, owner string) context.Context

NewContext returns a context that will encapsulate the given tenant

Types

This section is empty.

Jump to

Keyboard shortcuts

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