types

package
v0.0.0-...-90be22a Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ENIStatusInUse     string = "InUse"
	ENIStatusAvailable string = "Available"
)
View Source
const ResourceName = "aliyun/erdma"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Region                    string            `json:"region"`
	ManageNonOwnedERIs        bool              `json:"manageNonOwnedENIs"`
	ControllerNamespace       string            `json:"controllerNamespace"`
	ControllerName            string            `json:"controllerName"`
	ClusterDomain             string            `json:"clusterDomain"`
	CertDir                   string            `json:"certDir"`
	EnableDevicePlugin        *bool             `json:"enableDevicePlugin"`
	EnableWebhook             *bool             `json:"enableWebhook"`
	SMCInitImage              string            `json:"smcInitImage"`
	EnableInitContainerInject *bool             `json:"enableInitContainerInject"`
	NodeSelector              map[string]string `json:"nodeSelector"`
}

type Credentials

type Credentials struct {
	Type            string    `json:"type"`
	AccessKeyID     Sensitive `json:"accessKeyID"`
	AccessKeySecret Sensitive `json:"accessKeySecret"`
	StsSecretNS     string    `json:"stsSecretNS"`
	StsSecretName   string    `json:"stsSecretName"`
}

type ERI

type ERI struct {
	ID           string
	IsPrimaryENI bool
	MAC          string
	InstanceID   string
	CardIndex    int
	QueuePair    int
}

type ERdmaCAP

type ERdmaCAP uint32
const (
	// nolint
	ERDMA_CAP_RDMA_CM ERdmaCAP = 1 << iota
	ERDMA_CAP_SMC_R
	ERDMA_CAP_VERBS
	ERDMA_CAP_GDR
	ERDMA_CAP_OOB
)

func (*ERdmaCAP) String

func (cap *ERdmaCAP) String() string

type ERdmaDeviceInfo

type ERdmaDeviceInfo struct {
	Name         string
	MAC          string
	DevPaths     []string
	NUMA         int64
	Capabilities ERdmaCAP
}

type Sensitive

type Sensitive string

func (Sensitive) String

func (c Sensitive) String() string

Jump to

Keyboard shortcuts

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