Versions in this module Expand all Collapse all v1 v1.0.1 Aug 15, 2024 Changes in this version + const ScopePublic + type DBClient struct + func Open(db *dbengine.DBEngine) *DBClient + func (c *DBClient) CreateEdgeApp(edgeApp *EdgeApp) error + func (c *DBClient) CreateEdgeConfigSet(edgeConfigSet *EdgeConfigSet) error + func (c *DBClient) CreateEdgeConfigSetItem(cfgSetItem *EdgeConfigSetItem) error + func (c *DBClient) CreateEdgeSite(edgeSite *EdgeSite) error + func (c *DBClient) DeleteEdgeApp(edgeAppID int64) error + func (c *DBClient) DeleteEdgeCfgSetItemByCfgID(configSetID int64) error + func (c *DBClient) DeleteEdgeConfigSet(edgeConfigSetID int64) error + func (c *DBClient) DeleteEdgeConfigSetItem(cfgSetItemID int64) error + func (c *DBClient) DeleteEdgeConfigSetItemBySiteID(siteID int64) error + func (c *DBClient) DeleteEdgeSite(edgeSiteID int64) error + func (c *DBClient) GetEdgeApp(edgeAppID int64) (*EdgeApp, error) + func (c *DBClient) GetEdgeAppByConfigSet(configSetName string, clusterID int64) (*[]EdgeApp, error) + func (c *DBClient) GetEdgeAppByName(appName string, orgID int64) (*EdgeApp, error) + func (c *DBClient) GetEdgeAppsBySiteName(siteName string, clusterID int64) (*[]EdgeApp, error) + func (c *DBClient) GetEdgeConfigSet(configSetID int64) (*EdgeConfigSet, error) + func (c *DBClient) GetEdgeConfigSetItem(itemID int64) (*EdgeConfigSetItem, error) + func (c *DBClient) GetEdgeConfigSetItemsBySiteID(siteID int64) (*[]EdgeConfigSetItem, error) + func (c *DBClient) GetEdgeSite(edgeSiteID int64) (*EdgeSite, error) + func (c *DBClient) ListAllEdgeApp(orgID int64) (*[]EdgeApp, error) + func (c *DBClient) ListAllEdgeAppByClusterID(orgID, clusterID int64) (*[]EdgeApp, error) + func (c *DBClient) ListDependsEdgeApps(orgID, clusterID int64, appName string) (*[]EdgeApp, error) + func (c *DBClient) ListEdgeApp(param *apistructs.EdgeAppListPageRequest) (int, *[]EdgeApp, error) + func (c *DBClient) ListEdgeAppBySiteName(orgID, clusterID int64, siteName string) (*[]EdgeApp, error) + func (c *DBClient) ListEdgeConfigSet(param *apistructs.EdgeConfigSetListPageRequest) (int, *[]EdgeConfigSet, error) + func (c *DBClient) ListEdgeConfigSetItem(param *apistructs.EdgeCfgSetItemListPageRequest) (int, *[]EdgeConfigSetItem, error) + func (c *DBClient) ListEdgeSite(param *apistructs.EdgeSiteListPageRequest) (int, *[]EdgeSite, error) + func (c *DBClient) UpdateEdgeApp(edgeApp *EdgeApp) error + func (c *DBClient) UpdateEdgeConfigSet(edgeConfigSet *EdgeConfigSet) error + func (c *DBClient) UpdateEdgeConfigSetItem(cfgSetItem *EdgeConfigSetItem) error + func (c *DBClient) UpdateEdgeSite(edgeSite *EdgeSite) error + type EdgeApp struct + AddonName string + AddonVersion string + ClusterID int64 + ConfigSetName string + DependApp string + Description string + EdgeSites string + ExtraData string + HealthCheckExec string + HealthCheckHttpPath string + HealthCheckHttpPort int + HealthCheckType string + Image string + LimitCpu float64 + LimitMem float64 + Name string + OrgID int64 + PortMaps string + ProductID int64 + RegistryAddr string + RegistryPassword string + RegistryUser string + Replicas int32 + RequestCpu float64 + RequestMem float64 + Type string + func (EdgeApp) TableName() string + type EdgeConfigSet struct + ClusterID int64 + Description string + DisplayName string + Name string + OrgID int64 + func (EdgeConfigSet) TableName() string + type EdgeConfigSetItem struct + ConfigsetID int64 + ItemKey string + ItemValue string + Scope string + SiteID int64 + func (EdgeConfigSetItem) TableName() string + type EdgeSite struct + ClusterID int64 + Description string + DisplayName string + Logo string + Name string + OrgID int64 + Status int64 + func (EdgeSite) TableName() string