router

package
v0.2.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GroupName   = "kstone.tkestack.io"
	VersionName = "v1alpha2"
)

Variables

View Source
var (
	KubeScheme    = "https"
	KubeTarget    = os.Getenv("KUBE_TARGET")
	KubeToken     = os.Getenv("KUBE_TOKEN")
	WorkNamespace = "kstone"
)

Functions

func BackupList

func BackupList(ctx *gin.Context)

BackupList returns backup list

func EtcdKeyList

func EtcdKeyList(ctx *gin.Context)

EtcdKeyList returns etcd key list

func FeatureList

func FeatureList(ctx *gin.Context)

FeatureList returns all features

func Login

func Login(ctx *gin.Context)

Login returns login info

func NewRouter

func NewRouter() *gin.Engine

NewRouter generates router

func ReverseProxy

func ReverseProxy() gin.HandlerFunc

ReverseProxy reverses proxy to kubernetes api

func SetWorkNamespace

func SetWorkNamespace(namespace string)

SetWorkNamespace sets work namespace

func UserAdd

func UserAdd(ctx *gin.Context)

UserAdd adds user

func UserDelete

func UserDelete(ctx *gin.Context)

UserDelete deletes user

func UserList

func UserList(ctx *gin.Context)

UserList list all users

func UserUpdate

func UserUpdate(ctx *gin.Context)

UserUpdate updates users info

Types

This section is empty.

Jump to

Keyboard shortcuts

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