router

package
v0.0.0-...-8d187f3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Overview

* Copyright (c) 2024 KhulnaSoft, Ltd * * 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

View Source
const (
	ForwardControllerTimes        = "ForwardControllerTimes"
	DefaultForwardControllerTimes = 3

	AgentCommandTypeProbe   = AgentCommandType("probe")
	AgentCommandTypeProfile = AgentCommandType("profile")
)
View Source
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

func (a *AgentCMD) RegisterTo(e *gin.Engine)

type AgentCommandType

type AgentCommandType string

type AgentGroupConfig

type AgentGroupConfig struct {
	// contains filtered or unexported fields
}

func NewAgentGroupConfig

func NewAgentGroupConfig(cfg *config.ControllerConfig) *AgentGroupConfig

func (*AgentGroupConfig) RegisterTo

func (cgc *AgentGroupConfig) RegisterTo(e *gin.Engine)

type Analyzer

type Analyzer struct {
	// contains filtered or unexported fields
}

func NewAnalyzer

func NewAnalyzer(cfg *config.ControllerConfig, ac *monitor.AnalyzerCheck) *Analyzer

func (*Analyzer) RegisterTo

func (a *Analyzer) RegisterTo(e *gin.Engine)

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

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 NewDebug

func NewDebug(m *manager.Manager, g *genesis.Genesis) *Debug

func (*Debug) RegisterTo

func (d *Debug) RegisterTo(e *gin.Engine)

type Election

type Election struct{}

func NewElection

func NewElection() *Election

func (*Election) RegisterTo

func (el *Election) RegisterTo(e *gin.Engine)

type Health

type Health struct{}

func NewHealth

func NewHealth() *Health

func (*Health) RegisterTo

func (s *Health) RegisterTo(e *gin.Engine)

type Icon

type Icon struct {
	// contains filtered or unexported fields
}

func NewIcon

func NewIcon(cfg *config.ControllerConfig) *Icon

func (*Icon) RegisterTo

func (i *Icon) RegisterTo(e *gin.Engine)

type Mail

type Mail struct{}

func NewMail

func NewMail() *Mail

func (*Mail) RegisterTo

func (m *Mail) RegisterTo(e *gin.Engine)

type ORGData

type ORGData struct {
	// contains filtered or unexported fields
}

func NewDatabase

func NewDatabase(cfg *config.ControllerConfig) *ORGData

func (*ORGData) AllocORGID

func (d *ORGData) AllocORGID(c *gin.Context)

func (*ORGData) Create

func (d *ORGData) Create(c *gin.Context)

func (*ORGData) Delete

func (d *ORGData) Delete(c *gin.Context)

func (*ORGData) DeleteNonRealTime

func (d *ORGData) DeleteNonRealTime(c *gin.Context)

func (*ORGData) Get

func (d *ORGData) Get(c *gin.Context)

func (*ORGData) RegisterTo

func (d *ORGData) RegisterTo(e *gin.Engine)

type Plugin

type Plugin struct{}

func NewPlugin

func NewPlugin() *Plugin

func (*Plugin) RegisterTo

func (p *Plugin) RegisterTo(e *gin.Engine)

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

func (v *Vtap) RegisterTo(e *gin.Engine)

type VtapGroup

type VtapGroup struct {
	// contains filtered or unexported fields
}

func NewVtapGroup

func NewVtapGroup(cfg *config.ControllerConfig) *VtapGroup

func (*VtapGroup) RegisterTo

func (v *VtapGroup) RegisterTo(e *gin.Engine)

type VtapRepo

type VtapRepo struct{}

func NewVtapRepo

func NewVtapRepo() *VtapRepo

func (*VtapRepo) RegisterTo

func (vr *VtapRepo) RegisterTo(e *gin.Engine)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL