server

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrettyStruct

func PrettyStruct(data interface{}) (string, error)

Types

type AuthInfo

type AuthInfo struct {
	IdentityToken string
	PublicKey     ssh.PublicKey
}

type Opt

type Opt struct {
	Debug      bool
	KubeConfig string
}

type Server

type Server struct {
	Router      *gin.Engine
	AdminRouter *gin.Engine
	// contains filtered or unexported fields
}

func New

func New(opt Opt) (*Server, error)

func (*Server) OnConfig

func (s *Server) OnConfig(c *gin.Context)

func (*Server) OnPubKey

func (s *Server) OnPubKey(c *gin.Context)

func (*Server) Run

func (s *Server) Run() error

Jump to

Keyboard shortcuts

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