Documentation ¶
Overview ¶
Package gce_pd contains the internal representation of GCE PersistentDisk volumes.
Index ¶
- func ProbeVolumePlugins() []volume.VolumePlugin
- type GCEDiskUtil
- func (diskUtil *GCEDiskUtil) AttachAndMountDisk(b *gcePersistentDiskBuilder, globalPDPath string) error
- func (gceutil *GCEDiskUtil) CreateVolume(c *gcePersistentDiskProvisioner) (string, int, map[string]string, error)
- func (util *GCEDiskUtil) DeleteVolume(d *gcePersistentDiskDeleter) error
- func (util *GCEDiskUtil) DetachDisk(c *gcePersistentDiskCleaner) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProbeVolumePlugins ¶
func ProbeVolumePlugins() []volume.VolumePlugin
This is the primary entrypoint for volume plugins.
Types ¶
type GCEDiskUtil ¶
type GCEDiskUtil struct{}
func (*GCEDiskUtil) AttachAndMountDisk ¶
func (diskUtil *GCEDiskUtil) AttachAndMountDisk(b *gcePersistentDiskBuilder, globalPDPath string) error
Attaches a disk specified by a volume.GCEPersistentDisk to the current kubelet. Mounts the disk to it's global path.
func (*GCEDiskUtil) CreateVolume ¶ added in v1.2.0
func (gceutil *GCEDiskUtil) CreateVolume(c *gcePersistentDiskProvisioner) (string, int, map[string]string, error)
CreateVolume creates a GCE PD. Returns: volumeID, volumeSizeGB, labels, error
func (*GCEDiskUtil) DeleteVolume ¶ added in v1.2.0
func (util *GCEDiskUtil) DeleteVolume(d *gcePersistentDiskDeleter) error
func (*GCEDiskUtil) DetachDisk ¶
func (util *GCEDiskUtil) DetachDisk(c *gcePersistentDiskCleaner) error
Unmounts the device and detaches the disk from the kubelet's host machine.
Click to show internal directories.
Click to hide internal directories.