Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
type Middleware struct { *jwt.GinJWTMiddleware SecretKey string AdminUser string AdminPassword string }
func GetAuthMiddleware ¶
func GetAuthMiddleware(SecretKey, AdminUser, AdminPassword string) (*Middleware, error)
func (*Middleware) Token ¶
func (m *Middleware) Token(name string) (string, error)
Token creates and returns a jwt token to manage a vcluster
func (*Middleware) TokenHandler ¶
func (m *Middleware) TokenHandler(c *gin.Context)
Click to show internal directories.
Click to hide internal directories.