Documentation
¶
Index ¶
- Constants
- func CreateCerts(ctx context.Context, coreV1Interface corev1.CoreV1Interface, noAfter time.Time, ...) ([]byte, []byte, error)
- type Error
- type HTTPError
- type Server
- func (is *Server) CheckCertValidity(ctx context.Context, serverCert, caCert []byte, ...)
- func (is *Server) ExecuteInterceptor(r *http.Request) ([]byte, error)
- func (is *Server) ListAndUpdateClusterInterceptorCRD(ctx context.Context, tc triggersv1alpha1.TriggersV1alpha1Interface, ...) error
- func (is *Server) RegisterInterceptor(path string, interceptor triggersv1.InterceptorInterface)
- func (is *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)
Constants ¶
View Source
const ( Decade = 100 * 365 * 24 * time.Hour InterceptorTLSSecretKey = "INTERCEPTOR_TLS_SECRET_NAME" InterceptorTLSSvcKey = "INTERCEPTOR_TLS_SVC_NAME" )
Variables ¶
This section is empty.
Functions ¶
func CreateCerts ¶ added in v0.20.2
Types ¶
type Error ¶
Error represents a handler error. It provides methods for a HTTP status code and embeds the built-in error interface.
type HTTPError ¶
HTTPError represents an error with an associated HTTP status code.
type Server ¶
type Server struct { Logger *zap.SugaredLogger // contains filtered or unexported fields }
func NewWithCoreInterceptors ¶
func NewWithCoreInterceptors(sg interceptors.SecretGetter, logger *zap.SugaredLogger) (*Server, error)
func (*Server) CheckCertValidity ¶ added in v0.21.0
func (is *Server) CheckCertValidity(ctx context.Context, serverCert, caCert []byte, coreV1Interface corev1.CoreV1Interface, logger *zap.SugaredLogger, tc triggersv1alpha1.TriggersV1alpha1Interface, tickerTime time.Duration)
func (*Server) ExecuteInterceptor ¶
func (*Server) ListAndUpdateClusterInterceptorCRD ¶ added in v0.21.0
func (is *Server) ListAndUpdateClusterInterceptorCRD(ctx context.Context, tc triggersv1alpha1.TriggersV1alpha1Interface, caCert []byte) error
func (*Server) RegisterInterceptor ¶ added in v0.18.0
func (is *Server) RegisterInterceptor(path string, interceptor triggersv1.InterceptorInterface)
RegisterInterceptor sets up the interceptor to be served at the specfied path
Click to show internal directories.
Click to hide internal directories.