routes

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2019 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllowedDatabases

func GetAllowedDatabases() echo.HandlerFunc

func GetAllowedInstances added in v0.0.5

func GetAllowedInstances() echo.HandlerFunc

func GetCredential

func GetCredential() echo.HandlerFunc

func GetSignedCertificate added in v0.0.5

func GetSignedCertificate() echo.HandlerFunc

func Login

func Login() echo.HandlerFunc

func Logout

func Logout() echo.HandlerFunc

Types

type CredentialRequest

type CredentialRequest struct {
	Role string `json:"role"`
}

type CredentialResponse

type CredentialResponse struct {
	Username      string `json:"username"`
	Password      string `json:"password"`
	ConnectionUrl string `json:"connectionUrl"`
	Validity      int    `json:"validity"`
}

type LoginRequest

type LoginRequest struct {
	Username    string `json:"username"`
	Password    string `json:"password"`
	NewPassword string `json:"newPassword"`
	OTP         string `json:"otp"`
}

type LoginResponse

type LoginResponse struct {
	Token  string `json:"token,omitempty"`
	Status string `json:"status,omitempty"`
}

type SigningRequest added in v0.0.5

type SigningRequest struct {
	Username  string `json:"username"`
	Role      string `json:"role"`
	PublicKey string `json:"publicKey"`
}

type SigningResponse added in v0.0.5

type SigningResponse struct {
	Username  string      `json:"username"`
	Name      string      `json:"name"`
	Serial    string      `json:"serial"`
	Validity  interface{} `json:"validity"`
	SignedKey string      `json:"signedKey"`
}

Jump to

Keyboard shortcuts

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