applications

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const Route = "/applications"

Route is the route under which the plugin should be registered in our router for the rest api.

Variables

This section is empty.

Functions

func Register

func Register(clustersClient clusters.Client, plugins *plugin.Plugins, config Config) chi.Router

Register returns a new router which can be used in the router for the kobs rest api.

Types

type CacheConfig added in v0.8.0

type CacheConfig struct {
	TopologyDuration string `json:"topologyDuration"`
	TeamsDuration    string `json:"teamsDuration"`
	TagsDuration     string `json:"tagsDuration"`
}

CacheConfig is the structure of the cache configuration for the topology graph, teams and tags.

type Config

type Config struct {
	Cache    CacheConfig       `json:"cache"`
	Topology []topology.Config `json:"topology"`
	Home     bool              `json:"home"`
}

Config is the structure of the configuration for the applications plugin.

type Router

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

Router implements the router for the resources plugin, which can be registered in the router for our rest api.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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