controller

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8sController

type K8sController struct {
	// contains filtered or unexported fields
}

func NewK8sController

func NewK8sController(l *slog.Logger, k8sClient ports.Kubernetes, jwtSecret string, showUntaggedLinks bool) *K8sController

func (K8sController) JwtAuthMiddleware

func (c K8sController) JwtAuthMiddleware(next echo.HandlerFunc) echo.HandlerFunc

func (K8sController) ListIngressInfo

func (c K8sController) ListIngressInfo(ctx echo.Context) error

type MyCustomClaims

type MyCustomClaims struct {
	Username  string `json:"username"`
	AvatarURL string `json:"avatar_url"`
	jwt.StandardClaims
}

type OAuthController

type OAuthController struct {
	// contains filtered or unexported fields
}

func NewOAuthController

func NewOAuthController(l *slog.Logger, githubClient ports.GitHub, githubKey, githubSecret, callbackUrl string, jwtSecret string, expiredTime time.Duration, allowGitHubUserName ...string) (*OAuthController, error)

func (OAuthController) Callback

func (c OAuthController) Callback(ctx echo.Context) error

func (OAuthController) Login

func (c OAuthController) Login(ctx echo.Context) error

func (OAuthController) Logout

func (c OAuthController) Logout(ctx echo.Context) error

Jump to

Keyboard shortcuts

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