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

Method get_extensions

lib/dsc-lib/src/discovery/mod.rs:105–113  ·  view source on GitHub ↗
(&mut self, capability: &Capability)

Source from the content-addressed store, hash-verified

103 }
104
105 pub fn get_extensions(&mut self, capability: &Capability) -> Vec<DscExtension> {
106 if self.extensions.is_empty() {
107 self.list_available(&DiscoveryKind::Extension, &TypeNameFilter::default(), None, ProgressFormat::None);
108 }
109 self.extensions.values()
110 .filter(|ext| ext.capabilities.contains(capability))
111 .cloned()
112 .collect()
113 }
114
115 pub fn find_resource(&mut self, filter: &DiscoveryFilter) -> Result<Option<&DscResource>, DscError> {
116 if self.refresh_cache || self.resources.is_empty() {

Callers 3

list_availableMethod · 0.45
find_resourcesMethod · 0.45
get_inputFunction · 0.45

Calls 4

valuesMethod · 0.80
defaultFunction · 0.50
is_emptyMethod · 0.45
list_availableMethod · 0.45

Tested by

no test coverage detected