const VolumeGroupSnapshotAPIGroup … const VolumeGroupSnapshotAPIVersion … var VolumeGroupSnapshotGVR … var VolumeGroupSnapshotClassGVR … // WaitForVolumeGroupSnapshotReady waits for a VolumeGroupSnapshot to be ready to use or until timeout occurs, whichever comes first. func WaitForVolumeGroupSnapshotReady(ctx context.Context, c dynamic.Interface, ns string, volumeGroupSnapshotName string, poll, timeout time.Duration) error { … } func GenerateVolumeGroupSnapshotClassSpec( snapshotter string, parameters map[string]string, ns string, ) *unstructured.Unstructured { … }