Documentation ¶
Index ¶
- Constants
- type Controller
- func (ctr Controller) ConvertDiskToLocalDisk(disk manager.DiskInfo) (ld v1alpha1.LocalDisk)
- func (ctr Controller) CreateLocalDisk(ld v1alpha1.LocalDisk) error
- func (ctr Controller) GenLocalDiskName(disk manager.DiskInfo) string
- func (ctr Controller) GetLocalDisk(key client.ObjectKey) (v1alpha1.LocalDisk, error)
- func (ctr Controller) IsAlreadyExist(ld v1alpha1.LocalDisk) bool
- func (ctr Controller) UpdateLocalDiskAttr(newLocalDisk v1alpha1.LocalDisk) error
Constants ¶
View Source
const ( APIVersion = "v1alpha1" LocalDiskKind = "localDisk" LocalDiskAPIVersion = "localdiskmanager.hwameistor" + "/" + APIVersion )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct { // Mgr k8s runtime controller Mgr crmanager.Manager // Namespace is the namespace in which v1alpha1 is installed NameSpace string // NodeName is the node in which v1alpha1 is installed NodeName string }
Controller The smallest unit to be processed here should be the disk. The main thing to do is how to convert the local disk into resources in the cluster
func NewController ¶
func NewController(mgr crmanager.Manager) Controller
func (Controller) ConvertDiskToLocalDisk ¶
func (ctr Controller) ConvertDiskToLocalDisk(disk manager.DiskInfo) (ld v1alpha1.LocalDisk)
func (Controller) CreateLocalDisk ¶
func (ctr Controller) CreateLocalDisk(ld v1alpha1.LocalDisk) error
func (Controller) GenLocalDiskName ¶
func (ctr Controller) GenLocalDiskName(disk manager.DiskInfo) string
func (Controller) GetLocalDisk ¶
func (Controller) IsAlreadyExist ¶
func (ctr Controller) IsAlreadyExist(ld v1alpha1.LocalDisk) bool
func (Controller) UpdateLocalDiskAttr ¶ added in v0.9.3
func (ctr Controller) UpdateLocalDiskAttr(newLocalDisk v1alpha1.LocalDisk) error
Click to show internal directories.
Click to hide internal directories.