benthos

package
v1.46.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Factory

func Factory(t BenthosPlugin) plugins.Factory

Types

type BenthosPlugin

type BenthosPlugin string
const (
	Pulsar BenthosPlugin = "pulsar"
)

benthos-based data plugins

type Config

type Config struct {
	Input any // "benthos input"

	// TODO(sr): TLS
	Path              string `json:"path"`
	RegoTransformRule string `json:"rego_transform"`
	// contains filtered or unexported fields
}

func (Config) Equal

func (c Config) Equal(other Config) bool

type Data

type Data struct {
	Config Config

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

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)

type PulsarAuth

type PulsarAuth struct {
	OAuth2 PulsarOAuth2 `json:"oauth2,omitempty"`
	Token  PulsarToken  `json:"token,omitempty"`
}

func (*PulsarAuth) Equal

func (c *PulsarAuth) Equal(other *PulsarAuth) bool

type PulsarConfig

type PulsarConfig struct {
	URL                         string   `json:"url"`
	Topics                      []string `json:"topics"`
	SubscriptionName            string   `json:"subscription_name"`
	SubscriptionType            string   `json:"subscription_type"`
	SubscriptionInitialPosition string   `json:"subscription_initial_position"`

	Auth *PulsarAuth `json:"auth,omitempty"`
}

func (PulsarConfig) Equal

func (c PulsarConfig) Equal(other PulsarConfig) bool

type PulsarOAuth2

type PulsarOAuth2 struct {
	Enabled        bool   `json:"enabled"`
	Audience       string `json:"audience"`
	IssuerURL      string `json:"issuer_url"`
	Scope          string `json:"scope"`
	PrivateKeyFile string `json:"private_key_file"`
}

type PulsarToken

type PulsarToken struct {
	Enabled bool   `json:"enabled"`
	Token   string `json:"token"`
}

Jump to

Keyboard shortcuts

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