Documentation
¶
Index ¶
- type AuthService
- func (a AuthService) AuthHandler(w http.ResponseWriter, r *http.Request)
- func (a AuthService) AuthValidateHandler(w http.ResponseWriter, r *http.Request)
- func (a AuthService) NewMTLSServer(router http.Handler, url string) *http.Server
- func (a AuthService) NewPodSecret(pod *corev1.Pod, namespace string, mutationID types.UID) (*corev1.Secret, error)
- type ClientCertificate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService struct {
// contains filtered or unexported fields
}
func NewAuthService ¶
func NewAuthService(kubeclient kubernetes.Interface, credentials credentialprovider.Credentials) (*AuthService, error)
NewAuthService creates a new authentication service for akv2k8s
func (AuthService) AuthHandler ¶
func (a AuthService) AuthHandler(w http.ResponseWriter, r *http.Request)
AuthHandler handles authentiction requests to the Auth Service
func (AuthService) AuthValidateHandler ¶
func (a AuthService) AuthValidateHandler(w http.ResponseWriter, r *http.Request)
AuthValidateHandler validates if a pod has valid credentials for authenticating with the Auth Service. If not it will issue a new Secret for the pod to use when authenticating.
func (AuthService) NewMTLSServer ¶
NewMTLSServer creates a new http server with mtls authentication enabled
type ClientCertificate ¶
Click to show internal directories.
Click to hide internal directories.