Documentation
¶
Index ¶
- func HttpError(ctx context.Context, writer http.ResponseWriter, request *http.Request, ...)
- func Probe(check func(context.Context) bool) http.HandlerFunc
- type AdmissionHandler
- func (inner AdmissionHandler) WithAdmission(logger logr.Logger) HttpHandler
- func (inner AdmissionHandler) WithDump(enabled bool) AdmissionHandler
- func (inner AdmissionHandler) WithFilter(configuration config.Configuration) AdmissionHandler
- func (inner AdmissionHandler) WithMetrics(logger logr.Logger, metricsConfig config.MetricsConfiguration, ...) AdmissionHandler
- func (inner AdmissionHandler) WithOperationFilter(operations ...admissionv1.Operation) AdmissionHandler
- func (inner AdmissionHandler) WithProtection(enabled bool) AdmissionHandler
- func (inner AdmissionHandler) WithRoles(rbLister rbacv1listers.RoleBindingLister, ...) AdmissionHandler
- func (inner AdmissionHandler) WithSubResourceFilter(subresources ...string) AdmissionHandler
- func (inner AdmissionHandler) WithTopLevelGVK(client dclient.IDiscovery) AdmissionHandler
- func (inner AdmissionHandler) WithTrace(name string) AdmissionHandler
- type AdmissionRequest
- type AdmissionResponse
- type HttpHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AdmissionHandler ¶
type AdmissionHandler func(context.Context, logr.Logger, AdmissionRequest, time.Time) AdmissionResponse
func FromAdmissionFunc ¶ added in v1.9.0
func FromAdmissionFunc(name string, h AdmissionHandler) AdmissionHandler
func (AdmissionHandler) WithAdmission ¶ added in v1.8.2
func (inner AdmissionHandler) WithAdmission(logger logr.Logger) HttpHandler
func (AdmissionHandler) WithDump ¶ added in v1.9.0
func (inner AdmissionHandler) WithDump( enabled bool, ) AdmissionHandler
func (AdmissionHandler) WithFilter ¶ added in v1.8.2
func (inner AdmissionHandler) WithFilter(configuration config.Configuration) AdmissionHandler
func (AdmissionHandler) WithMetrics ¶ added in v1.8.2
func (inner AdmissionHandler) WithMetrics(logger logr.Logger, metricsConfig config.MetricsConfiguration, attrs ...attribute.KeyValue) AdmissionHandler
func (AdmissionHandler) WithOperationFilter ¶ added in v1.9.0
func (inner AdmissionHandler) WithOperationFilter(operations ...admissionv1.Operation) AdmissionHandler
func (AdmissionHandler) WithProtection ¶ added in v1.8.2
func (inner AdmissionHandler) WithProtection(enabled bool) AdmissionHandler
func (AdmissionHandler) WithRoles ¶ added in v1.10.0
func (inner AdmissionHandler) WithRoles( rbLister rbacv1listers.RoleBindingLister, crbLister rbacv1listers.ClusterRoleBindingLister, ) AdmissionHandler
func (AdmissionHandler) WithSubResourceFilter ¶ added in v1.9.0
func (inner AdmissionHandler) WithSubResourceFilter(subresources ...string) AdmissionHandler
func (AdmissionHandler) WithTopLevelGVK ¶ added in v1.10.0
func (inner AdmissionHandler) WithTopLevelGVK( client dclient.IDiscovery, ) AdmissionHandler
func (AdmissionHandler) WithTrace ¶ added in v1.9.0
func (inner AdmissionHandler) WithTrace(name string) AdmissionHandler
type AdmissionRequest ¶ added in v1.10.0
type AdmissionRequest struct { // AdmissionRequest is the original admission request. admissionv1.AdmissionRequest // Roles is a list of possible role send the request. Roles []string // ClusterRoles is a list of possible clusterRoles send the request. ClusterRoles []string // GroupVersionKind is the top level GVK. GroupVersionKind schema.GroupVersionKind }
type AdmissionResponse ¶ added in v1.10.0
type AdmissionResponse = admissionv1.AdmissionResponse
func Verify ¶
func Verify(ctx context.Context, logger logr.Logger, request AdmissionRequest, startTime time.Time) AdmissionResponse
type HttpHandler ¶ added in v1.9.0
type HttpHandler func(http.ResponseWriter, *http.Request)
func (HttpHandler) ToHandlerFunc ¶ added in v1.9.0
func (h HttpHandler) ToHandlerFunc(operation string) http.HandlerFunc
func (HttpHandler) WithMetrics ¶ added in v1.9.0
func (inner HttpHandler) WithMetrics(logger logr.Logger, attrs ...attribute.KeyValue) HttpHandler
func (HttpHandler) WithTrace ¶ added in v1.9.0
func (inner HttpHandler) WithTrace(name string) HttpHandler
Click to show internal directories.
Click to hide internal directories.