hsm

package
v0.0.0-...-bbc24d0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	sdk.Client
}

Client is the sdk client struct, each func corresponds to an OpenAPI

func NewClient

func NewClient() (client *Client, err error)

NewClient creates a sdk client with environment variables

func NewClientWithAccessKey

func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error)

NewClientWithAccessKey is a shortcut to create sdk client with accesskey usage: https://help.aliyun.com/document_detail/66217.html

func NewClientWithEcsRamRole

func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error)

NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role usage: https://help.aliyun.com/document_detail/66223.html

func NewClientWithOptions

func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error)

NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential this is the common api to create a sdk client

func NewClientWithRamRoleArn

func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error)

NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn usage: https://help.aliyun.com/document_detail/66222.html

func NewClientWithRsaKeyPair

func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error)

NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair attention: rsa key pair auth is only Japan regions available

func NewClientWithStsToken

func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error)

NewClientWithStsToken is a shortcut to create sdk client with sts token usage: https://help.aliyun.com/document_detail/66222.html

func (*Client) ConfigNetwork

func (client *Client) ConfigNetwork(request *ConfigNetworkRequest) (response *ConfigNetworkResponse, err error)

ConfigNetwork invokes the hsm.ConfigNetwork API synchronously api document: https://help.aliyun.com/api/hsm/confignetwork.html

func (*Client) ConfigNetworkWithCallback

func (client *Client) ConfigNetworkWithCallback(request *ConfigNetworkRequest, callback func(response *ConfigNetworkResponse, err error)) <-chan int

ConfigNetworkWithCallback invokes the hsm.ConfigNetwork API asynchronously api document: https://help.aliyun.com/api/hsm/confignetwork.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ConfigNetworkWithChan

func (client *Client) ConfigNetworkWithChan(request *ConfigNetworkRequest) (<-chan *ConfigNetworkResponse, <-chan error)

ConfigNetworkWithChan invokes the hsm.ConfigNetwork API asynchronously api document: https://help.aliyun.com/api/hsm/confignetwork.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ConfigWhiteList

func (client *Client) ConfigWhiteList(request *ConfigWhiteListRequest) (response *ConfigWhiteListResponse, err error)

ConfigWhiteList invokes the hsm.ConfigWhiteList API synchronously api document: https://help.aliyun.com/api/hsm/configwhitelist.html

func (*Client) ConfigWhiteListWithCallback

func (client *Client) ConfigWhiteListWithCallback(request *ConfigWhiteListRequest, callback func(response *ConfigWhiteListResponse, err error)) <-chan int

ConfigWhiteListWithCallback invokes the hsm.ConfigWhiteList API asynchronously api document: https://help.aliyun.com/api/hsm/configwhitelist.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ConfigWhiteListWithChan

func (client *Client) ConfigWhiteListWithChan(request *ConfigWhiteListRequest) (<-chan *ConfigWhiteListResponse, <-chan error)

ConfigWhiteListWithChan invokes the hsm.ConfigWhiteList API asynchronously api document: https://help.aliyun.com/api/hsm/configwhitelist.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) CreateInstance

func (client *Client) CreateInstance(request *CreateInstanceRequest) (response *CreateInstanceResponse, err error)

CreateInstance invokes the hsm.CreateInstance API synchronously api document: https://help.aliyun.com/api/hsm/createinstance.html

func (*Client) CreateInstanceWithCallback

func (client *Client) CreateInstanceWithCallback(request *CreateInstanceRequest, callback func(response *CreateInstanceResponse, err error)) <-chan int

CreateInstanceWithCallback invokes the hsm.CreateInstance API asynchronously api document: https://help.aliyun.com/api/hsm/createinstance.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) CreateInstanceWithChan

func (client *Client) CreateInstanceWithChan(request *CreateInstanceRequest) (<-chan *CreateInstanceResponse, <-chan error)

CreateInstanceWithChan invokes the hsm.CreateInstance API asynchronously api document: https://help.aliyun.com/api/hsm/createinstance.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DescribeInstances

func (client *Client) DescribeInstances(request *DescribeInstancesRequest) (response *DescribeInstancesResponse, err error)

DescribeInstances invokes the hsm.DescribeInstances API synchronously api document: https://help.aliyun.com/api/hsm/describeinstances.html

func (*Client) DescribeInstancesWithCallback

func (client *Client) DescribeInstancesWithCallback(request *DescribeInstancesRequest, callback func(response *DescribeInstancesResponse, err error)) <-chan int

DescribeInstancesWithCallback invokes the hsm.DescribeInstances API asynchronously api document: https://help.aliyun.com/api/hsm/describeinstances.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DescribeInstancesWithChan

func (client *Client) DescribeInstancesWithChan(request *DescribeInstancesRequest) (<-chan *DescribeInstancesResponse, <-chan error)

DescribeInstancesWithChan invokes the hsm.DescribeInstances API asynchronously api document: https://help.aliyun.com/api/hsm/describeinstances.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DescribeRegions

func (client *Client) DescribeRegions(request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error)

DescribeRegions invokes the hsm.DescribeRegions API synchronously api document: https://help.aliyun.com/api/hsm/describeregions.html

func (*Client) DescribeRegionsWithCallback

func (client *Client) DescribeRegionsWithCallback(request *DescribeRegionsRequest, callback func(response *DescribeRegionsResponse, err error)) <-chan int

DescribeRegionsWithCallback invokes the hsm.DescribeRegions API asynchronously api document: https://help.aliyun.com/api/hsm/describeregions.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DescribeRegionsWithChan

func (client *Client) DescribeRegionsWithChan(request *DescribeRegionsRequest) (<-chan *DescribeRegionsResponse, <-chan error)

DescribeRegionsWithChan invokes the hsm.DescribeRegions API asynchronously api document: https://help.aliyun.com/api/hsm/describeregions.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ModifyInstance

func (client *Client) ModifyInstance(request *ModifyInstanceRequest) (response *ModifyInstanceResponse, err error)

ModifyInstance invokes the hsm.ModifyInstance API synchronously api document: https://help.aliyun.com/api/hsm/modifyinstance.html

func (*Client) ModifyInstanceWithCallback

func (client *Client) ModifyInstanceWithCallback(request *ModifyInstanceRequest, callback func(response *ModifyInstanceResponse, err error)) <-chan int

ModifyInstanceWithCallback invokes the hsm.ModifyInstance API asynchronously api document: https://help.aliyun.com/api/hsm/modifyinstance.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ModifyInstanceWithChan

func (client *Client) ModifyInstanceWithChan(request *ModifyInstanceRequest) (<-chan *ModifyInstanceResponse, <-chan error)

ModifyInstanceWithChan invokes the hsm.ModifyInstance API asynchronously api document: https://help.aliyun.com/api/hsm/modifyinstance.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ReleaseInstance

func (client *Client) ReleaseInstance(request *ReleaseInstanceRequest) (response *ReleaseInstanceResponse, err error)

ReleaseInstance invokes the hsm.ReleaseInstance API synchronously api document: https://help.aliyun.com/api/hsm/releaseinstance.html

func (*Client) ReleaseInstanceWithCallback

func (client *Client) ReleaseInstanceWithCallback(request *ReleaseInstanceRequest, callback func(response *ReleaseInstanceResponse, err error)) <-chan int

ReleaseInstanceWithCallback invokes the hsm.ReleaseInstance API asynchronously api document: https://help.aliyun.com/api/hsm/releaseinstance.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ReleaseInstanceWithChan

func (client *Client) ReleaseInstanceWithChan(request *ReleaseInstanceRequest) (<-chan *ReleaseInstanceResponse, <-chan error)

ReleaseInstanceWithChan invokes the hsm.ReleaseInstance API asynchronously api document: https://help.aliyun.com/api/hsm/releaseinstance.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) RenewInstance

func (client *Client) RenewInstance(request *RenewInstanceRequest) (response *RenewInstanceResponse, err error)

RenewInstance invokes the hsm.RenewInstance API synchronously api document: https://help.aliyun.com/api/hsm/renewinstance.html

func (*Client) RenewInstanceWithCallback

func (client *Client) RenewInstanceWithCallback(request *RenewInstanceRequest, callback func(response *RenewInstanceResponse, err error)) <-chan int

RenewInstanceWithCallback invokes the hsm.RenewInstance API asynchronously api document: https://help.aliyun.com/api/hsm/renewinstance.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) RenewInstanceWithChan

func (client *Client) RenewInstanceWithChan(request *RenewInstanceRequest) (<-chan *RenewInstanceResponse, <-chan error)

RenewInstanceWithChan invokes the hsm.RenewInstance API asynchronously api document: https://help.aliyun.com/api/hsm/renewinstance.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

type ConfigNetworkRequest

type ConfigNetworkRequest struct {
	*requests.RpcRequest
	VSwitchId       string           `position:"Query" name:"VSwitchId"`
	ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"`
	InstanceId      string           `position:"Query" name:"InstanceId"`
	SourceIp        string           `position:"Query" name:"SourceIp"`
	VpcId           string           `position:"Query" name:"VpcId"`
	Ip              string           `position:"Query" name:"Ip"`
}

ConfigNetworkRequest is the request struct for api ConfigNetwork

func CreateConfigNetworkRequest

func CreateConfigNetworkRequest() (request *ConfigNetworkRequest)

CreateConfigNetworkRequest creates a request to invoke ConfigNetwork API

type ConfigNetworkResponse

type ConfigNetworkResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
}

ConfigNetworkResponse is the response struct for api ConfigNetwork

func CreateConfigNetworkResponse

func CreateConfigNetworkResponse() (response *ConfigNetworkResponse)

CreateConfigNetworkResponse creates a response to parse from ConfigNetwork response

type ConfigWhiteListRequest

type ConfigWhiteListRequest struct {
	*requests.RpcRequest
	ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"`
	InstanceId      string           `position:"Query" name:"InstanceId"`
	SourceIp        string           `position:"Query" name:"SourceIp"`
	WhiteList       string           `position:"Query" name:"WhiteList"`
}

ConfigWhiteListRequest is the request struct for api ConfigWhiteList

func CreateConfigWhiteListRequest

func CreateConfigWhiteListRequest() (request *ConfigWhiteListRequest)

CreateConfigWhiteListRequest creates a request to invoke ConfigWhiteList API

type ConfigWhiteListResponse

type ConfigWhiteListResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
}

ConfigWhiteListResponse is the response struct for api ConfigWhiteList

func CreateConfigWhiteListResponse

func CreateConfigWhiteListResponse() (response *ConfigWhiteListResponse)

CreateConfigWhiteListResponse creates a response to parse from ConfigWhiteList response

type CreateInstanceRequest

type CreateInstanceRequest struct {
	*requests.RpcRequest
	Period          requests.Integer `position:"Query" name:"Period"`
	PeriodUnit      string           `position:"Query" name:"PeriodUnit"`
	ResourceOwnerId string           `position:"Query" name:"ResourceOwnerId"`
	Quantity        requests.Integer `position:"Query" name:"Quantity"`
	HsmDeviceType   string           `position:"Query" name:"HsmDeviceType"`
	ClientToken     string           `position:"Query" name:"ClientToken"`
	ZoneId          string           `position:"Query" name:"ZoneId"`
	HsmOem          string           `position:"Query" name:"HsmOem"`
}

CreateInstanceRequest is the request struct for api CreateInstance

func CreateCreateInstanceRequest

func CreateCreateInstanceRequest() (request *CreateInstanceRequest)

CreateCreateInstanceRequest creates a request to invoke CreateInstance API

type CreateInstanceResponse

type CreateInstanceResponse struct {
	*responses.BaseResponse
	RequestId   string   `json:"RequestId" xml:"RequestId"`
	InstanceIds []string `json:"InstanceIds" xml:"InstanceIds"`
}

CreateInstanceResponse is the response struct for api CreateInstance

func CreateCreateInstanceResponse

func CreateCreateInstanceResponse() (response *CreateInstanceResponse)

CreateCreateInstanceResponse creates a response to parse from CreateInstance response

type DescribeInstancesRequest

type DescribeInstancesRequest struct {
	*requests.RpcRequest
	ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"`
	InstanceId      string           `position:"Query" name:"InstanceId"`
	SourceIp        string           `position:"Query" name:"SourceIp"`
	PageSize        requests.Integer `position:"Query" name:"PageSize"`
	CurrentPage     requests.Integer `position:"Query" name:"CurrentPage"`
	HsmStatus       requests.Integer `position:"Query" name:"HsmStatus"`
}

DescribeInstancesRequest is the request struct for api DescribeInstances

func CreateDescribeInstancesRequest

func CreateDescribeInstancesRequest() (request *DescribeInstancesRequest)

CreateDescribeInstancesRequest creates a request to invoke DescribeInstances API

type DescribeInstancesResponse

type DescribeInstancesResponse struct {
	*responses.BaseResponse
	RequestId  string     `json:"RequestId" xml:"RequestId"`
	TotalCount int        `json:"TotalCount" xml:"TotalCount"`
	Instances  []Instance `json:"Instances" xml:"Instances"`
}

DescribeInstancesResponse is the response struct for api DescribeInstances

func CreateDescribeInstancesResponse

func CreateDescribeInstancesResponse() (response *DescribeInstancesResponse)

CreateDescribeInstancesResponse creates a response to parse from DescribeInstances response

type DescribeRegionsRequest

type DescribeRegionsRequest struct {
	*requests.RpcRequest
	ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"`
	SourceIp        string           `position:"Query" name:"SourceIp"`
}

DescribeRegionsRequest is the request struct for api DescribeRegions

func CreateDescribeRegionsRequest

func CreateDescribeRegionsRequest() (request *DescribeRegionsRequest)

CreateDescribeRegionsRequest creates a request to invoke DescribeRegions API

type DescribeRegionsResponse

type DescribeRegionsResponse struct {
	*responses.BaseResponse
	RequestId string   `json:"RequestId" xml:"RequestId"`
	Regions   []Region `json:"Regions" xml:"Regions"`
}

DescribeRegionsResponse is the response struct for api DescribeRegions

func CreateDescribeRegionsResponse

func CreateDescribeRegionsResponse() (response *DescribeRegionsResponse)

CreateDescribeRegionsResponse creates a response to parse from DescribeRegions response

type Instance

type Instance struct {
	InstanceId    string   `json:"InstanceId" xml:"InstanceId"`
	RegionId      string   `json:"RegionId" xml:"RegionId"`
	ZoneId        string   `json:"ZoneId" xml:"ZoneId"`
	HsmStatus     int      `json:"HsmStatus" xml:"HsmStatus"`
	HsmOem        string   `json:"HsmOem" xml:"HsmOem"`
	HsmDeviceType string   `json:"HsmDeviceType" xml:"HsmDeviceType"`
	VpcId         string   `json:"VpcId" xml:"VpcId"`
	VswitchId     string   `json:"VswitchId" xml:"VswitchId"`
	Ip            string   `json:"Ip" xml:"Ip"`
	Remark        string   `json:"Remark" xml:"Remark"`
	ExpiredTime   int      `json:"ExpiredTime" xml:"ExpiredTime"`
	CreateTime    int      `json:"CreateTime" xml:"CreateTime"`
	WhiteList     []string `json:"WhiteList" xml:"WhiteList"`
}

Instance is a nested struct in hsm response

type InstanceIds

type InstanceIds struct {
	InstanceId []string `json:"InstanceId" xml:"InstanceId"`
}

InstanceIds is a nested struct in hsm response

type Instances

type Instances struct {
	Instance []Instance `json:"Instance" xml:"Instance"`
}

Instances is a nested struct in hsm response

type ModifyInstanceRequest

type ModifyInstanceRequest struct {
	*requests.RpcRequest
	ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"`
	InstanceId      string           `position:"Query" name:"InstanceId"`
	SourceIp        string           `position:"Query" name:"SourceIp"`
	Remark          string           `position:"Query" name:"Remark"`
}

ModifyInstanceRequest is the request struct for api ModifyInstance

func CreateModifyInstanceRequest

func CreateModifyInstanceRequest() (request *ModifyInstanceRequest)

CreateModifyInstanceRequest creates a request to invoke ModifyInstance API

type ModifyInstanceResponse

type ModifyInstanceResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
}

ModifyInstanceResponse is the response struct for api ModifyInstance

func CreateModifyInstanceResponse

func CreateModifyInstanceResponse() (response *ModifyInstanceResponse)

CreateModifyInstanceResponse creates a response to parse from ModifyInstance response

type Region

type Region struct {
	RegionId string `json:"RegionId" xml:"RegionId"`
	Zones    []Zone `json:"Zones" xml:"Zones"`
}

Region is a nested struct in hsm response

type Regions

type Regions struct {
	Region []Region `json:"Region" xml:"Region"`
}

Regions is a nested struct in hsm response

type ReleaseInstanceRequest

type ReleaseInstanceRequest struct {
	*requests.RpcRequest
	ResourceOwnerId string `position:"Query" name:"ResourceOwnerId"`
	InstanceId      string `position:"Query" name:"InstanceId"`
}

ReleaseInstanceRequest is the request struct for api ReleaseInstance

func CreateReleaseInstanceRequest

func CreateReleaseInstanceRequest() (request *ReleaseInstanceRequest)

CreateReleaseInstanceRequest creates a request to invoke ReleaseInstance API

type ReleaseInstanceResponse

type ReleaseInstanceResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
}

ReleaseInstanceResponse is the response struct for api ReleaseInstance

func CreateReleaseInstanceResponse

func CreateReleaseInstanceResponse() (response *ReleaseInstanceResponse)

CreateReleaseInstanceResponse creates a response to parse from ReleaseInstance response

type RenewInstanceRequest

type RenewInstanceRequest struct {
	*requests.RpcRequest
	Period          requests.Integer `position:"Query" name:"Period"`
	PeriodUnit      string           `position:"Query" name:"PeriodUnit"`
	ResourceOwnerId string           `position:"Query" name:"ResourceOwnerId"`
	InstanceId      string           `position:"Query" name:"InstanceId"`
	ClientToken     string           `position:"Query" name:"ClientToken"`
}

RenewInstanceRequest is the request struct for api RenewInstance

func CreateRenewInstanceRequest

func CreateRenewInstanceRequest() (request *RenewInstanceRequest)

CreateRenewInstanceRequest creates a request to invoke RenewInstance API

type RenewInstanceResponse

type RenewInstanceResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
}

RenewInstanceResponse is the response struct for api RenewInstance

func CreateRenewInstanceResponse

func CreateRenewInstanceResponse() (response *RenewInstanceResponse)

CreateRenewInstanceResponse creates a response to parse from RenewInstance response

type WhiteList

type WhiteList struct {
	WhiteListItem []string `json:"WhiteListItem" xml:"WhiteListItem"`
}

WhiteList is a nested struct in hsm response

type Zone

type Zone struct {
	ZoneId string `json:"ZoneId" xml:"ZoneId"`
}

Zone is a nested struct in hsm response

type Zones

type Zones struct {
	Zone []Zone `json:"Zone" xml:"Zone"`
}

Zones is a nested struct in hsm response

Jump to

Keyboard shortcuts

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