routers

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2020 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(c *gin.Context)

Auth godoc

func Error

func Error(c *gin.Context, authError *AuthError) bool

Error godoc

func ErrorK8sClient

func ErrorK8sClient(c *gin.Context, err error) bool

ErrorK8sClient godoc

func GetResources

func GetResources(c *gin.Context)

GetResources godoc

func GetStatus

func GetStatus(c *gin.Context)

GetStatus godoc @Summary API Healthcheck @Description get string by GET @Produce json @Success 200 {object} APIStatus @Router /status [get]

Types

type APIStatus

type APIStatus struct {
	Status string
}

APIStatus godoc

type AuthConfig

type AuthConfig struct {
	ServerName         string `json:"serverName" binding:"required"`
	Server             string `json:"server" binding:"required"`
	Token              string `json:"token" binding:"required"`
	ServerCADataString string `json:"serverCADataString" binding:"required"`
}

AuthConfig godoc

type AuthError

type AuthError struct {
	Error   error  `json: "error"`
	Code    int    `json: "code"`
	Message string `json: "message"`
}

AuthError godoc

type PodList

type PodList v1.PodList

PodList godoc

Jump to

Keyboard shortcuts

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