cloud

package
v0.0.0-...-77199df Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cloud

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

func NewCloud

func NewCloud(orgID int, domain mysql.Domain, cfg config.CloudConfig, ctx context.Context) *Cloud

TODO 添加参数

func (*Cloud) GetBasicInfo

func (c *Cloud) GetBasicInfo() model.BasicInfo

func (*Cloud) GetDomainRefreshSignal

func (c *Cloud) GetDomainRefreshSignal() *queue.OverwriteQueue

func (*Cloud) GetKubernetesGatherTaskMap

func (c *Cloud) GetKubernetesGatherTaskMap() map[string]*KubernetesGatherTask

func (*Cloud) GetOrgID

func (c *Cloud) GetOrgID() int

func (*Cloud) GetResource

func (c *Cloud) GetResource() model.Resource

func (*Cloud) GetStatter

func (c *Cloud) GetStatter() statsd.StatsdStatter

func (*Cloud) GetSubDomainRefreshSignals

func (c *Cloud) GetSubDomainRefreshSignals() cmap.ConcurrentMap[string, *queue.OverwriteQueue]

func (*Cloud) Start

func (c *Cloud) Start()

func (*Cloud) Stop

func (c *Cloud) Stop()

func (*Cloud) UpdateBasicInfoName

func (c *Cloud) UpdateBasicInfoName(name string)

type KubernetesGatherTask

type KubernetesGatherTask struct {
	SubDomainConfig string // 附属容器集群配置字段config
	// contains filtered or unexported fields
}

func NewKubernetesGatherTask

func NewKubernetesGatherTask(
	ctx context.Context, db *mysql.DB, domain *mysql.Domain, subDomain *mysql.SubDomain, cfg config.CloudConfig, isSubDomain bool) *KubernetesGatherTask

func (*KubernetesGatherTask) GetBasicInfo

func (*KubernetesGatherTask) GetGatherCost

func (k *KubernetesGatherTask) GetGatherCost() float64

func (*KubernetesGatherTask) GetResource

func (*KubernetesGatherTask) PutRefreshSignal

func (k *KubernetesGatherTask) PutRefreshSignal(version int) error

func (*KubernetesGatherTask) Start

func (k *KubernetesGatherTask) Start(rSignal *queue.OverwriteQueue)

func (*KubernetesGatherTask) Stop

func (k *KubernetesGatherTask) Stop()

Directories

Path Synopsis
expand Module
platform module
expand Module

Jump to

Keyboard shortcuts

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