Documentation
¶
Index ¶
- func MarkLoadResults(report *SyncReport, inspector PluginLoadInspector) error
- func Sync(ctx context.Context, cfg *config.Config, pluginRuntime PluginRuntime) error
- func SyncPlatform(ctx context.Context, cfg *config.Config, pluginRuntime PluginRuntime, ...) error
- type Platform
- type PluginInstallStatus
- type PluginLoadInspector
- type PluginRuntime
- type SyncReport
- func DeleteWithReport(ctx context.Context, cfg *config.Config, pluginRuntime PluginRuntime, ...) SyncReport
- func SyncPlatformWithReport(ctx context.Context, cfg *config.Config, pluginRuntime PluginRuntime, ...) (SyncReport, error)
- func SyncWithReport(ctx context.Context, cfg *config.Config, pluginRuntime PluginRuntime) (SyncReport, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarkLoadResults ¶ added in v7.2.32
func MarkLoadResults(report *SyncReport, inspector PluginLoadInspector) error
func SyncPlatform ¶
Types ¶
type Platform ¶
func CurrentPlatform ¶
func CurrentPlatform() Platform
CurrentPlatform reports the platform used by pluginhost discovery.
func NormalizePlatform ¶
type PluginInstallStatus ¶ added in v7.2.32
type PluginInstallStatus struct {
ID string `json:"id"`
Version string `json:"version,omitempty"`
ReleaseTag string `json:"release_tag,omitempty"`
Repository string `json:"repository,omitempty"`
InstallType string `json:"install_type,omitempty"`
InstallStatus string `json:"install_status"`
LoadStatus string `json:"load_status,omitempty"`
Path string `json:"path,omitempty"`
Skipped bool `json:"skipped,omitempty"`
Overwritten bool `json:"overwritten,omitempty"`
Error string `json:"error,omitempty"`
}
type PluginLoadInspector ¶ added in v7.2.32
type PluginRuntime ¶
type SyncReport ¶ added in v7.2.32
type SyncReport struct {
SchemaVersion int `json:"schema_version"`
TaskID uint `json:"task_id,omitempty"`
Task string `json:"task"`
NodeID string `json:"node_id,omitempty"`
Status string `json:"status"`
Phase string `json:"phase"`
OK bool `json:"ok"`
StartedAt time.Time `json:"started_at"`
FinishedAt time.Time `json:"finished_at,omitempty"`
UpdatedAt time.Time `json:"updated_at"`
Platform Platform `json:"platform"`
Plugins []PluginInstallStatus `json:"plugins"`
Error string `json:"error,omitempty"`
}
func DeleteWithReport ¶ added in v7.2.32
func DeleteWithReport(ctx context.Context, cfg *config.Config, pluginRuntime PluginRuntime, taskID uint, pluginID string) SyncReport
func SyncPlatformWithReport ¶ added in v7.2.32
func SyncPlatformWithReport(ctx context.Context, cfg *config.Config, pluginRuntime PluginRuntime, platform Platform) (SyncReport, error)
func SyncWithReport ¶ added in v7.2.32
func SyncWithReport(ctx context.Context, cfg *config.Config, pluginRuntime PluginRuntime) (SyncReport, error)
Click to show internal directories.
Click to hide internal directories.