Documentation ¶
Index ¶
- func PostStop(rc *gwcommon.RouteConfig) error
- func RouteActiveHandler(writer http.ResponseWriter, request *http.Request, rc *gwcommon.RouteConfig)
- type GitlabEventSourceExecutor
- func (ese *GitlabEventSourceExecutor) PostActivate(rc *gwcommon.RouteConfig) error
- func (ese *GitlabEventSourceExecutor) StartEventSource(eventSource *gateways.EventSource, ...) error
- func (ese *GitlabEventSourceExecutor) ValidateEventSource(ctx context.Context, es *gateways.EventSource) (*gateways.ValidEventSource, error)
- type GitlabSecret
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PostStop ¶
func PostStop(rc *gwcommon.RouteConfig) error
func RouteActiveHandler ¶
func RouteActiveHandler(writer http.ResponseWriter, request *http.Request, rc *gwcommon.RouteConfig)
routeActiveHandler handles new route
Types ¶
type GitlabEventSourceExecutor ¶
type GitlabEventSourceExecutor struct { Log zerolog.Logger // Clientset is kubernetes client Clientset kubernetes.Interface // Namespace where gateway is deployed Namespace string }
GitlabEventSourceExecutor implements ConfigExecutor
func (*GitlabEventSourceExecutor) PostActivate ¶
func (ese *GitlabEventSourceExecutor) PostActivate(rc *gwcommon.RouteConfig) error
func (*GitlabEventSourceExecutor) StartEventSource ¶
func (ese *GitlabEventSourceExecutor) StartEventSource(eventSource *gateways.EventSource, eventStream gateways.Eventing_StartEventSourceServer) error
StartEventSource starts an event source
func (*GitlabEventSourceExecutor) ValidateEventSource ¶
func (ese *GitlabEventSourceExecutor) ValidateEventSource(ctx context.Context, es *gateways.EventSource) (*gateways.ValidEventSource, error)
ValidateEventSource validates gitlab gateway event source
type GitlabSecret ¶
type GitlabSecret struct { // Key within the K8 secret for access token Key string // Name of K8 secret containing access token info Name string }
GitlabSecret contains information of k8 secret which holds the gitlab api access information
Click to show internal directories.
Click to hide internal directories.