DVPreviews class final

The previews of one application on one adapter.

Constructors

DVPreviews({required String app, required DVPreviewAdapter adapter, required DVPreviewRegistry registry, DVPreviewConfig config = const DVPreviewConfig(), String? currentEnvironment, Random? random})

Properties

adapter → DVPreviewAdapter
final
app → String
final
config → DVPreviewConfig
final
currentEnvironment → String?
The environment the calling process runs as. A preview asking for a preview is refused: a branch gets one environment.
final
hashCode → int
The hash code for this object.
no setterinherited
registry → DVPreviewRegistry
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

create({required String branch, required DateTime now, required DVPreviewSecretPlan secrets, int? pullRequest, Map<String, Set<String>> sensitiveColumns = const <String, Set<String>>{}, DVPreviewStep? migrate, DVPreviewStep? seed, DVPreviewStep? sanitize, String? productionOrigin}) → Future<DVPreviewOutcome>
Creates the branch's preview, or redeploys the one it has.
destroy(String name, {required DateTime now}) → Future<DVPreviewOutcome>
Destroys the preview named name: its deployment, database and bucket.
list() → Future<List<DVPreviewRecord>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sweep({required DateTime now, Set<String>? liveBranches, Set<int> closedPullRequests = const <int>{}}) → Future<List<DVPreviewFinding>>
Destroys what is over and suspends what is idle, as of now.
toString() → String
A string representation of this object.
inherited
touch(String name, {required DateTime now}) → Future<DVPreviewRecord?>
Records a request to the preview named name, waking it if suspended.

Operators

operator ==(Object other) → bool
The equality operator.
inherited