Documentation ¶
Index ¶
- Constants
- type 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
- type EdgeConfigSet
- type EdgeConfigSetItem
- type EdgeSite
Constants ¶
const (
ScopePublic = "public"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBClient ¶
func (*DBClient) CreateEdgeApp ¶
CreateEdgeApp Create edge application
func (*DBClient) CreateEdgeConfigSet ¶
func (c *DBClient) CreateEdgeConfigSet(edgeConfigSet *EdgeConfigSet) error
CreateEdgeConfigSet Create edge configSet
func (*DBClient) CreateEdgeConfigSetItem ¶
func (c *DBClient) CreateEdgeConfigSetItem(cfgSetItem *EdgeConfigSetItem) error
CreateEdgeConfigSetItem Create edge configSet item
func (*DBClient) CreateEdgeSite ¶
CreateEdgeSite Create edge site record
func (*DBClient) DeleteEdgeApp ¶
DeleteEdgeApp Delete edge application
func (*DBClient) DeleteEdgeCfgSetItemByCfgID ¶
DeleteEdgeCfgSetItemByCfgID Delete all edge configSet item under provided configSet id
func (*DBClient) DeleteEdgeConfigSet ¶
DeleteEdgeConfigSet Delete edge configSet
func (*DBClient) DeleteEdgeConfigSetItem ¶
DeleteEdgeConfigSetItem Delete edge configSet item
func (*DBClient) DeleteEdgeConfigSetItemBySiteID ¶
DeleteEdgeConfigSetItemBySiteID Delete all edge configSet item under provided site id
func (*DBClient) DeleteEdgeSite ¶
DeleteEdgeSite Delete edge site
func (*DBClient) GetEdgeApp ¶
GetEdgeApp Get edge application by id
func (*DBClient) GetEdgeAppByConfigSet ¶
GetEdgeAppByConfigSet Get edge application by configSet name
func (*DBClient) GetEdgeAppByName ¶
GetEdgeAppByName Get edge application by name
func (*DBClient) GetEdgeAppsBySiteName ¶
GetEdgeAppsBySiteName Get edge application
func (*DBClient) GetEdgeConfigSet ¶
func (c *DBClient) GetEdgeConfigSet(configSetID int64) (*EdgeConfigSet, error)
GetEdgeConfigSet Get edge configSet by configSet id
func (*DBClient) GetEdgeConfigSetItem ¶
func (c *DBClient) GetEdgeConfigSetItem(itemID int64) (*EdgeConfigSetItem, error)
GetEdgeConfigSetItem Get edge configSet item by id
func (*DBClient) GetEdgeConfigSetItemsBySiteID ¶
func (c *DBClient) GetEdgeConfigSetItemsBySiteID(siteID int64) (*[]EdgeConfigSetItem, error)
GetEdgeConfigSetItemsBySiteID Get configSet item by site id.
func (*DBClient) GetEdgeSite ¶
GetEdgeSite Get edge site
func (*DBClient) ListAllEdgeApp ¶
ListAllEdgeApp List all edge application by orgID
func (*DBClient) ListAllEdgeAppByClusterID ¶
ListAllEdgeAppByClusterID List all edge application by orgID and clusterID
func (*DBClient) ListDependsEdgeApps ¶
ListDependsEdgeApps List edge applications which depended
func (*DBClient) ListEdgeApp ¶
func (c *DBClient) ListEdgeApp(param *apistructs.EdgeAppListPageRequest) (int, *[]EdgeApp, error)
ListEdgeApp List edge app by paging
func (*DBClient) ListEdgeAppBySiteName ¶
func (c *DBClient) ListEdgeAppBySiteName(orgID, clusterID int64, siteName string) (*[]EdgeApp, error)
ListEdgeAppBySiteName List edge application by site name under specified cluster
func (*DBClient) ListEdgeConfigSet ¶
func (c *DBClient) ListEdgeConfigSet(param *apistructs.EdgeConfigSetListPageRequest) (int, *[]EdgeConfigSet, error)
ListEdgeConfigSet List edge configSet
func (*DBClient) ListEdgeConfigSetItem ¶
func (c *DBClient) ListEdgeConfigSetItem(param *apistructs.EdgeCfgSetItemListPageRequest) (int, *[]EdgeConfigSetItem, error)
ListEdgeConfigSetItem List edge configSet item
func (*DBClient) ListEdgeSite ¶
func (c *DBClient) ListEdgeSite(param *apistructs.EdgeSiteListPageRequest) (int, *[]EdgeSite, error)
ListEdgeSite List edge site
func (*DBClient) UpdateEdgeApp ¶
UpdateEdgeApp Update edge application
func (*DBClient) UpdateEdgeConfigSet ¶
func (c *DBClient) UpdateEdgeConfigSet(edgeConfigSet *EdgeConfigSet) error
UpdateEdgeConfigSet Update edge configSet
func (*DBClient) UpdateEdgeConfigSetItem ¶
func (c *DBClient) UpdateEdgeConfigSetItem(cfgSetItem *EdgeConfigSetItem) error
UpdateEdgeConfigSetItem Update edge configSet item
func (*DBClient) UpdateEdgeSite ¶
UpdateEdgeSite Update edge site
type EdgeApp ¶
type EdgeApp struct { dbengine.BaseModel OrgID int64 Name string ClusterID int64 Type string Image string ProductID int64 AddonName string AddonVersion string RegistryAddr string RegistryUser string RegistryPassword string HealthCheckType string HealthCheckHttpPort int HealthCheckHttpPath string HealthCheckExec string ConfigSetName string Replicas int32 Description string EdgeSites string DependApp string LimitCpu float64 RequestCpu float64 LimitMem float64 RequestMem float64 PortMaps string ExtraData string }
EdgeApp edge app model
type EdgeConfigSet ¶
type EdgeConfigSet struct { dbengine.BaseModel OrgID int64 ClusterID int64 Name string DisplayName string Description string }
EdgeConfigSet edge config set, union key: clusterName and name
func (EdgeConfigSet) TableName ¶
func (EdgeConfigSet) TableName() string
type EdgeConfigSetItem ¶
type EdgeConfigSetItem struct { dbengine.BaseModel ConfigsetID int64 Scope string SiteID int64 ItemKey string ItemValue string }
EdgeConfigSetItem edge config data model, union key: clusterID, siteID, configKey
func (EdgeConfigSetItem) TableName ¶
func (EdgeConfigSetItem) TableName() string