aliyun

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

* * @Author: TheLife * @Date: 2020-2-25 9:00 下午

* * @Author: TheLife * @Date: 2020-2-25 9:00 下午

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliSlbClient

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

func NewSlb

func NewSlb(regionId, accessKeyID, accessKeySecret string) (client *AliSlbClient, err error)

func (*AliSlbClient) AddBackendServers

func (c *AliSlbClient) AddBackendServers(balancerId string, serverId string) (response *slb.AddBackendServersResponse, err error)

添加后端服务器

func (*AliSlbClient) CreateLoadBalancer

func (c *AliSlbClient) CreateLoadBalancer(internetChargeType string, bandwidth int) (response *slb.CreateLoadBalancerResponse, err error)

创建slb

func (*AliSlbClient) CreateLoadBalancerTCPListener

func (c *AliSlbClient) CreateLoadBalancerTCPListener(balancerId string, listenerPort int, backendServerPort int) (response *slb.CreateLoadBalancerTCPListenerResponse, err error)

创建监听

func (*AliSlbClient) DeleteLoadBalancer

func (c *AliSlbClient) DeleteLoadBalancer(balancerId string) (response *slb.DeleteLoadBalancerResponse, err error)

删除slb

func (*AliSlbClient) StartLoadBalancerListener

func (c *AliSlbClient) StartLoadBalancerListener(balancerId string, listenerPort int) (response *slb.StartLoadBalancerListenerResponse, err error)

开始监听

type AliSmsClient

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

func NewSMS

func NewSMS(regionId, accessKeyID, accessKeySecret string) (client *AliSmsClient, err error)

func (*AliSmsClient) Send

func (c *AliSmsClient) Send(phoneNumber, signName, templateCode string, templateParam map[string]interface{}) (response *dysmsapi.SendSmsResponse, err error)

发送短信

Jump to

Keyboard shortcuts

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