trisolaris

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: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllAgentConnectToNatIP

func GetAllAgentConnectToNatIP() bool

func GetBillingMethod

func GetBillingMethod() string

func GetConfig

func GetConfig() *config.Config

func GetDefaultDB

func GetDefaultDB() *gorm.DB

func GetGKubernetesInfo

func GetGKubernetesInfo(teamID string) *kubernetes.KubernetesInfo

func GetGrpcPort

func GetGrpcPort() int

func GetIngesterPort

func GetIngesterPort() int

func GetIsRefused

func GetIsRefused() bool

func GetMetaData

func GetMetaData(orgID int) *metadata.MetaData

func GetORGNodeInfo

func GetORGNodeInfo(orgID int) *node.NodeInfo

func GetORGVTapInfo

func GetORGVTapInfo(orgID int) *vtap.VTapInfo

func GetOrgIDByTeamID

func GetOrgIDByTeamID(teamID string) int

func GetOrgIDsData

func GetOrgIDsData() *trident.OrgIDsResponse

func GetOrgInfoByTeamID

func GetOrgInfoByTeamID(teamIDStr string) (orgID int, teamID int)

func PutFlowACL

func PutFlowACL(orgID int)

func PutGroup

func PutGroup(orgID int)

func PutNodeInfo

func PutNodeInfo(orgID int)

func PutPlatformData

func PutPlatformData(orgID int)

func PutTapType

func PutTapType(orgID int)

func PutVTapCache

func PutVTapCache(orgID int)

Types

type Trisolaris

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

func GetTrisolaris

func GetTrisolaris(orgID int) *Trisolaris

func NewTrisolaris

func NewTrisolaris(cfg *config.Config, mDB *mysql.DB, pctx context.Context, startTime int64) *Trisolaris

func TeamIDToTrisolaris

func TeamIDToTrisolaris(teamID string) *Trisolaris

func (*Trisolaris) GetNodeInfo

func (t *Trisolaris) GetNodeInfo() *node.NodeInfo

func (*Trisolaris) GetVTapInfo

func (t *Trisolaris) GetVTapInfo() *vtap.VTapInfo

func (*Trisolaris) Start

func (t *Trisolaris) Start()

func (*Trisolaris) Stop

func (t *Trisolaris) Stop()

type TrisolarisManager

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

func NewTrisolarisManager

func NewTrisolarisManager(cfg *config.Config, db *gorm.DB) *TrisolarisManager

func (*TrisolarisManager) GetOrgIDByTeamID

func (m *TrisolarisManager) GetOrgIDByTeamID(teamID string) int

func (*TrisolarisManager) GetOrgInfoByTeamID

func (m *TrisolarisManager) GetOrgInfoByTeamID(teamID string) (int, int)

func (*TrisolarisManager) GetVTapCache

func (m *TrisolarisManager) GetVTapCache(orgID int, key string) *vtap.VTapCache

func (*TrisolarisManager) GetVTapInfo

func (m *TrisolarisManager) GetVTapInfo(orgID int) *vtap.VTapInfo

func (*TrisolarisManager) PutVTapCacheRefresh

func (m *TrisolarisManager) PutVTapCacheRefresh(orgID int)

func (*TrisolarisManager) Start

func (m *TrisolarisManager) Start() error

func (*TrisolarisManager) TeamIDLcuuidToInt

func (m *TrisolarisManager) TeamIDLcuuidToInt(teamID string) int

func (*TrisolarisManager) TimedCheckORG

func (m *TrisolarisManager) TimedCheckORG()

Jump to

Keyboard shortcuts

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