gemsplugin

package
v1.22.4 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnablePlugin

func EnablePlugin(ctx context.Context, cli client.Client, name string, enable bool) error

Types

type ListPluginOption

type ListPluginOption func(*ListPluginOptions)

func WithHealthy

func WithHealthy(b bool) ListPluginOption

type ListPluginOptions

type ListPluginOptions struct {
	WithHealthy bool
}

type PluginState

type PluginState struct {
	Annotations map[string]string      `json:"annotations"`
	Enabled     bool                   `json:"enabled"`
	Description string                 `json:"description"`
	Healthy     bool                   `json:"healthy"`
	Name        string                 `json:"name"`
	Namespace   string                 `json:"namespace"`
	Version     string                 `json:"version"`
	AppVersion  string                 `json:"appVersion"`
	Message     string                 `json:"message"`
	Values      map[string]interface{} `json:"values"`
}

func ListPlugins

func ListPlugins(ctx context.Context, cli client.Client, options ...ListPluginOption) (map[string]string, []PluginState, error)

Jump to

Keyboard shortcuts

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