MCPcopy Create free account
hub / github.com/PowerShell/DSC / Function

Interface Function

lib/dsc-lib/src/functions/mod.rs:139–151  ·  view source on GitHub ↗

A function that can be invoked.

Source from the content-addressed store, hash-verified

137
138/// A function that can be invoked.
139pub trait Function {
140 /// Invoke the function.
141 ///
142 /// # Arguments
143 ///
144 /// * `args` - The arguments to the function.
145 ///
146 /// # Errors
147 ///
148 /// This function will return an error if the function fails to execute.
149 fn invoke(&self, args: &[Value], context: &Context) -> Result<Value, DscError>;
150 fn get_metadata(&self) -> FunctionMetadata;
151}
152
153/// A dispatcher for functions.
154pub struct FunctionDispatcher {

Callers 4

invokeMethod · 0.70
invokeMethod · 0.70
invokeMethod · 0.70
invokeMethod · 0.70

Implementers 15

filter.rslib/dsc-lib/src/functions/filter.rs
if.rslib/dsc-lib/src/functions/if.rs
variables.rslib/dsc-lib/src/functions/variables.rs
trim.rslib/dsc-lib/src/functions/trim.rs
starts_with.rslib/dsc-lib/src/functions/starts_with.
format.rslib/dsc-lib/src/functions/format.rs
int.rslib/dsc-lib/src/functions/int.rs
data_uri.rslib/dsc-lib/src/functions/data_uri.rs
utc_now.rslib/dsc-lib/src/functions/utc_now.rs
cidr_host.rslib/dsc-lib/src/functions/cidr_host.rs
uri.rslib/dsc-lib/src/functions/uri.rs
resource_id.rslib/dsc-lib/src/functions/resource_id.

Calls

no outgoing calls

Tested by

no test coverage detected