sink

package
v0.14.8 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: MIT Imports: 29 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File added in v0.8.1

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

func NewFile added in v0.8.1

func NewFile(options FileOptions, observability *common.Observability) *File

func (*File) Name added in v0.8.1

func (f *File) Name() string

func (*File) Process added in v0.8.1

func (f *File) Process(d common.Discovery, so common.SinkObject)

func (*File) Providers added in v0.8.1

func (f *File) Providers() []string

type FileOptions added in v0.8.1

type FileOptions struct {
	Checksum     bool
	Providers    []string
	Names        []string
	Replacements string
}

type Json

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

func NewJson

func NewJson(options JsonOptions, observability *common.Observability) *Json

func (*Json) Name

func (j *Json) Name() string

func (*Json) Process

func (j *Json) Process(d common.Discovery, so common.SinkObject)

func (*Json) Providers added in v0.6.1

func (j *Json) Providers() []string

type JsonOptions

type JsonOptions struct {
	Dir       string
	Providers []string
}

type Observability

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

func NewObservability

func NewObservability(options ObservabilityOptions, observability *common.Observability) *Observability

func (*Observability) Name

func (o *Observability) Name() string

func (*Observability) Process

func (o *Observability) Process(d common.Discovery, so common.SinkObject)

func (*Observability) Providers added in v0.6.1

func (o *Observability) Providers() []string

type ObservabilityOptions

type ObservabilityOptions struct {
	DiscoveryName string
	TotalName     string
	Providers     []string
	Labels        []string
}

type PubSub

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

func NewPubSub added in v0.6.11

func NewPubSub(options PubSubOptions, observability *common.Observability) *PubSub

func (*PubSub) Close added in v0.6.11

func (ps *PubSub) Close()

func (*PubSub) Name added in v0.6.11

func (ps *PubSub) Name() string

func (*PubSub) Process added in v0.6.11

func (ps *PubSub) Process(d common.Discovery, so common.SinkObject)

func (*PubSub) Providers added in v0.6.11

func (ps *PubSub) Providers() []string

type PubSubK8sWorkload added in v0.9.13

type PubSubK8sWorkload struct {
	Source  string `json:"source"`
	Type    string `json:"type"`
	Cluster string `json:"cluster"`
	Data    any    `json:"data"`
}

type PubSubLabel added in v0.9.13

type PubSubLabel struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type PubSubLabels added in v0.9.13

type PubSubLabels = []*PubSubLabel

type PubSubOptions added in v0.6.11

type PubSubOptions struct {
	Enabled     bool
	Credentials string
	ProjectID   string
	Topic       string
	Topics      string
	Providers   []string
	Files       string
}

type Telegraf

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

func NewTelegraf

func NewTelegraf(options TelegrafOptions, observability *common.Observability) *Telegraf

func (*Telegraf) Name

func (t *Telegraf) Name() string

func (*Telegraf) Process

func (t *Telegraf) Process(d common.Discovery, so common.SinkObject)

func (*Telegraf) Providers added in v0.6.1

func (t *Telegraf) Providers() []string

type TelegrafCertOptions

type TelegrafCertOptions struct {
	telegraf.InputX509CertOptions
	Template string
	Conf     string
}

type TelegrafDNSOptions

type TelegrafDNSOptions struct {
	telegraf.InputDNSQueryOptions
	Template string
	Conf     string
}

type TelegrafHTTPOptions

type TelegrafHTTPOptions struct {
	telegraf.InputHTTPResponseOptions
	Template string
	Conf     string
}

type TelegrafOptions

type TelegrafOptions struct {
	Providers []string
	Signal    TelegrafSignalOptions
	Cert      TelegrafCertOptions
	DNS       TelegrafDNSOptions
	HTTP      TelegrafHTTPOptions
	TCP       TelegrafTCPOptions
	Checksum  bool
}

type TelegrafSignalOptions

type TelegrafSignalOptions struct {
	telegraf.InputPrometheusHttpOptions
	Dir            string
	File           string
	Tags           string
	Exclusion      string
	PersistMetrics bool
}

type TelegrafTCPOptions

type TelegrafTCPOptions struct {
	telegraf.InputNetResponseOptions
	Template string
	Conf     string
}

type WebServer added in v0.9.4

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

func NewWebServer added in v0.9.4

func NewWebServer(options WebServerOptions, observability *common.Observability) *WebServer

func (*WebServer) Name added in v0.9.4

func (ws *WebServer) Name() string

func (*WebServer) Process added in v0.9.4

func (ws *WebServer) Process(d common.Discovery, so common.SinkObject)

func (*WebServer) Providers added in v0.9.4

func (ws *WebServer) Providers() []string

func (*WebServer) Start added in v0.9.4

func (ws *WebServer) Start(wg *sync.WaitGroup)

type WebServerOptions added in v0.9.4

type WebServerOptions struct {
	ServerName string
	Listen     string
	Tls        bool
	Insecure   bool
	Cert       string
	Key        string
	Chain      string
	Providers  []string
	RenderTTL  time.Duration // render cache ttl in minutes
}

type WebServerProcessor added in v0.9.4

type WebServerProcessor = func(w http.ResponseWriter, r *http.Request) error

type Yaml

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

func NewYaml

func NewYaml(options YamlOptions, observability *common.Observability) *Yaml

func (*Yaml) Name

func (y *Yaml) Name() string

func (*Yaml) Process

func (y *Yaml) Process(d common.Discovery, so common.SinkObject)

func (*Yaml) Providers added in v0.6.1

func (y *Yaml) Providers() []string

type YamlOptions

type YamlOptions struct {
	Dir       string
	Providers []string
}

Jump to

Keyboard shortcuts

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