Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ErrInvalidURI is the class of error returned when parsing SPIFFE URI fails ErrInvalidURI = ex.Class("Invalid SPIFFE URI") // ErrNonKubernetesWorkload is class of error returned when parsing a SPIFFE // Kubernetes workload identifier fails. ErrNonKubernetesWorkload = ex.Class("Workload ID not in Kubernetes format") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubernetesWorkload ¶
KubernetesWorkload describes a Kubernetes workload identifier.
func ParseKubernetesWorkloadID ¶
func ParseKubernetesWorkloadID(workloadID string) (*KubernetesWorkload, error)
ParseKubernetesWorkloadID parses a SPIFFE workload identifier that identifies Kubernetes service account, of the form `ns/{namespace}/sa/{serviceAccount}`.
Click to show internal directories.
Click to hide internal directories.