Documentation
¶
Index ¶
Constants ¶
View Source
const (
AuthorizedClusterIDsKey = "authorized_cluster_ids"
)
View Source
const (
UserIDKey = "rbac_user_id"
)
Variables ¶
This section is empty.
Functions ¶
func AuthorizedClusterIDs ¶
func AuthorizedClusterIDs(c *fiber.Ctx) []string
func AuthorizedUserID ¶
func NewMiddleware ¶
func NewMiddleware(provider Provider, codec HeaderCodec) func(*fiber.Ctx) error
Types ¶
type HeaderCodec ¶
type Provider ¶
type Provider interface {
SubjectAccess(context.Context, *corev1.SubjectAccessRequest) (*corev1.ReferenceList, error)
}
Click to show internal directories.
Click to hide internal directories.