vector

package
v0.0.0-...-73c95bf Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

Config is the configuration supplied to vector. It is converted into JSON format before being written to a file.

func NewConfig

func NewConfig() *Config

NewConfig creates an empty vector configuration.

func (*Config) AddSecretBackend

func (c *Config) AddSecretBackend(backendName string, cfg map[string]any)

AddSecretBackend adds the specified configuration as a secret backend under key.

The backendName is what Vector will refer to when using the secret backend. https://vector.dev/highlights/2022-07-07-secrets-management/

func (*Config) AddSinkUntyped

func (c *Config) AddSinkUntyped(key string, cfg map[string]any)

AddSinkUntyped adds the specified configuration as a vector sink under key.

func (*Config) AddSourceUntyped

func (c *Config) AddSourceUntyped(key string, cfg map[string]any)

AddSourceUntyped adds the specified configuration as a vector source under key.

func (*Config) AddTransformUntyped

func (c *Config) AddTransformUntyped(key string, cfg map[string]any)

AddTransformUntyped adds the specified configuration as a vector transform under key.

func (*Config) JSON

func (c *Config) JSON() (string, error)

JSON returns the JSON representation of the configuration.

func (*Config) Sinks

func (c *Config) Sinks() map[string]map[string]any

Sinks returns a copy of the current sinks.

func (*Config) Sources

func (c *Config) Sources() map[string]map[string]any

Sources returns a copy of the current sources.

func (*Config) Transforms

func (c *Config) Transforms() map[string]map[string]any

Transforms returns a copy of the current transforms.

Jump to

Keyboard shortcuts

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