Documentation
¶
Overview ¶
* Stream Management API for OpenID Shared Security Events * * [OpenID Spec](https://openid.net/specs/openid-sse-framework-1_0.html#management) HTTP API to be implemented by Event Transmitters. This API can be used by Event Receivers to query and update the Event Stream configuration and status, to add and remove subjects, and to trigger verification. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
Index ¶
- Constants
- type AuthZenApp
- func (az *AuthZenApp) BundleDownload(writer http.ResponseWriter, _ *http.Request)
- func (az *AuthZenApp) BundleUpload(writer http.ResponseWriter, r *http.Request)
- func (az *AuthZenApp) HandleEvaluation(w http.ResponseWriter, r *http.Request)
- func (az *AuthZenApp) HandleQueryEvaluation(w http.ResponseWriter, r *http.Request)
- func (az *AuthZenApp) HealthCheck() bool
- func (az *AuthZenApp) Index(w http.ResponseWriter, r *http.Request)
- func (az *AuthZenApp) Logger(inner http.Handler, name string) http.Handler
- func (az *AuthZenApp) Name() string
- func (az *AuthZenApp) Shutdown()
- type AuthZenHealthCheck
- type HealthInfo
- type HttpRouter
- type Route
- type Routes
Constants ¶
const Header_Email string = "X-JWT-EMAIL"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthZenApp ¶
type AuthZenApp struct { Server *http.Server Router *HttpRouter BaseUrl *url.URL HostName string Decision *decisionHandler.DecisionHandler TokenAuthorizer *oauth2support.ResourceJwtAuthorizer // contains filtered or unexported fields }
func StartServer ¶
func StartServer(addr string, baseUrlString string) *AuthZenApp
func (*AuthZenApp) BundleDownload ¶
func (az *AuthZenApp) BundleDownload(writer http.ResponseWriter, _ *http.Request)
func (*AuthZenApp) BundleUpload ¶
func (az *AuthZenApp) BundleUpload(writer http.ResponseWriter, r *http.Request)
BundleUpload accepts an OPA tar bundle and replaces the current bundle package at az.BundleDir. Note the the process followed is:
1. Save the existing bundle directory to ".bundle-<number>" 2. Unzip and untar bundle to az.bundleDir (this bundle should contain an bundle folder) 3. Attempt to reload Rego. 4. If rego fails, restore the old bundle and server
func (*AuthZenApp) HandleEvaluation ¶
func (az *AuthZenApp) HandleEvaluation(w http.ResponseWriter, r *http.Request)
func (*AuthZenApp) HandleQueryEvaluation ¶
func (az *AuthZenApp) HandleQueryEvaluation(w http.ResponseWriter, r *http.Request)
func (*AuthZenApp) HealthCheck ¶
func (az *AuthZenApp) HealthCheck() bool
func (*AuthZenApp) Index ¶
func (az *AuthZenApp) Index(w http.ResponseWriter, r *http.Request)
func (*AuthZenApp) Name ¶
func (az *AuthZenApp) Name() string
func (*AuthZenApp) Shutdown ¶
func (az *AuthZenApp) Shutdown()
type AuthZenHealthCheck ¶
type AuthZenHealthCheck struct {
App *AuthZenApp
}
func (*AuthZenHealthCheck) Check ¶
func (h *AuthZenHealthCheck) Check() bool
func (*AuthZenHealthCheck) Name ¶
func (h *AuthZenHealthCheck) Name() string
type HealthInfo ¶
type HealthInfo struct {
Status string `json:"status"`
}
type HttpRouter ¶
type HttpRouter struct {
// contains filtered or unexported fields
}
func NewRouter ¶
func NewRouter(application *AuthZenApp) *HttpRouter