plugins

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(clusters *clusters.Clusters, config Config) chi.Router

Register is used to register all api routes for plugins.

Types

type Config

type Config struct {
	Applications  applications.Config  `yaml:"applications"`
	Resources     resources.Config     `yaml:"resources"`
	Teams         teams.Config         `yaml:"teams"`
	Dashboards    dashboards.Config    `yaml:"dashboards"`
	Prometheus    prometheus.Config    `yaml:"prometheus"`
	Elasticsearch elasticsearch.Config `yaml:"elasticsearch"`
	Jaeger        jaeger.Config        `yaml:"jaeger"`
}

Config holds the configuration for all plugins. We have to add the configuration for all the imported plugins.

type Router

type Router struct {
	*chi.Mux
	// contains filtered or unexported fields
}

Router implements the router for the plugins package. This only registeres one route which is used to return all the configured plugins.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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