Documentation
¶
Index ¶
- type Server
- func (w *Server) Close() error
- func (s *Server) GetJWTAuthority(id spiffeid.ID) (crypto.PublicKey, error)
- func (c *Server) GetWITSVID() (*pb.WITSVID, error)
- func (w *Server) ListenAndServe() error
- func (w *Server) ListenAndServeTLS(_, _ string) error
- func (w *Server) RegisterOnShutdown(f func())
- func (w *Server) Serve(l net.Listener) error
- func (w *Server) ServeTLS(l net.Listener, _, _ string) error
- func (w *Server) SetKeepAlivesEnabled(v bool)
- func (w *Server) Shutdown(ctx context.Context) error
- type ServerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
*spirehelper.SpireHelper
// contains filtered or unexported fields
}
func (*Server) GetJWTAuthority ¶
func (*Server) ListenAndServe ¶
func (*Server) ListenAndServeTLS ¶
func (*Server) RegisterOnShutdown ¶
func (w *Server) RegisterOnShutdown(f func())
func (*Server) SetKeepAlivesEnabled ¶
type ServerOption ¶
type ServerOption func(*Server)
func WithContext ¶
func WithContext(ctx context.Context) ServerOption
func WithSVIDMatch ¶
func WithSVIDMatch(funcs ...id.MatchFunc) ServerOption
func WithSpireAddress ¶
func WithSpireAddress(addr string) ServerOption
Click to show internal directories.
Click to hide internal directories.