client

package
v0.0.0-...-ec72bf4 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IntTypeERI = string(ccev2.ENIForERI)
	IntTypeHPC = string(ccev2.ENIForHPC)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EniResult

type EniResult struct {
	Type         string
	Id           string
	MacAddress   string
	VpcID        string
	SubnetID     string
	ZoneName     string
	PrivateIpSet []PrivateIP
}

type EriClient

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

func NewEriClient

func NewEriClient(cloud bceclound.Interface) *EriClient

func (*EriClient) AddPrivateIP

func (c *EriClient) AddPrivateIP(ctx context.Context, eniID, privateIP string) (string, error)

func (*EriClient) BatchAddPrivateIP

func (c *EriClient) BatchAddPrivateIP(ctx context.Context, eniID string, privateIPs []string, count int) ([]string, error)

func (*EriClient) BatchDeletePrivateIP

func (c *EriClient) BatchDeletePrivateIP(ctx context.Context, eniID string, privateIPs []string) error

func (*EriClient) DeletePrivateIP

func (c *EriClient) DeletePrivateIP(ctx context.Context, eniID string, privateIP string) error

func (*EriClient) GetRDMAIntType

func (c *EriClient) GetRDMAIntType() string

func (*EriClient) ListEnis

func (c *EriClient) ListEnis(ctx context.Context, vpcID, instanceID string) ([]EniResult, error)

type HpcClient

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

func NewHpcClient

func NewHpcClient(cloud bceclound.Interface) *HpcClient

func (*HpcClient) AddPrivateIP

func (c *HpcClient) AddPrivateIP(ctx context.Context, eniID, _ string) (string, error)

func (*HpcClient) BatchAddPrivateIP

func (c *HpcClient) BatchAddPrivateIP(ctx context.Context, eniID string, privateIPs []string, count int) ([]string, error)

func (*HpcClient) BatchDeletePrivateIP

func (c *HpcClient) BatchDeletePrivateIP(ctx context.Context, eniID string, privateIPs []string) error

func (*HpcClient) DeletePrivateIP

func (c *HpcClient) DeletePrivateIP(ctx context.Context, eniID, privateIP string) error

func (*HpcClient) GetRDMAIntType

func (c *HpcClient) GetRDMAIntType() string

func (*HpcClient) ListEnis

func (c *HpcClient) ListEnis(ctx context.Context, _, instanceID string) ([]EniResult, error)

type IaaSClient

type IaaSClient interface {
	ListEnis(ctx context.Context, vpcID, instanceID string) ([]EniResult, error)
	AddPrivateIP(ctx context.Context, eniID, privateIP string) (string, error)
	DeletePrivateIP(ctx context.Context, eniID, privateIP string) error
	BatchAddPrivateIP(ctx context.Context, eniID string, privateIPs []string, count int) ([]string, error)
	BatchDeletePrivateIP(ctx context.Context, eniID string, privateIPs []string) error

	GetRDMAIntType() string
}

type PrivateIP

type PrivateIP struct {
	Primary          bool
	PrivateIpAddress string
}

Jump to

Keyboard shortcuts

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