models

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	K8sCsiName = "Kubernetes CSI"

	// ISCSI definitions
	FsTypeExt4       = "ext4"
	FsTypeBtrfs      = "btrfs"
	LunTypeFile      = "FILE"
	LunTypeThin      = "THIN"
	LunTypeAdv       = "ADV"
	LunTypeBlun      = "BLUN"       // thin provision, mapped to type 263
	LunTypeBlunThick = "BLUN_THICK" // thick provision, mapped to type 259
	MaxIqnLen        = 128

	// Share definitions
	MaxShareLen             = 32
	MaxShareDescLen         = 64
	UserGroupTypeLocalUser  = "local_user"
	UserGroupTypeLocalGroup = "local_group"
	UserGroupTypeSystem     = "system"

	// CSI definitions
	TargetPrefix            = "k8s-csi"
	LunPrefix               = "k8s-csi"
	IqnPrefix               = "iqn.2000-01.com.synology:"
	SharePrefix             = "k8s-csi"
	ShareSnapshotDescPrefix = "(Do not change)"
)

Variables

This section is empty.

Functions

func GenLunName added in v1.1.0

func GenLunName(volName string) string

func GenShareName added in v1.1.0

func GenShareName(volName string) string

Types

type BySnapshotAndParentUuid added in v1.1.0

type BySnapshotAndParentUuid []*K8sSnapshotRespSpec

func (BySnapshotAndParentUuid) Len added in v1.1.0

func (a BySnapshotAndParentUuid) Len() int

func (BySnapshotAndParentUuid) Less added in v1.1.0

func (a BySnapshotAndParentUuid) Less(i, j int) bool

func (BySnapshotAndParentUuid) Swap added in v1.1.0

func (a BySnapshotAndParentUuid) Swap(i, j int)

type ByVolumeId added in v1.1.0

type ByVolumeId []*K8sVolumeRespSpec

func (ByVolumeId) Len added in v1.1.0

func (a ByVolumeId) Len() int

func (ByVolumeId) Less added in v1.1.0

func (a ByVolumeId) Less(i, j int) bool

func (ByVolumeId) Swap added in v1.1.0

func (a ByVolumeId) Swap(i, j int)

type CreateK8sVolumeSnapshotSpec

type CreateK8sVolumeSnapshotSpec struct {
	K8sVolumeId  string
	SnapshotName string
	Description  string
	TakenBy      string
	IsLocked     bool
}

type CreateK8sVolumeSpec

type CreateK8sVolumeSpec struct {
	DsmIp            string
	K8sVolumeName    string
	LunName          string
	LunDescription   string
	ShareName        string
	Location         string
	Size             int64
	Type             string
	ThinProvisioning bool
	TargetName       string
	MultipleSession  bool
	SourceSnapshotId string
	SourceVolumeId   string
	Protocol         string
}

type K8sSnapshotRespSpec added in v1.1.0

type K8sSnapshotRespSpec struct {
	DsmIp       string
	Name        string
	Uuid        string
	ParentName  string
	ParentUuid  string
	Status      string
	SizeInBytes int64
	CreateTime  int64
	Time        string // only for share snapshot delete
	RootPath    string
	Protocol    string
}

type K8sVolumeRespSpec added in v1.1.0

type K8sVolumeRespSpec struct {
	DsmIp       string
	VolumeId    string
	SizeInBytes int64
	Location    string
	Name        string
	Source      string
	Lun         webapi.LunInfo
	Target      webapi.TargetInfo
	Share       webapi.ShareInfo
	Protocol    string
}

type NodeStageVolumeSpec added in v1.1.0

type NodeStageVolumeSpec struct {
	VolumeId          string
	StagingTargetPath string
	VolumeCapability  *csi.VolumeCapability
	Dsm               string
	Source            string
	FormatOptions     string
}

Jump to

Keyboard shortcuts

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