auth

package
v0.0.0-...-b2bfca1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 5 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL