Documentation ¶
Index ¶
- Constants
- func CreateAndValidateCerts(ctx context.Context, coreV1Interface corev1.CoreV1Interface, ...)
- func GetTLSData(ctx context.Context, logger *zap.SugaredLogger) (*tls.Certificate, error)
- func UpdateCACertToClusterInterceptorCRD(ctx context.Context, service *Server, ...)
- type Error
- type HTTPError
- type Server
Constants ¶
View Source
const (
Century = 100 * 365 * 24 * time.Hour
)
Variables ¶
This section is empty.
Functions ¶
func CreateAndValidateCerts ¶ added in v0.22.0
func CreateAndValidateCerts(ctx context.Context, coreV1Interface corev1.CoreV1Interface, logger *zap.SugaredLogger, service *Server, tc triggersv1alpha1.TriggersV1alpha1Interface)
func GetTLSData ¶ added in v0.22.0
func GetTLSData(ctx context.Context, logger *zap.SugaredLogger) (*tls.Certificate, error)
func UpdateCACertToClusterInterceptorCRD ¶ added in v0.22.0
func UpdateCACertToClusterInterceptorCRD(ctx context.Context, service *Server, tc triggersv1alpha1.TriggersV1alpha1Interface, logger *zap.SugaredLogger, timer time.Duration)
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) ExecuteInterceptor ¶
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.