Documentation ¶
Index ¶
Constants ¶
View Source
const SPIFFE_ID_PATTERN = "^spiffe://[^/]+/ns/([^/]+)/sa/([^/]+)$"
SPIFFE_ID_PATTERN is a regular expression to match SPIFFE ID URIs, e.g. spiffe://cluster.local/ns/default/sa/foo
Variables ¶
View Source
var OK = code.Code_value["OK"]
View Source
var PERMISSION_DENIED = code.Code_value["PERMISSION_DENIED"]
Functions ¶
func NewRequestCache ¶
func NewRequestCache(store *policystore.PolicyStore, req *authz.CheckRequest) (*requestCache, error)
func NewServer ¶
func NewServer(store *policystore.PolicyStore) *authServer
NewServer creates a new authServer and returns a pointer to it.
Types ¶
Click to show internal directories.
Click to hide internal directories.