dashboard

package
v1.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: MIT Imports: 34 Imported by: 0

Documentation

Overview

Copyright © 2023 NAME HERE cosmo-workspace

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrResponse added in v0.8.0

func ErrResponse(log *clog.Logger, err error) error

func Execute added in v0.9.0

func Execute()

func NewRootCmd added in v0.9.0

func NewRootCmd(o *options) *cobra.Command

Types

type HTTPRequestLogger

type HTTPRequestLogger struct {
	*clog.Logger
}

func NewHTTPRequestLogger

func NewHTTPRequestLogger(logr *clog.Logger) HTTPRequestLogger

func (HTTPRequestLogger) Middleware

func (l HTTPRequestLogger) Middleware(next http.Handler) http.Handler

type Server

type Server struct {
	Log                 *clog.Logger
	Klient              kosmo.Client
	GracefulShutdownDur time.Duration
	ResponseTimeout     time.Duration
	StaticFileDir       string
	Port                int
	MaxAgeSeconds       int
	TLSPrivateKeyPath   string
	TLSCertPath         string
	Insecure            bool

	CookieDomain      string
	CookieHashKey     string
	CookieBlockKey    string
	CookieSessionName string

	Authorizers map[cosmov1alpha1.UserAuthType]auth.Authorizer
	// contains filtered or unexported fields
}

Server serves dashboard APIs and UI static files It implements https://pkg.go.dev/sigs.k8s.io/controller-runtime/pkg/manager#Runnable

func (*Server) AuthServiceHandler added in v0.8.0

func (s *Server) AuthServiceHandler(mux *http.ServeMux)

func (*Server) GetUserAddonTemplates added in v0.2.0

func (*Server) Logout

func (*Server) Start

func (s *Server) Start(ctx context.Context) error

Start run server

func (*Server) TemplateServiceHandler added in v0.8.0

func (s *Server) TemplateServiceHandler(mux *http.ServeMux)

func (*Server) UserServiceHandler added in v0.8.0

func (s *Server) UserServiceHandler(mux *http.ServeMux)

func (*Server) WorkspaceServiceHandler added in v0.8.0

func (s *Server) WorkspaceServiceHandler(mux *http.ServeMux)

type StoreStatusResponseWriter

type StoreStatusResponseWriter struct {
	http.ResponseWriter
	// contains filtered or unexported fields
}

func (*StoreStatusResponseWriter) StatusCode

func (w *StoreStatusResponseWriter) StatusCode() int

func (*StoreStatusResponseWriter) StatusString

func (w *StoreStatusResponseWriter) StatusString() string

func (*StoreStatusResponseWriter) WriteHeader

func (w *StoreStatusResponseWriter) WriteHeader(statusCode int)

Jump to

Keyboard shortcuts

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