Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthMode ¶
type AuthMode string
AuthMode defines the authentication mode
const ( // AuthModeKubeConfig reads the bearer token from the kubeconfig or from the mounted service account token file. AuthModeKubeConfig AuthMode = "kubeconfig" // AuthModeServiceAccount reads the bearer token from the mounted service account token file. AuthModeServiceAccount AuthMode = "serviceaccount" // AuthModeHeader reads the bearer token from the incoming request's authorization header. // The caller must store the token in the context. AuthModeHeader AuthMode = "header" )
func ParseAuthMode ¶
ParseAuthMode validates and converts a string to AuthMode
Click to show internal directories.
Click to hide internal directories.