Documentation ¶
Index ¶
- Constants
- Variables
- func BatchDeleteVtap(deleteMap []map[string]string) (resp map[string][]string, err error)
- func BatchUpdateVtap(updateMap []map[string]interface{}) (resp map[string][]string, err error)
- func BatchUpdateVtapLicenseType(updateMap []map[string]interface{}) (resp map[string][]string, err error)
- func BatchUpdateVtapTapMode(vtapUpdate *model.VtapUpdateTapMode) (interface{}, error)
- func CallRozeAPIAddRP(ip string, dataSource, baseDataSource mysql.DataSource, rozePort int) error
- func CallRozeAPIDelRP(ip string, dataSource mysql.DataSource, rozePort int) error
- func CallRozeAPIModRP(ip string, dataSource mysql.DataSource, rozePort int) error
- func ConfigAnalyzerDataSource(ip string) error
- func CreateDataSource(dataSourceCreate model.DataSourceCreate, cfg *config.ControllerConfig) (model.DataSource, error)
- func CreateVTapGroupAdvancedConfig(createData *model.VTapGroupConfiguration) (string, error)
- func CreateVTapGroupConfig(createData *model.VTapGroupConfiguration) (*mysql.VTapGroupConfiguration, error)
- func CreateVtap(vtapCreate model.VtapCreate) (model.Vtap, error)
- func CreateVtapGroup(vtapGroupCreate model.VtapGroupCreate, cfg *config.ControllerConfig) (resp model.VtapGroup, err error)
- func CreateVtapRepo(vtapRepoCreate *mysql.VTapRepo) (*model.VtapRepo, error)
- func DeleteAnalyzer(lcuuid string, m *monitor.AnalyzerCheck) (resp map[string]string, err error)
- func DeleteController(lcuuid string, m *monitor.ControllerCheck) (resp map[string]string, err error)
- func DeleteDataSource(lcuuid string, cfg *config.ControllerConfig) (map[string]string, error)
- func DeleteVTapGroupConfig(lcuuid string) (*mysql.VTapGroupConfiguration, error)
- func DeleteVTapGroupConfigByFilter(args map[string]string) (string, error)
- func DeleteVtap(lcuuid string) (resp map[string]string, err error)
- func DeleteVtapGroup(lcuuid string) (resp map[string]string, err error)
- func DeleteVtapRepo(name string) error
- func GetAgentStats(g *genesis.Genesis, ip string) ([]genesis.TridentStats, error)
- func GetAnalyzers(filter map[string]interface{}) (resp []model.Analyzer, err error)
- func GetCloudBasicInfos(filter map[string]string, m *manager.Manager) (resp []cloudmodel.BasicInfo, err error)
- func GetCloudResource(lcuuid string, m *manager.Manager) (resp cloudmodel.Resource, err error)
- func GetControllers(filter map[string]string) (resp []model.Controller, err error)
- func GetDataSources(filter map[string]interface{}) (resp []model.DataSource, err error)
- func GetGenesisData(g *genesis.Genesis) (genesis.GenesisSyncData, error)
- func GetGenesisKubernetesData(g *genesis.Genesis, clusterID string) (map[string][]string, error)
- func GetGenesisSyncData(g *genesis.Genesis) (genesis.GenesisSyncData, error)
- func GetKubernetesGatherBasicInfos(lcuuid string, m *manager.Manager) (resp []kubernetes_gather_model.KubernetesGatherBasicInfo, err error)
- func GetKubernetesGatherResources(lcuuid string, m *manager.Manager) (resp []kubernetes_gather_model.KubernetesGatherResource, err error)
- func GetLeaderInfo() (resp map[string]string, err error)
- func GetRecorderCacheDiffBaseDataSet(domainLcuuid, subDomainLcuuid string, m *manager.Manager) (resp cache.DiffBaseDataSet, err error)
- func GetRecorderCacheToolDataSet(domainLcuuid, subDomainLcuuid string, m *manager.Manager) (resp cache.ToolDataSet, err error)
- func GetRecorderDiffBaseByResourceLcuuid(domainLcuuid, subDomainLcuuid, resourceType string, resourceLcuuid string, ...) (resp interface{}, err error)
- func GetRecorderDiffBaseDataSetByResourceType(domainLcuuid, subDomainLcuuid, resourceType string, m *manager.Manager) (resp map[string]interface{}, err error)
- func GetRecorderDomainCache(domainLcuuid, subDomainLcuuid string, m *manager.Manager) (resp cache.Cache, err error)
- func GetRecorderToolMapByField(domainLcuuid, subDomainLcuuid, field string, m *manager.Manager) (resp map[interface{}]interface{}, err error)
- func GetVTapGroupAdvancedConfig(lcuuid string) (string, error)
- func GetVTapGroupAdvancedConfigs() ([]string, error)
- func GetVTapGroupConfigByFilter(args map[string]string) (string, error)
- func GetVTapGroupConfigs(filter map[string]interface{}) ([]*model.VTapGroupConfigurationResponse, error)
- func GetVTapGroupDetailedConfig(lcuuid string) (*model.DetailedConfig, error)
- func GetVTapGroupExampleConfig() (string, error)
- func GetVTapInterfaces(filter map[string]interface{}) (resp []model.VTapInterface, err error)
- func GetVtapGroups(filter map[string]interface{}) (resp []model.VtapGroup, err error)
- func GetVtapRepo(filter map[string]interface{}) ([]model.VtapRepo, error)
- func GetVtaps(filter map[string]interface{}) (resp []model.Vtap, err error)
- func UpdateAnalyzer(lcuuid string, analyzerUpdate map[string]interface{}, m *monitor.AnalyzerCheck, ...) (resp model.Analyzer, err error)
- func UpdateController(lcuuid string, controllerUpdate map[string]interface{}, ...) (resp model.Controller, err error)
- func UpdateDataSource(lcuuid string, dataSourceUpdate model.DataSourceUpdate, ...) (model.DataSource, error)
- func UpdateVTapGroupAdvancedConfig(lcuuid string, updateData *model.VTapGroupConfiguration) (string, error)
- func UpdateVTapGroupConfig(lcuuid string, updateData *model.VTapGroupConfiguration) (*mysql.VTapGroupConfiguration, error)
- func UpdateVtap(lcuuid, name string, vtapUpdate map[string]interface{}) (resp model.Vtap, err error)
- func UpdateVtapGroup(lcuuid string, vtapGroupUpdate map[string]interface{}, ...) (resp model.VtapGroup, err error)
- func UpdateVtapLicenseType(lcuuid string, vtapUpdate map[string]interface{}) (resp model.Vtap, err error)
- func VTapRebalance(args map[string]interface{}) (*model.VTapRebalanceResult, error)
Constants ¶
View Source
const (
IMAGE_MAX_COUNT = 20
)
View Source
const VTAP_GROUP_SHORT_UUID_PREFIX = "g-"
View Source
const (
VTAP_LICENSE_CHECK_EXCEPTION = "采集器(%s)不支持修改为指定授权类型"
)
Variables ¶
View Source
var DEFAULT_DATA_SOURCE_NAMES = []string{"1s", "1m", "flow_log.l4", "flow_log.l7"}
View Source
var DecapTypeData = map[int]string{
0: "无",
1: "VXLAN",
2: "IPIP",
3: "GRE",
}
Functions ¶
func BatchDeleteVtap ¶
func BatchUpdateVtap ¶
func BatchUpdateVtapTapMode ¶
func BatchUpdateVtapTapMode(vtapUpdate *model.VtapUpdateTapMode) (interface{}, error)
func CallRozeAPIAddRP ¶
func CallRozeAPIAddRP(ip string, dataSource, baseDataSource mysql.DataSource, rozePort int) error
func CallRozeAPIDelRP ¶
func CallRozeAPIDelRP(ip string, dataSource mysql.DataSource, rozePort int) error
func CallRozeAPIModRP ¶
func CallRozeAPIModRP(ip string, dataSource mysql.DataSource, rozePort int) error
func CreateDataSource ¶
func CreateDataSource(dataSourceCreate model.DataSourceCreate, cfg *config.ControllerConfig) (model.DataSource, error)
func CreateVTapGroupAdvancedConfig ¶
func CreateVTapGroupAdvancedConfig(createData *model.VTapGroupConfiguration) (string, error)
func CreateVTapGroupConfig ¶
func CreateVTapGroupConfig(createData *model.VTapGroupConfiguration) (*mysql.VTapGroupConfiguration, error)
func CreateVtap ¶
func CreateVtap(vtapCreate model.VtapCreate) (model.Vtap, error)
func CreateVtapGroup ¶
func CreateVtapGroup(vtapGroupCreate model.VtapGroupCreate, cfg *config.ControllerConfig) (resp model.VtapGroup, err error)
func DeleteAnalyzer ¶
func DeleteController ¶
func DeleteDataSource ¶
func DeleteVTapGroupConfig ¶
func DeleteVTapGroupConfig(lcuuid string) (*mysql.VTapGroupConfiguration, error)
func DeleteVtapRepo ¶
func GetAgentStats ¶
func GetAnalyzers ¶
func GetCloudBasicInfos ¶
func GetCloudResource ¶
func GetControllers ¶
func GetControllers(filter map[string]string) (resp []model.Controller, err error)
func GetDataSources ¶
func GetDataSources(filter map[string]interface{}) (resp []model.DataSource, err error)
func GetGenesisData ¶
func GetGenesisData(g *genesis.Genesis) (genesis.GenesisSyncData, error)
func GetGenesisSyncData ¶
func GetGenesisSyncData(g *genesis.Genesis) (genesis.GenesisSyncData, error)
func GetKubernetesGatherBasicInfos ¶
func GetKubernetesGatherBasicInfos(lcuuid string, m *manager.Manager) (resp []kubernetes_gather_model.KubernetesGatherBasicInfo, err error)
func GetKubernetesGatherResources ¶
func GetKubernetesGatherResources(lcuuid string, m *manager.Manager) (resp []kubernetes_gather_model.KubernetesGatherResource, err error)
func GetLeaderInfo ¶
func GetRecorderDomainCache ¶
func GetVTapGroupConfigs ¶
func GetVTapGroupConfigs(filter map[string]interface{}) ([]*model.VTapGroupConfigurationResponse, error)
func GetVTapGroupDetailedConfig ¶
func GetVTapGroupDetailedConfig(lcuuid string) (*model.DetailedConfig, error)
func GetVTapInterfaces ¶
func GetVTapInterfaces(filter map[string]interface{}) (resp []model.VTapInterface, err error)
func GetVtapGroups ¶
func UpdateAnalyzer ¶
func UpdateAnalyzer( lcuuid string, analyzerUpdate map[string]interface{}, m *monitor.AnalyzerCheck, cfg *config.ControllerConfig, ) (resp model.Analyzer, err error)
func UpdateController ¶
func UpdateController( lcuuid string, controllerUpdate map[string]interface{}, m *monitor.ControllerCheck, cfg *config.ControllerConfig, ) (resp model.Controller, err error)
func UpdateDataSource ¶
func UpdateDataSource(lcuuid string, dataSourceUpdate model.DataSourceUpdate, cfg *config.ControllerConfig) (model.DataSource, error)
func UpdateVTapGroupAdvancedConfig ¶
func UpdateVTapGroupAdvancedConfig(lcuuid string, updateData *model.VTapGroupConfiguration) (string, error)
func UpdateVTapGroupConfig ¶
func UpdateVTapGroupConfig(lcuuid string, updateData *model.VTapGroupConfiguration) (*mysql.VTapGroupConfiguration, error)
func UpdateVtap ¶
func UpdateVtapGroup ¶
func UpdateVtapLicenseType ¶
func VTapRebalance ¶
func VTapRebalance(args map[string]interface{}) (*model.VTapRebalanceResult, error)
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.