plugins

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Mount() chi.Router
}

Client is the interface which must be implemented by a plugins client. The plugins client must only be export a router with all plugin routes mounted.

func NewClient

func NewClient(pluginMounts map[string]plugin.MountFn, instances []plugin.Instance, clustersClient clusters.Client) (Client, error)

NewClient creates a new plugins client. The client contains all the user provided plugin instances and a router. The router contains all the routes for all plugins.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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