server

package
v1.7.9 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: GPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const ContentTypeDownload = "application/download"
View Source
const SessionCookieName = "SESS_COOKIE_KUBEPI"

Variables

View Source
var EmbedWebDashboard embed.FS
View Source
var EmbedWebKubePi embed.FS
View Source
var EmbedWebTerminal embed.FS
View Source
var SessionMgr *sessions.Sessions
View Source
var WebkubectlEntrypoint string

Functions

func Config

func Config() *v1Config.Config

func DB

func DB() storm.Node

func Listen

func Listen(route func(party iris.Party), options ...Option) error

func Logger

func Logger() *logrus.Logger

Types

type KubePiServer

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

func NewKubePiSerer

func NewKubePiSerer(opts ...Option) *KubePiServer

type Option

type Option func(server *KubePiServer)

func WithCustomConfigFilePath

func WithCustomConfigFilePath(path string) Option

func WithServerBindHost

func WithServerBindHost(host string) Option

func WithServerBindPort

func WithServerBindPort(port int) Option

type TodoLogger

type TodoLogger struct {
}

屏蔽 klog 日志

func (TodoLogger) Enabled

func (t TodoLogger) Enabled() bool

func (TodoLogger) Error

func (t TodoLogger) Error(err error, msg string, keysAndValues ...interface{})

func (TodoLogger) Info

func (t TodoLogger) Info(msg string, keysAndValues ...interface{})

Jump to

Keyboard shortcuts

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