configger

package
v0.0.0-...-a156103 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrStatisticNotSupported = errors.New("cloud not supported statistic ecs")
	ErrCfgPanic              = errors.New("configger init panic")
)

Functions

This section is empty.

Types

type AliCfg

type AliCfg struct {
	tenanter.Tenanter
	// contains filtered or unexported fields
}

func (*AliCfg) Statistic

func (cfg *AliCfg) Statistic(ctx context.Context) (*pbstatistic.StatisticInfo, error)

type AwsCfg

type AwsCfg struct {
	tenanter.Tenanter
	// contains filtered or unexported fields
}

func (*AwsCfg) Statistic

func (cfg *AwsCfg) Statistic(ctx context.Context) (*pbstatistic.StatisticInfo, error)

type Configger

type Configger interface {
	// 统计接口
	Statistic(ctx context.Context) (*pbstatistic.StatisticInfo, error)
}

func NewConfigClient

func NewConfigClient(provider pbtenant.CloudProvider, region tenanter.Region, tenant tenanter.Tenanter) (cfg Configger, err error)

type HuaweiCfg

type HuaweiCfg struct {
	tenanter.Tenanter
	// contains filtered or unexported fields
}

func (*HuaweiCfg) Statistic

func (cfg *HuaweiCfg) Statistic(ctx context.Context) (*pbstatistic.StatisticInfo, error)

type TencentCfg

type TencentCfg struct {
	tenanter.Tenanter
	// contains filtered or unexported fields
}

func (*TencentCfg) Statistic

func (cfg *TencentCfg) Statistic(ctx context.Context) (*pbstatistic.StatisticInfo, error)

Jump to

Keyboard shortcuts

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