Help us shape the future of Go! Take the 2026 Go Developer Survey

spiffe

package
v1.17.18 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parsed

type Parsed struct {
	// contains filtered or unexported fields
}

Parsed is a parsed SPIFFE ID according to the Dapr SPIFFE ID path format.

func FromGRPCContext

func FromGRPCContext(ctx context.Context) (*Parsed, bool, error)

FromGRPCContext parses a SPIFFE ID from a gRPC context.

func FromStrings

func FromStrings(td spiffeid.TrustDomain, namespace, appID string) (*Parsed, error)

FromStrings builds a Dapr SPIFFE ID with the given namespace and app ID in the given Trust Domain.

func (*Parsed) AppID

func (p *Parsed) AppID() string

func (*Parsed) Namespace

func (p *Parsed) Namespace() string

func (*Parsed) TrustDomain

func (p *Parsed) TrustDomain() spiffeid.TrustDomain

func (*Parsed) URL

func (p *Parsed) URL() *url.URL

Jump to

Keyboard shortcuts

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