Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Disk ¶
type Disk struct { // Then name of the disk Name string // The GCP resource ID of the disk ID string // The list of snapshots of the disk Snapshots []compute.Snapshot }
Disk is used to store basic information about a disk and its snapshots
type Disks ¶
type Disks []Disk
Disks contains an array of disks to be processed
func (*Disks) AddSnapshot ¶
AddSnapshot allows to add a Snapshot to a Disks collection if the snapshot refers to a disk that is already present in the collection, a snapshot will be added to that disk. If the referred disk is not in the collection, it will be added.
Click to show internal directories.
Click to hide internal directories.