server

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	*mux.Router
	// contains filtered or unexported fields
}

func New

func New(opts ...ServerFuncOpt) (*Server, error)

func (*Server) ConfigureOpenID

func (s *Server) ConfigureOpenID() error

type ServerFuncOpt

type ServerFuncOpt func(*Server) error

func WithAPIServerURL

func WithAPIServerURL(api string) ServerFuncOpt

func WithClusterCA

func WithClusterCA(filePath string) ServerFuncOpt

func WithExtraScopes

func WithExtraScopes(extraScopes ...string) ServerFuncOpt

func WithHTTPClient

func WithHTTPClient(c *http.Client) ServerFuncOpt

func WithIssuerURL

func WithIssuerURL(issuer string) ServerFuncOpt

func WithKubectlClientID

func WithKubectlClientID(clientID string) ServerFuncOpt

func WithKubectlClientSecret

func WithKubectlClientSecret(filePath string) ServerFuncOpt

func WithSessionName

func WithSessionName(name string) ServerFuncOpt

func WithSessionSecret

func WithSessionSecret(filePath string) ServerFuncOpt

Jump to

Keyboard shortcuts

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