Documentation
¶
Index ¶
- type ExtensionActionResponse
- type ExtensionAgentSyncRequest
- type ExtensionAgentSyncResponse
- type ExtensionBindingItem
- type ExtensionCapabilitiesResponse
- type ExtensionCapabilityDetail
- type ExtensionCatalogDetailResponse
- type ExtensionCatalogItem
- type ExtensionCatalogListRequest
- type ExtensionCatalogListResponse
- type ExtensionCatalogReleasesResponse
- type ExtensionConfigResponse
- type ExtensionConfigSchemaResponse
- type ExtensionConfigUpdateRequest
- type ExtensionEventItem
- type ExtensionEventListRequest
- type ExtensionEventListResponse
- type ExtensionHealthCheckResponse
- type ExtensionInstallRequest
- type ExtensionInstallResponse
- type ExtensionInstallationDetailResponse
- type ExtensionInstallationItem
- type ExtensionInstallationListRequest
- type ExtensionInstallationListResponse
- type ExtensionPageItem
- type ExtensionPagesResponse
- type ExtensionReconcileResponse
- type ExtensionReleaseItem
- type ExtensionTestConnectionResponse
- type ExtensionUpgradeRequest
- type Handler
- func (h *Handler) AgentExtensions(c *gin.Context)
- func (h *Handler) AgentExtensionsSync(c *gin.Context)
- func (h *Handler) AgentSyncPayload(c *gin.Context)
- func (h *Handler) Capabilities(c *gin.Context)
- func (h *Handler) CatalogDetail(c *gin.Context)
- func (h *Handler) CatalogList(c *gin.Context)
- func (h *Handler) CatalogReleases(c *gin.Context)
- func (h *Handler) CompatCapabilities(c *gin.Context)
- func (h *Handler) CompatConfig(c *gin.Context)
- func (h *Handler) CompatConfigSchema(c *gin.Context)
- func (h *Handler) CompatDisable(c *gin.Context)
- func (h *Handler) CompatEnable(c *gin.Context)
- func (h *Handler) CompatEvents(c *gin.Context)
- func (h *Handler) CompatHealthCheck(c *gin.Context)
- func (h *Handler) CompatPages(c *gin.Context)
- func (h *Handler) CompatReconcile(c *gin.Context)
- func (h *Handler) CompatTestConnection(c *gin.Context)
- func (h *Handler) CompatUninstall(c *gin.Context)
- func (h *Handler) CompatUpdateConfig(c *gin.Context)
- func (h *Handler) CompatUpgrade(c *gin.Context)
- func (h *Handler) Config(c *gin.Context)
- func (h *Handler) ConfigSchema(c *gin.Context)
- func (h *Handler) Disable(c *gin.Context)
- func (h *Handler) Enable(c *gin.Context)
- func (h *Handler) Events(c *gin.Context)
- func (h *Handler) HealthCheck(c *gin.Context)
- func (h *Handler) Install(c *gin.Context)
- func (h *Handler) InstallationDetail(c *gin.Context)
- func (h *Handler) InstallationList(c *gin.Context)
- func (h *Handler) Pages(c *gin.Context)
- func (h *Handler) Reconcile(c *gin.Context)
- func (h *Handler) TestConnection(c *gin.Context)
- func (h *Handler) Uninstall(c *gin.Context)
- func (h *Handler) UpdateConfig(c *gin.Context)
- func (h *Handler) Upgrade(c *gin.Context)
- type Service
- func (s *Service) AgentSyncPayload(ctx context.Context, agentID string) (*ExtensionAgentSyncResponse, error)
- func (s *Service) Capabilities(ctx context.Context, id uint) (*ExtensionCapabilitiesResponse, error)
- func (s *Service) CatalogDetail(ctx context.Context, extensionID string) (*ExtensionCatalogDetailResponse, error)
- func (s *Service) CatalogList(ctx context.Context, req ExtensionCatalogListRequest) (*ExtensionCatalogListResponse, error)
- func (s *Service) CatalogReleases(ctx context.Context, extensionID string) (*ExtensionCatalogReleasesResponse, error)
- func (s *Service) Config(ctx context.Context, id uint) (*ExtensionConfigResponse, error)
- func (s *Service) ConfigSchema(ctx context.Context, id uint) (*ExtensionConfigSchemaResponse, error)
- func (s *Service) Disable(ctx context.Context, id uint, operator string) (*ExtensionActionResponse, error)
- func (s *Service) Enable(ctx context.Context, id uint, operator string) (*ExtensionActionResponse, error)
- func (s *Service) Events(ctx context.Context, id uint, req ExtensionEventListRequest) (*ExtensionEventListResponse, error)
- func (s *Service) HealthCheck(ctx context.Context, id uint, operator string) (*ExtensionHealthCheckResponse, error)
- func (s *Service) Install(ctx context.Context, req ExtensionInstallRequest, operator string) (*ExtensionInstallResponse, error)
- func (s *Service) InstallationDetail(ctx context.Context, id uint) (*ExtensionInstallationDetailResponse, error)
- func (s *Service) InstallationList(ctx context.Context, req ExtensionInstallationListRequest) (*ExtensionInstallationListResponse, error)
- func (s *Service) Pages(ctx context.Context, id uint) (*ExtensionPagesResponse, error)
- func (s *Service) Reconcile(ctx context.Context, id uint) (*ExtensionReconcileResponse, error)
- func (s *Service) ResolveInstallationID(ctx context.Context, identifier string) (uint, error)
- func (s *Service) TestConnection(ctx context.Context, id uint, operator string) (*ExtensionTestConnectionResponse, error)
- func (s *Service) Uninstall(ctx context.Context, id uint, operator string) (*ExtensionActionResponse, error)
- func (s *Service) UpdateConfig(ctx context.Context, id uint, req ExtensionConfigUpdateRequest, ...) (*ExtensionActionResponse, error)
- func (s *Service) Upgrade(ctx context.Context, id uint, version, operator string) (*ExtensionActionResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExtensionActionResponse ¶
type ExtensionAgentSyncRequest ¶
type ExtensionAgentSyncRequest struct {
AgentID string `path:"agentId" json:"agent_id"`
}
type ExtensionBindingItem ¶
type ExtensionCapabilitiesResponse ¶
type ExtensionCapabilitiesResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Capabilities []string `json:"capabilities"`
Details []ExtensionCapabilityDetail `json:"details"`
}
type ExtensionCapabilityDetail ¶
type ExtensionCapabilityDetail struct {
Type string `json:"type"`
Key string `json:"key"`
Capability string `json:"capability"`
Provider string `json:"provider"`
Operations []string `json:"operations"`
Permissions map[string]string `json:"permissions,omitempty"`
ConfigKeys []string `json:"config_keys,omitempty"`
Source string `json:"source"`
}
type ExtensionCatalogDetailResponse ¶
type ExtensionCatalogDetailResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Item *ExtensionCatalogItem `json:"item"`
Releases []ExtensionReleaseItem `json:"releases"`
Manifest map[string]any `json:"manifest"`
Capabilities []string `json:"capabilities"`
}
type ExtensionCatalogItem ¶
type ExtensionCatalogItem struct {
ID string `json:"id"`
Name string `json:"name"`
DisplayName string `json:"display_name"`
Vendor string `json:"vendor"`
Kind string `json:"kind"`
Summary string `json:"summary"`
IconURL string `json:"icon_url"`
Status string `json:"status"`
LatestVersion string `json:"latest_version"`
Installed bool `json:"installed"`
DefaultInstall bool `json:"default_install"`
Tags []string `json:"tags"`
}
type ExtensionCatalogListResponse ¶
type ExtensionCatalogListResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Total int64 `json:"total"`
Items []ExtensionCatalogItem `json:"items"`
}
type ExtensionCatalogReleasesResponse ¶
type ExtensionCatalogReleasesResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Total int64 `json:"total"`
Releases []ExtensionReleaseItem `json:"releases"`
}
type ExtensionConfigResponse ¶
type ExtensionEventItem ¶
type ExtensionEventListResponse ¶
type ExtensionEventListResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Total int64 `json:"total"`
Items []ExtensionEventItem `json:"items"`
}
type ExtensionInstallRequest ¶
type ExtensionInstallRequest struct {
ExtensionID string `json:"extension_id" binding:"required"`
ReleaseVersion string `json:"release_version" binding:"required"`
ScopeType string `json:"scope_type" binding:"required"`
ScopeID string `json:"scope_id" binding:"required"`
TargetType string `json:"target_type" binding:"required"`
TargetID string `json:"target_id"`
Config map[string]any `json:"config"`
SecretRefs map[string]string `json:"secret_refs"`
}
type ExtensionInstallationDetailResponse ¶
type ExtensionInstallationDetailResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Installation *ExtensionInstallationItem `json:"installation"`
ConfigSchema map[string]any `json:"config_schema"`
Config map[string]any `json:"config"`
SecretRefs map[string]string `json:"secret_refs"`
Bindings []ExtensionBindingItem `json:"bindings"`
Events []ExtensionEventItem `json:"events"`
}
type ExtensionInstallationItem ¶
type ExtensionInstallationItem struct {
ID uint `json:"id"`
InstallationKey string `json:"installation_key"`
ExtensionID string `json:"extension_id"`
DisplayName string `json:"display_name"`
ReleaseVersion string `json:"release_version"`
ScopeType string `json:"scope_type"`
ScopeID string `json:"scope_id"`
TargetType string `json:"target_type"`
TargetID string `json:"target_id"`
Status string `json:"status"`
DesiredState string `json:"desired_state"`
Enabled bool `json:"enabled"`
HealthStatus string `json:"health_status"`
LastError string `json:"last_error"`
UpdatedAt int64 `json:"updated_at"`
}
type ExtensionInstallationListRequest ¶
type ExtensionInstallationListRequest struct {
ExtensionID string `form:"extension_id" json:"extension_id"`
ScopeType string `form:"scope_type" json:"scope_type"`
ScopeID string `form:"scope_id" json:"scope_id"`
TargetType string `form:"target_type" json:"target_type"`
TargetID string `form:"target_id" json:"target_id"`
Status string `form:"status" json:"status"`
Enabled *bool `form:"enabled" json:"enabled"`
Page int `form:"page,default=1" json:"page"`
PageSize int `form:"page_size,default=20" json:"page_size"`
}
type ExtensionInstallationListResponse ¶
type ExtensionInstallationListResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Total int64 `json:"total"`
Items []ExtensionInstallationItem `json:"items"`
}
type ExtensionPageItem ¶
type ExtensionPageItem struct {
Type string `json:"type"`
Key string `json:"key"`
Title string `json:"title"`
Route string `json:"route"`
Icon string `json:"icon"`
Group string `json:"group"`
Order int `json:"order"`
RequiredPermission string `json:"required_permission,omitempty"`
Source string `json:"source"`
Schema map[string]any `json:"schema"`
}
type ExtensionPagesResponse ¶
type ExtensionPagesResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Pages []ExtensionPageItem `json:"pages"`
}
type ExtensionReleaseItem ¶
type ExtensionUpgradeRequest ¶
type ExtensionUpgradeRequest struct {
ReleaseVersion string `json:"release_version" binding:"required"`
}
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) AgentExtensions ¶
func (*Handler) AgentExtensionsSync ¶
func (*Handler) AgentSyncPayload ¶
func (*Handler) Capabilities ¶
func (*Handler) CatalogDetail ¶
func (*Handler) CatalogList ¶
func (*Handler) CatalogReleases ¶
func (*Handler) CompatCapabilities ¶
func (*Handler) CompatConfig ¶
func (*Handler) CompatConfigSchema ¶
func (*Handler) CompatDisable ¶
func (*Handler) CompatEnable ¶
func (*Handler) CompatEvents ¶
func (*Handler) CompatHealthCheck ¶
func (*Handler) CompatPages ¶
func (*Handler) CompatReconcile ¶
func (*Handler) CompatTestConnection ¶
func (*Handler) CompatUninstall ¶
func (*Handler) CompatUpdateConfig ¶
func (*Handler) CompatUpgrade ¶
func (*Handler) ConfigSchema ¶
func (*Handler) HealthCheck ¶
func (*Handler) InstallationDetail ¶
func (*Handler) InstallationList ¶
func (*Handler) TestConnection ¶
func (*Handler) UpdateConfig ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(svcCtx *svc.ServiceContext) *Service
func (*Service) AgentSyncPayload ¶
func (*Service) Capabilities ¶
func (*Service) CatalogDetail ¶
func (*Service) CatalogList ¶
func (s *Service) CatalogList(ctx context.Context, req ExtensionCatalogListRequest) (*ExtensionCatalogListResponse, error)
func (*Service) CatalogReleases ¶
func (*Service) ConfigSchema ¶
func (*Service) Events ¶
func (s *Service) Events(ctx context.Context, id uint, req ExtensionEventListRequest) (*ExtensionEventListResponse, error)
func (*Service) HealthCheck ¶
func (*Service) Install ¶
func (s *Service) Install(ctx context.Context, req ExtensionInstallRequest, operator string) (*ExtensionInstallResponse, error)
func (*Service) InstallationDetail ¶
func (*Service) InstallationList ¶
func (s *Service) InstallationList(ctx context.Context, req ExtensionInstallationListRequest) (*ExtensionInstallationListResponse, error)
func (*Service) ResolveInstallationID ¶
func (*Service) TestConnection ¶
func (*Service) UpdateConfig ¶
func (s *Service) UpdateConfig(ctx context.Context, id uint, req ExtensionConfigUpdateRequest, operator string) (*ExtensionActionResponse, error)
Click to show internal directories.
Click to hide internal directories.