scope

package
v0.0.0-...-c848cff Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package scope carries a tenant's identity on a context for the three libraries Tether calls, which each read it from their own place.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func With

func With(ctx context.Context, appID, tenantID string) context.Context

With returns ctx carrying (appID, tenantID) in all three mechanisms: keysmith.WithTenant, warden.WithTenant and forge.WithScope with an org scope.

Keysmith reads forge's scope first and falls back to its own. Warden does the opposite and prefers its own explicit values. A context that holds only one of them gives the two libraries different answers whenever an outer layer set a scope, so Tether always sets all three. An existing forge scope on ctx is replaced.

Types

This section is empty.

Jump to

Keyboard shortcuts

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