lighthouse

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const HOST = "lighthouse.tencentcloudapi.com"
View Source
const SERVICE = "lighthouse"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// *tencentcloud.TencentCloudClientConfig
	SecretId  string
	SecretKey string
	Region    string
}

type DescribeInstancesConditions

type DescribeInstancesConditions struct {
	Offset int
	Limit  int
}

type DescribeInstancesRawResponse

type DescribeInstancesRawResponse struct {
	Response DescribeInstancesResponse
}

type DescribeInstancesResponse

type DescribeInstancesResponse struct {
	InstanceSet []Instance

	RequestId  string `json:"RequestId"`
	TotalCount int    `json:"TotalCount"`

	// @TODO
	Raw []byte
}

type Instance

type Instance struct {
	CPU         int    `json:"CPU"`
	CamRoleName string `json:"CamRoleName"`
	CreatedTime string `json:"CreatedTime"`
	// DataRisks					[]string `json:"DataRisks"`
	DeicayedClusterId      string `json:"DeicayedClusterId"`
	DefaultLoginPort       int    `json:"DefaultLoginPort"`
	DefaultLoginUser       string `json:"DefaultLoginUser"`
	DisableApiTermination  bool   `json:"DisableApiTermination"`
	DisasterRecoverGroupId string `json:"DisasterRecoverGroupId"`
	// ExpiredTime           time.Time `json:"ExpiredTime"`
	HpcClusterId string `json:"HpcClusterId"`
	// IPv6Addresses 				[]string `json:"IPv6Addresses"`
	ImageId            string `json:"ImageId"`
	InstanceChargeType string `json:"InstanceChargeType"`
	InstanceId         string `json:"InstanceId"`
	InstanceName       string `json:"InstanceName"`
	InstanceState      string `json:"InstanceState"`
	InstanceType       string `json:"InstanceType"`
	InternetAccessible struct {
		InternetChargeType      string `json:"InternetChargeType"`
		InternetMaxBandwidthOut int    `json:"InternetMaxBandwidthOut"`
	}
	IsolatedSource string `json:"IsolatedSource"`
	// LatestOperation 			string `json:"LatestOperation"`
	// LatestOperationRequestId 	string `json:"LatestOperationRequestId"`
	// LatestOperationState 		string `json:"LatestOperationState"`
	LoginSettings struct {
		KeyIds []string `json:"KeyIds"`
	}
	Memory    int    `json:"Memory"`
	OsName    string `json:"OsName"`
	Placement struct {
		// HostId 					string `json:"HostId"`
		ProjectId int    `json:"ProjectId"`
		Zone      string `json:"Zone"`
	}
	PlatformProjectId string   `json:"PlatformProjectId"`
	PrivateAddresses  []string `json:"PrivateAddresses"`
	PublicAddresses   []string `json:"PublicAddresses"`
	// RdmaIpAddresses 				[]string `json:"RdmaIpAddresses"`
	// RenewFlag 					string `json:"RenewFlag"`
	RestrictState    string   `json:"RestrictState"`
	SecurityGroupIds []string `json:"SecurityGroupIds"`
	StopChargingMode string   `json:"StopChargingMode"`
	SystemDisk       struct {
		// CdcId 						string `json:"CdcId"`
		DiskId   string `json:"DiskId"`
		DiskSize int    `json:"DiskSize"`
		DiskType string `json:"DiskType"`
		Encrypt  bool   `json:"Encrypt"`
		// KmsKeyId 					string `json:"KmsKeyId"`
		ThroughputPerformance int `json:"ThroughputPerformance"`
	}
	// Tags 						[]string `json:"Tags"`
	Uuid                string `json:"Uuid"`
	VirtualPrivateCloud struct {
		AsVpcGateway bool   `json:"AsVpcGateway"`
		SubnetId     string `json:"SubnetId"`
		VpcId        string `json:"VpcId"`
	}
}

type LighthouseService

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

func New

func New(config *Config) *LighthouseService

func (*LighthouseService) DescribeInstances

func (cs *LighthouseService) DescribeInstances(conditions ...*DescribeInstancesConditions) (*DescribeInstancesResponse, error)

func (*LighthouseService) DescribeInstancesPost

func (cs *LighthouseService) DescribeInstancesPost(conditions map[string]interface{}) (*DescribeInstancesResponse, error)

Jump to

Keyboard shortcuts

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