hpc

package
v0.0.0-...-686bfca Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	URI_PREFIX = bce.URI_PREFIX + "v1"

	DEFAULT_ENI = "bcc." + bce.DEFAULT_REGION + ".baidubce.com"

	REQUEST_ENI_URL = "/eni/hpc"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchAddPrivateIPResult

type BatchAddPrivateIPResult struct {
	PrivateIPAddresses []string `json:"privateIpAddresses"`
}

type Client

type Client struct {
	*bce.BceClient
}

Client of ENI service is a kind of BceClient, so derived from BceClient

func NewClient

func NewClient(ak, sk, endPoint string) (*Client, error)

func (*Client) BatchAddPrivateIPByHpc

func (c *Client) BatchAddPrivateIPByHpc(args *EniBatchPrivateIPArgs) (*BatchAddPrivateIPResult, error)

func (*Client) BatchDeletePrivateIPByHpc

func (c *Client) BatchDeletePrivateIPByHpc(args *EniBatchDeleteIPArgs) error

func (*Client) GetHPCEniID

func (c *Client) GetHPCEniID(instanceID string) (*EniList, error)

type EniBatchDeleteIPArgs

type EniBatchDeleteIPArgs struct {
	EniID              string   `json:"eniId"`
	PrivateIPAddresses []string `json:"privateIpAddresses,omitempty"`
}

type EniBatchPrivateIPArgs

type EniBatchPrivateIPArgs struct {
	EniID                 string `json:"eniId"`
	PrivateIPAddressCount int    `json:"privateIpAddressCount,omitempty"`
}

type EniList

type EniList struct {
	Result      []Result `json:"result"`
	Marker      string   `json:"marker"`
	IsTruncated bool     `json:"isTruncated"`
	NextMarker  string   `json:"nextMarker"`
	MaxKeys     int      `json:"maxKeys"`
}

type Interface

type Interface interface {
}

type PrivateIP

type PrivateIP struct {
	Primary          bool   `json:"primary"`
	PrivateIPAddress string `json:"privateIpAddress"`
}

type Result

type Result struct {
	EniID        string      `json:"eniId"`
	Name         string      `json:"name"`
	Description  string      `json:"description"`
	InstanceID   string      `json:"instanceId"`
	MacAddress   string      `json:"macAddress"`
	Status       string      `json:"status"`
	PrivateIPSet []PrivateIP `json:"privateIpSet"`
	CreatedTime  string      `json:"createdTime"`
}

Jump to

Keyboard shortcuts

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