Documentation
¶
Index ¶
Constants ¶
View Source
const (
Name = "http"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
URL string `json:"url"`
Method string `json:"method,omitempty"`
Body string `json:"body,omitempty"`
File string `json:"file,omitempty"`
Headers map[string]any `json:"headers,omitempty"` // to support string or []string
Timeout string `json:"timeout,omitempty"` // no timeouts by default
FollowRedirects *bool `json:"follow_redirects,omitempty"` // true if nt set
Interval string `json:"polling_interval,omitempty"` // default 30s
Path string `json:"path"`
RegoTransformRule string `json:"rego_transform"`
SkipVerification bool `json:"tls_skip_verification,omitempty"`
Cert string `json:"tls_client_cert,omitempty"`
CACert string `json:"tls_ca_cert,omitempty"`
PrivateKey string `json:"tls_client_private_key,omitempty"`
// contains filtered or unexported fields
}
Config represents the configuration of the http data plugin
Click to show internal directories.
Click to hide internal directories.