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