Documentation ¶
Index ¶
- Constants
- func IsAuthorized(c *v1.Client, namespace, verb, group, resource, name string) (allowed bool, err error)
- func StreamingInterceptor(kubeConfig *v1.Config, db *v1.DB, sysConfig v1.SystemConfig) grpc.StreamServerInterceptor
- func UnaryInterceptor(kubeConfig *v1.Config, db *v1.DB, sysConfig v1.SystemConfig) grpc.UnaryServerInterceptor
Constants ¶
View Source
const ( // ContextClientKey is the key used to identify the Client value in Context ContextClientKey key = iota )
Variables ¶
This section is empty.
Functions ¶
func IsAuthorized ¶
func StreamingInterceptor ¶
func StreamingInterceptor(kubeConfig *v1.Config, db *v1.DB, sysConfig v1.SystemConfig) grpc.StreamServerInterceptor
StreamingInterceptor provides an authentication wrapper around streaming requests.
func UnaryInterceptor ¶
func UnaryInterceptor(kubeConfig *v1.Config, db *v1.DB, sysConfig v1.SystemConfig) grpc.UnaryServerInterceptor
UnaryInterceptor performs authentication checks. The two main cases are:
- Is the token valid? This is used for logging in.
- Is there a token? There should be a token for everything except logging in.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.