github

package
v0.0.0-...-1af24f0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2019 License: Apache-2.0 Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const ArgoEventsEventSourceVersion = "v0.11"

Variables

This section is empty.

Functions

This section is empty.

Types

type GithubEventSourceExecutor

type GithubEventSourceExecutor struct {
	Log *logrus.Logger
	// Clientset is kubernetes client
	Clientset kubernetes.Interface
	// Namespace where gateway is deployed
	Namespace string
}

GithubEventSourceExecutor implements ConfigExecutor

func (*GithubEventSourceExecutor) StartEventSource

func (ese *GithubEventSourceExecutor) StartEventSource(eventSource *gateways.EventSource, eventStream gateways.Eventing_StartEventSourceServer) error

StartEventSource starts an event source

func (*GithubEventSourceExecutor) ValidateEventSource

Validate validates github gateway configuration

type RouteConfig

type RouteConfig struct {
	// contains filtered or unexported fields
}

RouteConfig contains information about the route

func (*RouteConfig) GetRoute

func (rc *RouteConfig) GetRoute() *gwcommon.Route

func (*RouteConfig) PostStart

func (rc *RouteConfig) PostStart() error

func (*RouteConfig) PostStop

func (rc *RouteConfig) PostStop() error

PostStop runs after event source is stopped

func (*RouteConfig) RouteHandler

func (rc *RouteConfig) RouteHandler(writer http.ResponseWriter, request *http.Request)

routeActiveHandler handles new route

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.

func (*TokenAuthTransport) RoundTrip

func (t *TokenAuthTransport) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip implements the RoundTripper interface.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL