Documentation ¶
Index ¶
- func GetComponent[T any](ctx context.Context, dest *T) error
- func GetComponentFromServer[T any](s *Server, dest *T) error
- func MustGetComponent[T any](ctx context.Context) T
- func WithServer(ctx context.Context, s *Server) context.Context
- type AuthenticationInfo
- type AuthenticationProvider
- type Component
- type FileResponse
- type JSONResponse
- type Request
- type RequestFilter
- type RequestFilterChain
- type RequestFilterFunction
- type Response
- type Server
- type Session
- type SimpleResponse
- type UserMapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetComponentFromServer ¶
func MustGetComponent ¶
Types ¶
type AuthenticationInfo ¶
type AuthenticationProvider ¶
type AuthenticationProvider interface { ProviderID() string // Redeem is called from the oauth2 callback request; it normally exchanges a code for a token for the logged-in user Redeem(ctx context.Context, redirectURI string, code string) error GetLoginURL(ctx context.Context, redirectURI, state string) string }
AuthenticationProvider is implemented by authentication services.
type FileResponse ¶
type FileResponse struct { StatusCode int StatusText string Body io.ReadCloser // contains filtered or unexported fields }
func (*FileResponse) Close ¶
func (r *FileResponse) Close() error
func (*FileResponse) Headers ¶
func (r *FileResponse) Headers() http.Header
func (*FileResponse) WriteTo ¶
func (r *FileResponse) WriteTo(ctx context.Context, w http.ResponseWriter)
type JSONResponse ¶
type JSONResponse struct {
Object any
}
func (JSONResponse) WriteTo ¶
func (r JSONResponse) WriteTo(ctx context.Context, w http.ResponseWriter)
type Request ¶
func GetRequest ¶
func (*Request) BrowserUsingHTTPS ¶
BrowserUsingHTTPS returns true if the _browser_ is using https to talk to us We may (or may not) be using encryption behind a load balancer
func (*Request) IsLocalhost ¶
func (*Request) PathParameter ¶
type RequestFilter ¶
type RequestFilterChain ¶
type RequestFilterFunction ¶
type Response ¶
type Response interface {
WriteTo(ctx context.Context, w http.ResponseWriter)
}
func ErrorResponse ¶
func RedirectResponse ¶
type Session ¶
type Session interface { Clear(_ proto.Message) Set(value proto.Message) Get(dest proto.Message) bool }
Session implements session storage.
type SimpleResponse ¶
type SimpleResponse struct { StatusCode int StatusText string Body []byte // contains filtered or unexported fields }
func (*SimpleResponse) Headers ¶
func (r *SimpleResponse) Headers() http.Header
func (SimpleResponse) WriteTo ¶
func (r SimpleResponse) WriteTo(ctx context.Context, w http.ResponseWriter)
type UserMapper ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
kubejson/internal/set
Package set provides simple set data structures for uint64s.
|
Package set provides simple set data structures for uint64s. |
Click to show internal directories.
Click to hide internal directories.