gcp

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OauthMiddleware

func OauthMiddleware(audience string, options ...Option) (func(ctx context.Context, req *http.Request) error, error)

Types

type Option

type Option func(*oauthMiddlewareConfig)

func WithTokenSource

func WithTokenSource(ts oauth2.TokenSource) Option

WithTokenSource injects a custom token source, bypassing GCP credential discovery. Primarily useful for testing.

Jump to

Keyboard shortcuts

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