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.
Click to show internal directories.
Click to hide internal directories.