validation

package
v0.24.5 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsSafe

func IsSafe(spiffeid string) bool

IsSafe returns true if the given SPIFFEID is a Safe ID. It does this by checking if the SPIFFEID has the SpiffeIdPrefixForSafe as its prefix.

func IsSentinel

func IsSentinel(spiffeid string) bool

IsSentinel returns true if the given SPIFFEID is a Sentinel ID. It does this by checking if the SPIFFEID has the SpiffeIdPrefixForSentinel as its prefix.

func IsWorkload

func IsWorkload(spiffeid string) bool

IsWorkload returns true if the given SPIFFEID is a WorkloadIds ID. It does this by checking if the SPIFFEID has the SpiffeIdPrefixForWorkload as its prefix.

Types

This section is empty.

Jump to

Keyboard shortcuts

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