Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Output ¶
type Output struct { // DiskNames optionally contains the names of the disks copied to a target project. DiskNames []string }
Output contains the output of this function.
func Execute ¶
Execute creates a snapshot of an instance's disk.
For a given supported finding pull each disk associated with the affected instance.
- Check to make sure we haven't created a snapshot for this finding recently.
- Create a new snapshot for each disk labeled with the finding and current time.
In order for the snapshot to be create the service account must be granted the correct role on the affected project. At this time this grant is defined per project but should be changed to support folder and organization level grants.
Click to show internal directories.
Click to hide internal directories.