testcaller

package
v0.4.0-rc.28 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func With

func With(ctx context.Context, caller Caller) context.Context

With stores test-provided caller state on ctx.

Types

type Caller

type Caller struct {
	UserID      string
	Email       string
	DisplayName string
	Access      string
}

Caller is test-provided caller state. The SDK treats it as a fallback after framework run state and authenticated request headers.

func FromContext

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

FromContext returns test-provided caller state, if present.

Jump to

Keyboard shortcuts

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