api

package
v0.0.0-...-4747e9d Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthorizeV0Handler

func AuthorizeV0Handler(apiVersion auth.Version) http.HandlerFunc

AuthorizeV0Handler -- Handle authentication using property file. For testing only

func LoginV0Handler

func LoginV0Handler(config *types.ConfigMap) http.HandlerFunc

LoginV0Handler -- Handle auth using property file. For testing only

func ValidationHandler

func ValidationHandler(apiVersion auth.Version) http.HandlerFunc

ValidationHandler validates the token

Types

type ErrorResponse

type ErrorResponse struct {
	Status       int    `json:"status,omitempty"`
	ErrorMessage string `json:"error,omitempty"`
}

ErrorResponse is

type JSONResponse

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

JSONResponse defines a JSON response sent to client

func (*JSONResponse) Write

func (jr *JSONResponse) Write(w http.ResponseWriter)

type JSONWriter

type JSONWriter interface {
	Write(w http.ResponseWriter)
}

JSONWriter interface

Jump to

Keyboard shortcuts

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