location

package
v0.0.0-...-b2f09ec Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// LocationDefaultEndpoint is the default API endpoint of Location services
	LocationDefaultEndpoint = "https://location.aliyuncs.com"
	LocationAPIVersion      = "2015-06-12"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(accessKeyId, accessKeySecret string) *Client

NewClient creates a new instance of Location client

func NewClientWithEndpoint

func NewClientWithEndpoint(endpoint string, accessKeyId, accessKeySecret string) *Client

func (*Client) DescribeEndpoint

func (client *Client) DescribeEndpoint(args *DescribeEndpointArgs) (*DescribeEndpointResponse, error)

func (*Client) DescribeEndpoints

func (client *Client) DescribeEndpoints(args *DescribeEndpointsArgs) (*DescribeEndpointsResponse, error)

func (*Client) DescribeRegions

func (client *Client) DescribeRegions(args *DescribeRegionsArgs) (*DescribeRegionsResponse, error)

func (*Client) DescribeServices

func (client *Client) DescribeServices(args *DescribeServicesArgs) (*DescribeServicesResponse, error)

type DescribeEndpointArgs

type DescribeEndpointArgs struct {
	Id          common.Region
	ServiceCode string
	Type        string
}

type DescribeEndpointResponse

type DescribeEndpointResponse struct {
	common.Response
	EndpointItem
}

type DescribeEndpointsArgs

type DescribeEndpointsArgs struct {
	Id          common.Region
	ServiceCode string
	Type        string
}

type DescribeEndpointsResponse

type DescribeEndpointsResponse struct {
	common.Response
	Endpoints struct {
		Endpoint []EndpointItem
	}
}

type DescribeRegionsArgs

type DescribeRegionsArgs struct {
	Password string
}

type DescribeRegionsResponse

type DescribeRegionsResponse struct {
	common.Response

	TotalCount int
	RegionIds  struct {
		RegionIds []string
	}
}

type DescribeServicesArgs

type DescribeServicesArgs struct {
	RegionId common.Region
}

type DescribeServicesResponse

type DescribeServicesResponse struct {
	common.Response

	TotalCount int
	Services   struct {
		Services []string
	}
}

type EndpointItem

type EndpointItem struct {
	Protocols struct {
		Protocols []string
	}
	Type        string
	Namespace   string
	Id          common.Region
	SerivceCode string
	Endpoint    string
}

Jump to

Keyboard shortcuts

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