gateway

package
v0.0.0-...-4786a4a Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const PASSWORD_NOT_MATH = "password not match"

Variables

This section is empty.

Functions

func NewGatewayServer

func NewGatewayServer(serviceName string, server *api.Server) *gatewayServer

func NewUserConfig

func NewUserConfig(user string, token string, allowedNamespaces []string, isClusterAdmin, isTenantOwner bool) *userConfig

Types

type LoginHandle

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

func NewLoginHandle

func NewLoginHandle(svcInterface service.Interface) *LoginHandle

func (*LoginHandle) Auth

func (lh *LoginHandle) Auth(user *User) (*userConfig, error)

type User

type User struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

Jump to

Keyboard shortcuts

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