gce_pd

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2018 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Package gce_pd contains the internal representation of GCE PersistentDisk volumes.

Index

Constants

View Source
const (
	OneCPU         = 1
	EightCPUs      = 8
	VolumeLimit16  = 16
	VolumeLimit32  = 32
	VolumeLimit64  = 64
	VolumeLimit128 = 128
)

The constants are used to map from the machine type (number of CPUs) to the limit of persistent disks that can be attached to an instance. Please refer to gcloud doc https://cloud.google.com/compute/docs/disks/#increased_persistent_disk_limits

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) CreateVolume added in v1.2.0

func (gceutil *GCEDiskUtil) CreateVolume(c *gcePersistentDiskProvisioner) (string, int, map[string]string, string, error)

CreateVolume creates a GCE PD. Returns: gcePDName, volumeSizeGB, labels, fsType, error

func (*GCEDiskUtil) DeleteVolume added in v1.2.0

func (util *GCEDiskUtil) DeleteVolume(d *gcePersistentDiskDeleter) error

Jump to

Keyboard shortcuts

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