Documentation ¶
Index ¶
- Constants
- func BytesToGb(bytes int64) int64
- func CreateNodeID(project, zone, name string) string
- func GbToBytes(Gb int64) int64
- func GenerateUnderspecifiedVolumeID(diskName string, isZonal bool) string
- func GetDeviceName(volKey *meta.Key) (string, error)
- func GetRegionFromZones(zones []string) (string, error)
- func NodeIDToZoneAndName(id string) (string, string, error)
- func SnapshotIDToKey(id string) (string, error)
- func VolumeIDToKey(id string) (*meta.Key, error)
Constants ¶
View Source
const ( // Keys for Storage Class Parameters ParameterKeyType = "type" ParameterKeyReplicationType = "replication-type" ParameterKeyDiskEncryptionKmsKey = "disk-encryption-kms-key" // Keys for Topology. This key will be shared amongst drivers from GCP TopologyKeyZone = "topology.gke.io/zone" // VolumeAttributes for Partition VolumeAttributePartition = "partition" UnspecifiedValue = "UNSPECIFIED" )
Variables ¶
This section is empty.
Functions ¶
func CreateNodeID ¶
func GetRegionFromZones ¶
func SnapshotIDToKey ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.