validation

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 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 SafeSpiffeIdPrefix 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 SentinelSpiffeIdPrefix as its prefix.

func IsWorkload

func IsWorkload(spiffeid string) bool

IsWorkload returns true if the given SPIFFEID is a Workload ID. It does this by checking if the SPIFFEID has the WorkloadSpiffeIdPrefix 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