destinations

package module
v0.0.0-...-5f3b442 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load() error

Types

type Destination

type Destination struct {
	ApiVersion string   `yaml:"apiVersion"`
	Kind       string   `yaml:"kind"`
	Metadata   Metadata `yaml:"metadata"`
	Spec       Spec     `yaml:"spec"`
}

func Get

func Get() []Destination

func GetDestinationByType

func GetDestinationByType(destType string) Destination

type Field

type Field struct {
	Name           string                 `yaml:"name"`
	DisplayName    string                 `yaml:"displayName"`
	VideoURL       string                 `yaml:"videoUrl"`
	ThumbnailURL   string                 `yaml:"thumbnailUrl"`
	ComponentType  string                 `yaml:"componentType"`
	ComponentProps map[string]interface{} `yaml:"componentProps"`
	Secret         bool                   `yaml:"secret"`
	InitialValue   string                 `yaml:"initialValue"`
}

type Metadata

type Metadata struct {
	Type        common.DestinationType `yaml:"type"`
	DisplayName string                 `yaml:"displayName"`
	Category    string                 `yaml:"category"`
}

type Spec

type Spec struct {
	Image   string `yaml:"image"`
	Signals struct {
		Traces struct {
			Supported bool `yaml:"supported"`
		}
		Metrics struct {
			Supported bool `yaml:"supported"`
		}
		Logs struct {
			Supported bool `yaml:"supported"`
		}
	}
	Fields                  []Field `yaml:"fields"`
	TestConnectionSupported bool    `yaml:"testConnectionSupported"`
}

Jump to

Keyboard shortcuts

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