common

package
v1.16.5 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: Apache-2.0 Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PodENIPreStartDone = make(chan struct{})

Functions

func Attach added in v1.14.3

func Attach(ctx context.Context, c client.Client, option *AttachOption) error

func Delete added in v1.14.3

func Delete(ctx context.Context, c client.Client, option *DeleteOption) error

func Detach added in v1.14.3

func Detach(ctx context.Context, c client.Client, option *DetachOption) error

func ToNetworkInterfaceCR added in v1.14.3

func ToNetworkInterfaceCR(eni *aliyunClient.NetworkInterface) *v1beta1.NetworkInterface

func WaitCreated added in v1.14.3

func WaitCreated[T client.Object](ctx context.Context, c client.Client, obj T, namespace, name string) error

func WaitDeleted added in v1.14.3

func WaitDeleted[T client.Object](ctx context.Context, c client.Client, obj T, namespace, name string)

func WaitRVChanged added in v1.14.3

func WaitRVChanged[T client.Object](ctx context.Context, c client.Client, obj T, namespace, name string, currentRV string) error

func WaitStatus added in v1.14.3

func WaitStatus(ctx context.Context, c client.Client, option *DescribeOption) (*v1beta1.NetworkInterface, error)

func WithCtx added in v1.15.0

func WithCtx(ctx context.Context, alloc *v1beta1.Allocation) context.Context

WithCtx extract fields from v1beta1.Allocation and set to context.Context

Types

type AttachOption added in v1.14.3

type AttachOption struct {
	InstanceID         string
	NetworkInterfaceID string
	TrunkENIID         string
	NetworkCardIndex   *int
	NodeName           string
}

type CreateOption added in v1.14.3

type CreateOption struct {
	Trunk            bool
	TrafficMode      string
	VSwitchID        string
	SecurityGroupIDs []string
	ResourceGroupID  string
	RDMAQPCount      int
	IPCount          int
	IPv6Count        int
	Tags             map[string]string

	PodName      string
	PodNamespace string
}

type DeleteOption added in v1.14.3

type DeleteOption struct {
	NetworkInterfaceID string
	IgnoreCache        bool

	Obj *v1beta1.NetworkInterface
}

type DescribeOption added in v1.14.3

type DescribeOption struct {
	NetworkInterfaceID string
	IgnoreNotExist     bool

	ExpectPhase *v1beta1.Phase
	BackOff     backoff.ExtendedBackoff
}

type DetachOption added in v1.14.3

type DetachOption struct {
	NetworkInterfaceID string
	IgnoreCache        bool
}

type NodeInfo added in v1.1.1

type NodeInfo struct {
	NodeName     string
	InstanceID   string
	InstanceType string
	ZoneID       string
	TrunkENIID   string
	RegionID     string
}

NodeInfo is the type describe the eni config for this pod

func NewNodeInfo added in v1.1.1

func NewNodeInfo(node *corev1.Node) (*NodeInfo, error)

Jump to

Keyboard shortcuts

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