github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/apiserver/authentication/errors.go (about) 1 // Copyright 2023 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package authentication 5 6 import ( 7 "github.com/juju/errors" 8 ) 9 10 const ( 11 // ErrorEntityMissingPermission is an error that acts as an anchor for all 12 // consumers of authorization information in the API. As authorizers may 13 // return different authorization errors based on the entity context. This 14 // error exists to wrap all of these difference so one value can be used to 15 // determine if an authorization problem has occurred. 16 ErrorEntityMissingPermission = errors.ConstError("entity missing permission") 17 )