Documentation ¶
Index ¶
- func SetWebhookExecTaskConfigMap(config *WebhooksConfig, configMap map[string]genericexec.GenericExecConfig)
- type AppConfig
- type ExecListener
- type GithubWebhookHttpHandler
- type HttpAuthConfig
- type HttpProtectionMiddlewareFactory
- type HttpServer
- type Notifications
- type NotificationsConfig
- type ProvisionHttpHandler
- type TaskResult
- type WebhooksConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetWebhookExecTaskConfigMap ¶
func SetWebhookExecTaskConfigMap(config *WebhooksConfig, configMap map[string]genericexec.GenericExecConfig)
Types ¶
type AppConfig ¶
type AppConfig struct { BindAddress string LogFile string HttpAuth *HttpAuthConfig PuppetExecutable string PuppetConfDir string PuppetConfig *puppetconfig.PuppetConfig GenericExecTasks []*genericexec.GenericExecConfig GithubWebhooks *WebhooksConfig Notifications []*NotificationsConfig Log *log.Logger // contains filtered or unexported fields }
func LoadTheConfig ¶
func (*AppConfig) MoveLoggingToFile ¶
func (ctx *AppConfig) MoveLoggingToFile()
type ExecListener ¶
type ExecListener struct { Event string Secret string ExecConfig genericexec.GenericExecConfig }
func StandardR10kListenerConfig ¶
func StandardR10kListenerConfig(config *WebhooksConfig) ExecListener
type GithubWebhookHttpHandler ¶
type GithubWebhookHttpHandler struct {
// contains filtered or unexported fields
}
func NewGithubWebhookHttpHandler ¶
func NewGithubWebhookHttpHandler(config *WebhooksConfig, execManager genericexec.GenericExecManagerInterface, log *log.Logger) *GithubWebhookHttpHandler
func (*GithubWebhookHttpHandler) ServeHTTP ¶
func (ctx *GithubWebhookHttpHandler) ServeHTTP(response http.ResponseWriter, request *http.Request)
type HttpAuthConfig ¶
type HttpProtectionMiddlewareFactory ¶
type HttpProtectionMiddlewareFactory struct {
// contains filtered or unexported fields
}
func NewHttpProtectionMiddlewareFactory ¶
func NewHttpProtectionMiddlewareFactory(config AppConfig) HttpProtectionMiddlewareFactory
func (*HttpProtectionMiddlewareFactory) ServeHTTP ¶
func (ctx *HttpProtectionMiddlewareFactory) ServeHTTP(response http.ResponseWriter, request *http.Request)
func (*HttpProtectionMiddlewareFactory) WrapInProtectionMiddleware ¶
func (ctx *HttpProtectionMiddlewareFactory) WrapInProtectionMiddleware(nestedHandler http.Handler) http.Handler
type HttpServer ¶
type HttpServer struct {
// contains filtered or unexported fields
}
func NewHttpServer ¶
func NewHttpServer(config AppConfig, notifier *Notifications, certSigner *certsign.CertSigner, execManager *genericexec.GenericExecManager) *HttpServer
func (*HttpServer) Start ¶
func (c *HttpServer) Start()
type Notifications ¶
type Notifications struct {
// contains filtered or unexported fields
}
func NewNotifications ¶
func NewNotifications(config *AppConfig) *Notifications
func (*Notifications) Notify ¶
func (ctx *Notifications) Notify(message string)
type NotificationsConfig ¶
type ProvisionHttpHandler ¶
type ProvisionHttpHandler struct {
// contains filtered or unexported fields
}
func NewProvisionHttpHandler ¶
func NewProvisionHttpHandler(appConfig *AppConfig, notifier *Notifications, certSigner *certsign.CertSigner, execManager *genericexec.GenericExecManager) *ProvisionHttpHandler
func (ProvisionHttpHandler) ServeHTTP ¶
func (ctx ProvisionHttpHandler) ServeHTTP(response http.ResponseWriter, request *http.Request)
type TaskResult ¶
type WebhooksConfig ¶
type WebhooksConfig struct { Secret string EnableStandardR10kListener bool R10kExecutable string Listeners []ExecListener }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.