providers

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	ProviderType() cloud.Provider

	QueryAccountBill(ctx context.Context, request types.QueryAccountBillRequest) (types.DataInQueryAccountBill, error)
	// DescribeInstanceBill query the consumption of all product instances or billing items for a certain account period
	// in principle, we can get the basic info about specify InstantId, even through deleted or released.
	DescribeInstanceBill(ctx context.Context, request types.DescribeInstanceBillRequest, isAll bool) (types.DescribeInstanceBill, error)
	// QueryAvailableInstances list all available Instances by RegionId OR InstantIds.
	QueryAvailableInstances(context.Context, types.QueryAvailableInstancesRequest) (types.QueryAvailableInstances, error)

	// DescribeRegions list all regions as the RegionId and RegionName map.
	DescribeRegions(context.Context, types.DescribeRegionsRequest) (types.DescribeRegions, error)
	// DescribeInstances Describes the specified instances or all instances.
	DescribeInstances(context.Context, types.DescribeInstancesRequest) (types.DescribeInstances, error)

	// DescribeMetricList get monitoring samples, eg: cpu/memory.
	DescribeMetricList(context.Context, types.DescribeMetricListRequest) (types.DescribeMetricList, error)
}

func GetProvider

func GetProvider(provider cloud.Provider, ak, sk, regionID string) (Provider, error)

GetProvider get provider

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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