Documentation
¶
Index ¶
- type APIEndpoint
- type Capability
- type DashboardExtension
- type DeploymentPlugin
- type DeploymentResult
- type DeploymentStatus
- type ExternalPlugin
- func (p *ExternalPlugin) ConfigureDeployment(name string, config map[string]interface{}) error
- func (p *ExternalPlugin) CreateDeployment(name string, config map[string]interface{}) (*DeploymentResult, error)
- func (p *ExternalPlugin) GetCapabilities() []Capability
- func (p *ExternalPlugin) GetDeploymentStatus(name string) (*DeploymentStatus, error)
- func (p *ExternalPlugin) GetDockerCompose(config map[string]interface{}) (string, error)
- func (p *ExternalPlugin) GetNginxConfig(config map[string]interface{}) (string, error)
- func (p *ExternalPlugin) GetWidgetData(deploymentName string) (interface{}, error)
- func (p *ExternalPlugin) Info() PluginInfo
- func (p *ExternalPlugin) Initialize(config map[string]interface{}) error
- func (p *ExternalPlugin) RegisterRoutes(router *gin.RouterGroup) error
- func (p *ExternalPlugin) RunHook(hookName string, env map[string]string) error
- func (p *ExternalPlugin) Start() error
- func (p *ExternalPlugin) Stop() error
- type Plugin
- type PluginInfo
- type PluginType
- type Registry
- type ResourceRequirements
- type WidgetAction
- type WidgetConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIEndpoint ¶
type Capability ¶
type Capability string
const ( CapAutoSSL Capability = "auto_ssl" CapAutoBackup Capability = "auto_backup" CapAutoUpdate Capability = "auto_update" CapMonitoring Capability = "monitoring" CapScaling Capability = "scaling" )
type DashboardExtension ¶
type DeploymentPlugin ¶
type DeploymentPlugin interface {
Plugin
CreateDeployment(name string, config map[string]interface{}) (*DeploymentResult, error)
ConfigureDeployment(name string, config map[string]interface{}) error
GetDeploymentStatus(name string) (*DeploymentStatus, error)
GetDockerCompose(config map[string]interface{}) (string, error)
GetNginxConfig(config map[string]interface{}) (string, error)
}
type DeploymentResult ¶
type DeploymentStatus ¶
type ExternalPlugin ¶
type ExternalPlugin struct {
// contains filtered or unexported fields
}
func (*ExternalPlugin) ConfigureDeployment ¶
func (p *ExternalPlugin) ConfigureDeployment(name string, config map[string]interface{}) error
func (*ExternalPlugin) CreateDeployment ¶
func (p *ExternalPlugin) CreateDeployment(name string, config map[string]interface{}) (*DeploymentResult, error)
func (*ExternalPlugin) GetCapabilities ¶
func (p *ExternalPlugin) GetCapabilities() []Capability
func (*ExternalPlugin) GetDeploymentStatus ¶
func (p *ExternalPlugin) GetDeploymentStatus(name string) (*DeploymentStatus, error)
func (*ExternalPlugin) GetDockerCompose ¶
func (p *ExternalPlugin) GetDockerCompose(config map[string]interface{}) (string, error)
func (*ExternalPlugin) GetNginxConfig ¶
func (p *ExternalPlugin) GetNginxConfig(config map[string]interface{}) (string, error)
func (*ExternalPlugin) GetWidgetData ¶
func (p *ExternalPlugin) GetWidgetData(deploymentName string) (interface{}, error)
func (*ExternalPlugin) Info ¶
func (p *ExternalPlugin) Info() PluginInfo
func (*ExternalPlugin) Initialize ¶
func (p *ExternalPlugin) Initialize(config map[string]interface{}) error
func (*ExternalPlugin) RegisterRoutes ¶
func (p *ExternalPlugin) RegisterRoutes(router *gin.RouterGroup) error
func (*ExternalPlugin) RunHook ¶
func (p *ExternalPlugin) RunHook(hookName string, env map[string]string) error
func (*ExternalPlugin) Start ¶
func (p *ExternalPlugin) Start() error
func (*ExternalPlugin) Stop ¶
func (p *ExternalPlugin) Stop() error
type Plugin ¶
type Plugin interface {
Info() PluginInfo
Initialize(config map[string]interface{}) error
Start() error
Stop() error
GetCapabilities() []Capability
RegisterRoutes(router *gin.RouterGroup) error
GetWidgetData(deploymentName string) (interface{}, error)
}
type PluginInfo ¶
type PluginInfo struct {
Name string `json:"name" yaml:"name"`
Version string `json:"version" yaml:"version"`
DisplayName string `json:"display_name" yaml:"display_name"`
Description string `json:"description" yaml:"description"`
Author string `json:"author" yaml:"author"`
Type PluginType `json:"type" yaml:"type"`
Category string `json:"category" yaml:"category"`
Enabled bool `json:"enabled" yaml:"enabled"`
Capabilities []string `json:"capabilities,omitempty" yaml:"capabilities,omitempty"`
Widget *WidgetConfig `json:"widget,omitempty" yaml:"widget,omitempty"`
ConfigSchema map[string]interface{} `json:"config_schema,omitempty" yaml:"config_schema,omitempty"`
Requires []string `json:"requires,omitempty" yaml:"requires,omitempty"`
Resources *ResourceRequirements `json:"resources,omitempty" yaml:"resources,omitempty"`
DashboardExtensions []DashboardExtension `json:"dashboard_extensions,omitempty" yaml:"dashboard_extensions,omitempty"`
APIEndpoints []APIEndpoint `json:"api,omitempty" yaml:"api,omitempty"`
Hooks map[string]string `json:"hooks,omitempty" yaml:"hooks,omitempty"`
}
type PluginType ¶
type PluginType string
const ( TypeDeployment PluginType = "deployment" TypeWidget PluginType = "widget" TypeService PluginType = "service" TypeIntegration PluginType = "integration" )
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func (*Registry) List ¶
func (r *Registry) List() []PluginInfo
func (*Registry) LoadFromDisk ¶
func (*Registry) Unregister ¶
type ResourceRequirements ¶
type WidgetAction ¶
type WidgetConfig ¶
type WidgetConfig struct {
Enabled bool `json:"enabled" yaml:"enabled"`
Position string `json:"position" yaml:"position"`
Size string `json:"size" yaml:"size"`
RefreshInterval int `json:"refresh_interval" yaml:"refresh_interval"`
Actions []WidgetAction `json:"actions,omitempty" yaml:"actions,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.