spiffe

package
v1.14.1-rc.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 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