Provider class abstract

Base provider contract for custom provider authoring.

Constructors

Provider({String? version, String? schema})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
schema → String?
final
version → String?
final

Methods

call(String token, Inputs inputs) → Future<CallResult>
Calls a provider method tied to component resources.
check(String urn, Map<String, dynamic> olds, Map<String, dynamic> news) → Future<CheckResult>
Validates resource inputs.
checkConfig(String urn, Map<String, dynamic> olds, Map<String, dynamic> news) → Future<CheckResult>
Validates provider configuration inputs.
construct(String name, String type, Inputs inputs, ComponentResourceOptions options) → Future<ConstructResult>
Constructs a component resource exposed by this provider.
create(String urn, Map<String, dynamic> inputs) → Future<CreateResult>
Creates a new custom resource instance.
delete(String id, String urn, Map<String, dynamic> props) → Future<void>
Deletes a custom resource.
diff(String id, String urn, Map<String, dynamic> olds, Map<String, dynamic> news) → Future<DiffResult>
Computes the impact of an update.
diffConfig(String id, String urn, Map<String, dynamic> olds, Map<String, dynamic> news) → Future<DiffResult>
Computes the impact of provider configuration updates.
getSchema() → Future<String>
Returns the provider package schema JSON.
invoke(String token, Map<String, dynamic> args) → Future<InvokeResult>
Calls an invoke token exposed by the provider.
list(ListResourcesRequest request) → Stream<ListResourcesResponse>
Lists resources known to this provider.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parameterizeArgs(List<String> args) → Future<ParameterizeResult>
Parameterizes the provider with CLI-style arguments.
parameterizeValue(String name, String version, String value) → Future<ParameterizeResult>
Parameterizes the provider with embedded parameter payloads.
read(String id, String urn, Map<String, dynamic>? props) → Future<ReadResult>
Reads the current state of a resource.
toString() → String
A string representation of this object.
inherited
update(String id, String urn, Map<String, dynamic> olds, Map<String, dynamic> news) → Future<UpdateResult>
Updates an existing custom resource.

Operators

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