context

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2025 License: Apache-2.0 Imports: 4 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func From deprecated

func From(ctx context.Context) (x509svid.Source, bool)

Deprecated: use X509From instead. From retrieves the x509 SVID source from the context.

func JWTFrom added in v0.16.0

func JWTFrom(ctx context.Context) (jwtsvid.Source, bool)

JWTFrom retrieves the JWT SVID source from the context.

func With deprecated

func With(ctx context.Context, spiffe *spiffe.SPIFFE) context.Context

Deprecated: use WithX509 instead. With adds the x509 SVID source from the SPIFFE object to the context.

func WithJWT added in v0.16.0

func WithJWT(ctx context.Context, source jwtsvid.Source) context.Context

WithJWT adds a JWT SVID source to the context.

func WithSpiffe added in v0.16.0

func WithSpiffe(ctx context.Context, spiffe *spiffe.SPIFFE) context.Context

WithSpiffe adds both X509 and JWT SVID sources to the context.

func WithX509 added in v0.16.0

func WithX509(ctx context.Context, source x509svid.Source) context.Context

WithX509 adds an x509 SVID source to the context.

func X509From added in v0.16.0

func X509From(ctx context.Context) (x509svid.Source, bool)

X509From retrieves the x509 SVID source 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