client

package
v1.9.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EniResult

type EniResult struct {
	Type         string
	EniID        string
	MacAddress   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) DeletePrivateIP

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

func (*EriClient) GetMwepType

func (c *EriClient) GetMwepType() string

func (*EriClient) ListEnis

func (c *EriClient) ListEnis(ctx context.Context, vpcID, 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

	GetMwepType() string
}

type PrivateIP

type PrivateIP struct {
	Primary          bool
	PrivateIPAddress string
}

type RoCEClient

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

func NewRoCEClient

func NewRoCEClient(cloud bceclound.Interface) *RoCEClient

func (*RoCEClient) AddPrivateIP

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

func (*RoCEClient) DeletePrivateIP

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

func (*RoCEClient) GetMwepType

func (c *RoCEClient) GetMwepType() string

func (*RoCEClient) ListEnis

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

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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