- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ParseIdentity (0.15 sec)
-
pkg/spiffe/spiffe.go
spiffeLog = log.RegisterScope("spiffe", "SPIFFE library logging") ) type Identity struct { TrustDomain string Namespace string ServiceAccount string } func ParseIdentity(s string) (Identity, error) { if !strings.HasPrefix(s, URIPrefix) { return Identity{}, fmt.Errorf("identity is not a spiffe format") } split := strings.Split(s[URIPrefixLen:], "/") if len(split) != 5 {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 11.1K bytes - Viewed (0) -
pkg/spiffe/spiffe_test.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 18.1K bytes - Viewed (0)