flink

package
v0.2.3-rc Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = module.Descriptor{
	Kind: "flink",
	Actions: []module.ActionDesc{
		{
			Name: module.CreateAction,
		},
		{
			Name: module.UpdateAction,
		},
	},
	DriverFactory: func(conf json.RawMessage) (module.Driver, error) {
		fd := &flinkDriver{}
		err := json.Unmarshal(conf, &fd)
		if err != nil {
			return nil, errors.ErrInvalid.WithMsgf("failed to unmarshal module config: %v", err)
		}
		return fd, nil
	},
}

Functions

This section is empty.

Types

type Config

type Config struct {
	KubeNamespace   string   `json:"kube_namespace,omitempty"`
	Influx          Influx   `json:"influx,omitempty"`
	SinkKafkaStream string   `json:"sink_kafka_stream,omitempty"`
	PrometheusURL   string   `json:"prometheus_url,omitempty"`
	FlinkName       string   `json:"flink_name,omitempty"`
	ExtraStreams    []string `json:"extra_streams,omitempty"`
}

type Influx

type Influx struct {
	URL      string `json:"url,omitempty"`
	Username string `json:"username,omitempty"`
	Password string `json:"password,omitempty"`
}

type Output

type Output struct {
	KubeCluster     kubernetes.Output `json:"kube_cluster,omitempty"`
	KubeNamespace   string            `json:"kube_namespace,omitempty"`
	Influx          Influx            `json:"influx,omitempty"`
	SinkKafkaStream string            `json:"sink_kafka_stream,omitempty"`
	PrometheusURL   string            `json:"prometheus_url,omitempty"`
	FlinkName       string            `json:"flink_name,omitempty"`
	ExtraStreams    []string          `json:"extra_streams,omitempty"`
}

Jump to

Keyboard shortcuts

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