util

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DOMAIN_DELIMITER = "."
View Source
const NS_DELIMITER = "-"

Variables

This section is empty.

Functions

func DomainToDNSPart

func DomainToDNSPart(domain string) (part string)

DomainToDNSPart converts the Athenz domain into a DNS label

func NamespaceToDomain

func NamespaceToDomain(ns, pre, d, suf string) (domain string)

NamespaceToDomain converts a kube namespace to an Athenz domain

func RoleSpiffeURI

func RoleSpiffeURI(domain, role string) (*url.URL, error)

RoleSpiffeURI returns the SPIFFE URI for the specified Athens domain and service.

func ServiceAccountToService

func ServiceAccountToService(svc string) string

ServiceAccountToService converts a kube serviceaccount name to an Athenz service

func ServiceSpiffeURI

func ServiceSpiffeURI(domain, service string) (*url.URL, error)

ServiceSpiffeURI returns the SPIFFE URI for the specified Athens domain and service.

Types

This section is empty.

Jump to

Keyboard shortcuts

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