Documentation ¶
Index ¶
- func PostStop(rc *gwcommon.RouteConfig) error
- func RouteActiveHandler(writer http.ResponseWriter, request *http.Request, rc *gwcommon.RouteConfig)
- type GithubEventSourceExecutor
- func (ese *GithubEventSourceExecutor) PostActivate(rc *gwcommon.RouteConfig) error
- func (ese *GithubEventSourceExecutor) StartEventSource(eventSource *gateways.EventSource, ...) error
- func (ese *GithubEventSourceExecutor) ValidateEventSource(ctx context.Context, es *gateways.EventSource) (*gateways.ValidEventSource, error)
- type TokenAuthTransport
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 GithubEventSourceExecutor ¶
type GithubEventSourceExecutor struct { Log zerolog.Logger // GitlabClient is client for gitlab api GithubClient *github.Client // Clientset is kubernetes client Clientset kubernetes.Interface // Namespace where gateway is deployed Namespace string }
GithubEventSourceExecutor implements ConfigExecutor
func (*GithubEventSourceExecutor) PostActivate ¶
func (ese *GithubEventSourceExecutor) PostActivate(rc *gwcommon.RouteConfig) error
func (*GithubEventSourceExecutor) StartEventSource ¶
func (ese *GithubEventSourceExecutor) StartEventSource(eventSource *gateways.EventSource, eventStream gateways.Eventing_StartEventSourceServer) error
StartEventSource starts an event source
func (*GithubEventSourceExecutor) ValidateEventSource ¶
func (ese *GithubEventSourceExecutor) ValidateEventSource(ctx context.Context, es *gateways.EventSource) (*gateways.ValidEventSource, error)
Validate validates github gateway configuration
type TokenAuthTransport ¶
type TokenAuthTransport struct { Token string Transport http.RoundTripper }
func (*TokenAuthTransport) Client ¶
func (t *TokenAuthTransport) Client() *http.Client
Client returns an *http.Client that makes requests that are authenticated using HTTP Basic Authentication.
Click to show internal directories.
Click to hide internal directories.