webhook

package
v0.0.0-...-d88a328 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigTelegrafError            = "Failed to validate metricsink config"
	ConfigIncludesKubernetesError  = "Kubernetes input plugin added by default in ClusterMetricSink"
	ConfigLogNoTypeError           = "LogSink should have type"
	ConfigLogChangeTypeError       = "Changing sink type invalid"
	ConfigSyslogBadPortError       = "Port for syslog invalid, should be between 1 and 65535"
	ConfigSyslogBadHostError       = "Host for syslog invalid"
	ConfigSyslogInsecureError      = "Insecure syslog sink not allowed"
	ConfigWebhookBadURLError       = "URL for webhook invalid"
	ConfigWebhookInsecureError     = "Insecure webhook not allowed, scheme must be https"
	ConfigMetricNoTypeError        = "Must specify type for each inputs/outputs"
	ConfigMetricNonStringTypeError = "Input/output type must be a string"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func NewServer

func NewServer(addr string, options ...ServerOpt) *Server

func (*Server) Addr

func (s *Server) Addr() string

func (*Server) Close

func (s *Server) Close() error

func (*Server) Run

func (s *Server) Run(blocking bool)

type ServerOpt

type ServerOpt func(*Server)

func WithTLSConfig

func WithTLSConfig(tlsConfig *tls.Config) ServerOpt

Jump to

Keyboard shortcuts

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