noauth

package
v0.11.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 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 {
	ServerConfig
	// contains filtered or unexported fields
}

func NewServer

func NewServer(conf *ServerConfig) *Server

func (*Server) ListenAndServe added in v0.6.0

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

type ServerConfig

type ServerConfig struct {
	Issuer                string              `json:"issuer,omitempty"`
	ClientID              string              `json:"clientID,omitempty"`
	ClientSecret          string              `json:"clientSecret,omitempty"`
	GrafanaHostname       string              `json:"grafanaHostname,omitempty"`
	RedirectURI           string              `json:"redirectURI,omitempty"`
	ManagementAPIEndpoint string              `json:"managementAPIEndpoint,omitempty"`
	Port                  int                 `json:"port,omitempty"`
	Debug                 bool                `json:"debug,omitempty"`
	OpenID                openid.OpenidConfig `json:"openid,omitempty"`

	Logger *zap.SugaredLogger `json:"-"`
}

func (*ServerConfig) DeepCopy

func (in *ServerConfig) DeepCopy() *ServerConfig

func (*ServerConfig) DeepCopyInto

func (in *ServerConfig) DeepCopyInto(out *ServerConfig)

Jump to

Keyboard shortcuts

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