Documentation ¶
Overview ¶
* Copyright (c) 2024 Yunshan Networks * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
Index ¶
- Constants
- func AdminPermissionVerificationMiddleware() gin.HandlerFunc
- func SetInitStageForHealthChecker(s string)
- type AgentCMD
- type AgentCommandType
- type Analyzer
- type Controller
- type DataSource
- type Debug
- type Election
- type Health
- type Icon
- type Mail
- type ORGData
- type Plugin
- type VTapGroupConfig
- type VTapInterface
- type VTapRepoDelete
- type Vtap
- type VtapGroup
- type VtapRepo
Constants ¶
const ( ForwardControllerTimes = "ForwardControllerTimes" DefaultForwardControllerTimes = 3 AgentCommandTypeProbe = AgentCommandType("probe") AgentCommandTypeProfile = AgentCommandType("profile") )
const OK = "ok"
Variables ¶
This section is empty.
Functions ¶
func AdminPermissionVerificationMiddleware ¶
func AdminPermissionVerificationMiddleware() gin.HandlerFunc
AdminPermissionverificationMiddleware is a Gin middleware that checks if the user is a super admin or admin.
func SetInitStageForHealthChecker ¶
func SetInitStageForHealthChecker(s string)
Types ¶
type AgentCMD ¶
type AgentCMD struct {
// contains filtered or unexported fields
}
func NewAgentCMD ¶
func NewAgentCMD(cfg *config.ControllerConfig) *AgentCMD
func (*AgentCMD) RegisterTo ¶
type AgentCommandType ¶
type AgentCommandType string
type Analyzer ¶
type Analyzer struct {
// contains filtered or unexported fields
}
func NewAnalyzer ¶
func NewAnalyzer(cfg *config.ControllerConfig, ac *monitor.AnalyzerCheck) *Analyzer
func (*Analyzer) RegisterTo ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(cfg *config.ControllerConfig, cc *monitor.ControllerCheck) *Controller
func (*Controller) RegisterTo ¶
func (c *Controller) RegisterTo(e *gin.Engine)
type DataSource ¶
type DataSource struct {
// contains filtered or unexported fields
}
func NewDataSource ¶
func NewDataSource(cfg *config.ControllerConfig) *DataSource
func (*DataSource) RegisterTo ¶
func (d *DataSource) RegisterTo(e *gin.Engine)
type Debug ¶
type Debug struct {
// contains filtered or unexported fields
}
func (*Debug) RegisterTo ¶
type Election ¶
type Election struct{}
func NewElection ¶
func NewElection() *Election
func (*Election) RegisterTo ¶
type Icon ¶
type Icon struct {
// contains filtered or unexported fields
}
func NewIcon ¶
func NewIcon(cfg *config.ControllerConfig) *Icon
func (*Icon) RegisterTo ¶
type ORGData ¶
type ORGData struct {
// contains filtered or unexported fields
}
func NewDatabase ¶
func NewDatabase(cfg *config.ControllerConfig) *ORGData
func (*ORGData) AllocORGID ¶
func (*ORGData) DeleteNonRealTime ¶
func (*ORGData) RegisterTo ¶
type VTapGroupConfig ¶
type VTapGroupConfig struct {
// contains filtered or unexported fields
}
func NewVTapGroupConfig ¶
func NewVTapGroupConfig(cfg *config.ControllerConfig) *VTapGroupConfig
func (*VTapGroupConfig) RegisterTo ¶
func (cgc *VTapGroupConfig) RegisterTo(e *gin.Engine)
type VTapInterface ¶
type VTapInterface struct {
// contains filtered or unexported fields
}
func NewVTapInterface ¶
func NewVTapInterface(cfg ctrlrcommon.FPermit) *VTapInterface
func (*VTapInterface) RegisterTo ¶
func (v *VTapInterface) RegisterTo(e *gin.Engine)
type VTapRepoDelete ¶
type VTapRepoDelete struct {
ImageName string `json:"image_name" binding:"required"`
}
type Vtap ¶
type Vtap struct {
// contains filtered or unexported fields
}
func NewVtap ¶
func NewVtap(cfg *config.ControllerConfig) *Vtap
func (*Vtap) RegisterTo ¶
type VtapGroup ¶
type VtapGroup struct {
// contains filtered or unexported fields
}
func NewVtapGroup ¶
func NewVtapGroup(cfg *config.ControllerConfig) *VtapGroup
func (*VtapGroup) RegisterTo ¶
type VtapRepo ¶
type VtapRepo struct{}
func NewVtapRepo ¶
func NewVtapRepo() *VtapRepo