package spiffe

import "google.golang.org/grpc/internal/credentials/spiffe"

Package spiffe defines APIs for working with SPIFFE Bundle Maps.

All APIs in this package are experimental.

Index

Functions

func BundleMapFromBytes

func BundleMapFromBytes(bundleMapBytes []byte) (map[string]*spiffebundle.Bundle, error)

BundleMapFromBytes parses bytes into a SPIFFE Bundle Map. See the SPIFFE Bundle Map spec for more detail - https://github.com/spiffe/spiffe/blob/main/standards/SPIFFE_Trust_Domain_and_Bundle.md#4-spiffe-bundle-format If duplicate keys are encountered in the JSON parsing, Go's default unmarshal behavior occurs which causes the last processed entry to be the entry in the parsed map.

Source Files

spiffe.go

Version
v1.72.0 (latest)
Published
Apr 21, 2025
Platform
darwin/amd64
Imports
4 packages
Last checked
8 minutes ago

Tools for package owners.