cloud

package
v0.0.0-...-b8a1a0e Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 22 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(domain mysql.Domain, cfg config.CloudConfig, ctx context.Context) *Cloud

TODO 添加参数

func (*Cloud) GetBasicInfo

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

func (*Cloud) GetKubernetesGatherTaskMap

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

func (*Cloud) GetResource

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

func (*Cloud) GetStatter

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

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, 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) Start

func (k *KubernetesGatherTask) Start()

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