http

package
v1.43.2 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "http"
)

Variables

This section is empty.

Functions

func Factory

func Factory() plugins.Factory

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

func (Config) Equal

func (c Config) Equal(other Config) bool

type Data

type Data struct {
	Config Config

	*transform.Rego
	// contains filtered or unexported fields
}

Data plugin

func (*Data) Name

func (c *Data) Name() string

dataPlugin accessors

func (*Data) Path

func (c *Data) Path() storage.Path

func (*Data) Reconfigure

func (c *Data) Reconfigure(ctx context.Context, next any)

func (*Data) Start

func (c *Data) Start(ctx context.Context) error

func (*Data) Stop

func (c *Data) Stop(ctx context.Context)

Jump to

Keyboard shortcuts

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