Documentation
¶
Index ¶
Constants ¶
View Source
const ( ServerLogDomain = "server daemon" AuthzRefreshInterval = 120 * time.Second )
Variables ¶
View Source
var ErrInvalidKeystorePoolInterval = errors.New("invalid keystore pool interval, must be > 0")
Functions ¶
func MonitorKeystorePoolSize ¶ added in v0.7.0
Types ¶
type CmkServer ¶
type CmkServer struct {
// contains filtered or unexported fields
}
func NewCMKServer ¶
type KeystorePoolMonitor ¶ added in v0.7.0
type KeystorePoolMonitor struct {
// contains filtered or unexported fields
}
func NewKeystorePoolMonitorFromCfg ¶ added in v0.7.0
func NewKeystorePoolMonitorFromCfg(cfg *config.Config) (*KeystorePoolMonitor, error)
func (*KeystorePoolMonitor) Start ¶ added in v0.7.0
func (m *KeystorePoolMonitor) Start(ctx context.Context)
type PatternChecker ¶ added in v0.12.2
PatternChecker is a function that reports whether a URL pattern is allowed to be registered on the mux.
type ServeMux ¶
type ServeMux struct {
BaseURL string
// contains filtered or unexported fields
}
func NewServeMux ¶
func NewServeMux(baseURL string, opts ...ServeMuxOption) *ServeMux
func (*ServeMux) HandleFunc ¶
type ServeMuxOption ¶ added in v0.9.0
type ServeMuxOption func(*ServeMux)
func WithPatternChecker ¶ added in v0.12.2
func WithPatternChecker(checker PatternChecker) ServeMuxOption
WithPatternChecker replaces the default authz-based pattern checker with the provided function. The function receives the stripped pattern ("METHOD /path") and should return true if the pattern is allowed.
func WithSwaggerUI ¶ added in v0.9.0
func WithSwaggerUI(swagger *openapi3.T) ServeMuxOption
WithSwaggerUI adds an endpoint to serve Swagger UI at /cmk/v1/swagger The Swagger UI will load the OpenAPI spec inline without requiring a separate endpoint Note: The {tenant} parameter is removed from the base URL for this endpoint
Click to show internal directories.
Click to hide internal directories.