tenant

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2022 License: Apache-2.0 Imports: 3 Imported by: 2

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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