plugin_cluster

package
v1.4.3-beta Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Plugin   string
	Status   plugin_model.Status
	Config   plugin_model.ConfigType
	Update   *time.Time
	Create   *time.Time
	Operator string
}

func ConfigFromStore

func ConfigFromStore(partition *plugin.Partition) *Config

type ConfigPartition

type ConfigPartition struct {
	*Config
	Extend string
	Cname  string
	Desc   string
}

type IPluginService

type IPluginService interface {
	Defines(ctx context.Context, kind ...plugin_model.Kind) ([]*PluginDefine, error)
	Options(ctx context.Context) []*PluginOption
	SetCluster(ctx context.Context, clusterId string, name string, status plugin_model.Status, config plugin_model.ConfigType) error
	ListCluster(ctx context.Context, clusterId string, kind ...plugin_model.Kind) ([]*ConfigPartition, error)
	GetConfig(ctx context.Context, clusterId string, name string) (*Config, *PluginDefine, error)
	GetDefine(ctx context.Context, name string) (*PluginDefine, error)
	SaveDefine(ctx context.Context, defines []*plugin_model.Define) error
}

type PluginDefine

type PluginDefine struct {
	Extend string
	Name   string
	Cname  string
	Desc   string
	Kind   plugin_model.Kind
	Status plugin_model.Status
	Config plugin_model.ConfigType
	Render plugin_model.Render
	Update time.Time
}

func FromEntity

func FromEntity(s *plugin.Define) *PluginDefine

type PluginOption

type PluginOption struct {
	Name  string
	Cname string
	Desc  string
}

Jump to

Keyboard shortcuts

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