constants

package
v4.6.0 Latest Latest
Warning

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

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

Documentation

Overview

Package constants is related with provider constants

Package constants is storage-related constants

Index

Constants

View Source
const (
	// ProviderVersion defines provider version
	ProviderVersion = "4.4.0"
	// ProviderVendorName defines provider vendor name
	ProviderVendorName = "Huawei"
	// EndpointDirPermission defines permission of endpoint dir
	EndpointDirPermission = 0755

	// CentralizedStorageNas is the centralized storage nas type
	CentralizedStorageNas = "centralized-storage-nas"

	// LicenseValid is a valid license
	LicenseValid = 1
	// LicenseExpired is an expired license
	LicenseExpired = 2

	// NamespaceEnv is driver namespace env
	NamespaceEnv = "CSI_NAMESPACE"
	// DefaultNamespace is driver default namespace
	DefaultNamespace = "huawei-csi"

	// Ext2 defines the fileType ext2
	Ext2 FileType = "ext2"
	// Ext3 defines the fileType ext3
	Ext3 FileType = "ext3"
	// Ext4 defines the fileType ext4
	Ext4 FileType = "ext4"
	// Xfs defines the fileType xfs
	Xfs FileType = "xfs"

	// NodeNameEnv is defined in helm file
	NodeNameEnv = "CSI_NODENAME"

	// DefaultDriverName is default huawei csi driver name
	DefaultDriverName = "csi.huawei.com"
	// DefaultTopoDriverName is default topo driver name
	DefaultTopoDriverName = "cmi.huawei.com"

	// PVKind is defined by k8s
	PVKind = "PersistentVolume"
	// PodKind is defined by k8s
	PodKind = "Pod"
	// TopologyKind is topology resource kind
	TopologyKind = "ResourceTopology"

	// KubernetesV1 is kubernetes v1 api version
	KubernetesV1 = "v1"
	// XuanwuV1 is xuanwu v1 api version
	XuanwuV1 = "xuanwu.huawei.io/v1"

	// NotMountStr defines not mount str
	NotMountStr = "not mounted"

	// DefaultKubeletVolumeDevicesDirName default kubelet volumeDevice name
	DefaultKubeletVolumeDevicesDirName = "/volumeDevices/"

	// AllocationUnitBytes default is 512
	AllocationUnitBytes = 512
)
View Source
const (
	// OceanStorDoradoV6 Dorado V6 and OceanStor V6 are exactly the same
	OceanStorDoradoV6 = "DoradoV6"
	// OceanStorDoradoV3 is dorado v3
	OceanStorDoradoV3 = "DoradoV3"
	// OceanStorV3 is oceanstor v3
	OceanStorV3 = "OceanStorV3"
	// OceanStorV5 is oceanstor v5
	OceanStorV5 = "OceanStorV5"

	// DoradoV615 is Dorado V6.1.5
	DoradoV615 = "6.1.5"

	// MinVersionSupportLabel version gte 6.1.7 support label function
	MinVersionSupportLabel = "6.1.7"
	// OceanStorNas storage type is oceanstor-nas
	OceanStorNas = "oceanstor-nas"
)

Variables

View Source
var (
	// ErrTimeout defines the timeout error
	ErrTimeout = errors.New("timeout")
)

Functions

This section is empty.

Types

type BackendCapability

type BackendCapability string

BackendCapability backend capability

var SupportApplicationType BackendCapability = "SupportApplicationType"

SupportApplicationType defines backend capability SupportApplicationType

var SupportClone BackendCapability = "SupportClone"

SupportClone defines backend capability SupportClone

var SupportLabel BackendCapability = "SupportLabel"

SupportLabel defines backend capability SupportLabel

var SupportMetro BackendCapability = "SupportMetro"

SupportMetro defines backend capability SupportMetro

var SupportMetroNAS BackendCapability = "SupportMetroNAS"

SupportMetroNAS defines backend capability SupportMetroNAS

var SupportQoS BackendCapability = "SupportQoS"

SupportQoS defines backend capability SupportQoS

var SupportQuota BackendCapability = "SupportQuota"

SupportQuota defines backend capability SupportQuota

var SupportReplication BackendCapability = "SupportReplication"

SupportReplication defines backend capability SupportReplication

var SupportThick BackendCapability = "SupportThick"

SupportThick defines backend capability SupportThick

var SupportThin BackendCapability = "SupportThin"

SupportThin defines backend capability SupportThin

type DRCSIConfig

type DRCSIConfig struct {
	Backends map[string]interface{} `json:"backends"`
}

DRCSIConfig contains storage normal configuration

type DRCSISecret

type DRCSISecret struct {
	Secrets map[string]interface{} `json:"secrets"`
}

DRCSISecret contains storage sensitive configuration

type FileType

type FileType string

FileType defines file type

Jump to

Keyboard shortcuts

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