aliyun

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FcRegion added in v1.1.0

type FcRegion struct {
	RegionId   string `json:"regionId"`
	RegionName string `json:"regionName"`
	AreaId     string `json:"areaId"`
	AreaName   string `json:"areaName"`
	Public     string `json:"public"`
	VPC        string `json:"vpc"`
}

func GetFcRegions added in v1.1.0

func GetFcRegions() ([]FcRegion, error)

GetFcRegions 貌似阿里云没有提供 SDK 获取可用区, 只能抓接口拿了

type FcRegionsResp added in v1.1.0

type FcRegionsResp struct {
	Code int `json:"code"`
	Data struct {
		Type      string     `json:"type"`
		Endpoints []FcRegion `json:"endpoints"`
	} `json:"data"`
}

type FcTriggerConfig added in v1.1.0

type FcTriggerConfig struct {
	Method             []string `json:"method"`
	AuthType           string   `json:"authType"`
	DisableURLInternet bool     `json:"disableURLInternet"`
}

type Provider

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

func New

func New(options schema.OptionBlock, cs goflags.StringSlice) (*Provider, error)

func (*Provider) ID

func (p *Provider) ID() string

func (*Provider) Name

func (p *Provider) Name() string

func (*Provider) Resources

func (p *Provider) Resources(ctx context.Context, cs goflags.StringSlice) (*schema.Resources, error)

Jump to

Keyboard shortcuts

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