plugins

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(cfg *config.Config, grpcServer *grpc.Server) error

Register is used to register all our plugin services at the gRPC server. We can use the same handling for each plugin, except the clusters plugin. The clusters plugin uses a special handling because it is the only core plugin for kobs. The clusters plugin can also be used from other plugins to receive the Kubernetes resources of a cluster.

Types

type Plugins

type Plugins struct {
	pluginsProto.UnimplementedPluginsServer
	// contains filtered or unexported fields
}

Plugins contains all fields and methods to interact with the configured Kubernetes Plugins. It must implement the Plugins service from the protocol buffers definition.

func (*Plugins) GetPlugins

func (p *Plugins) GetPlugins(ctx context.Context, getPluginsRequest *pluginsProto.GetPluginsRequest) (*pluginsProto.GetPluginsResponse, error)

GetPlugins returns all loaded plugins with their name and type.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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