Skip to main content

factory

Function factory 

Source
pub fn factory(
    cfg: &ReleaseSourceConfig,
    token: Option<SecretString>,
) -> Result<Arc<dyn ReleaseProvider>, ProviderError>
Expand description

Construct a DirectProvider from parsed config.

§Errors

Returns ProviderError::InvalidConfig if either URL is empty or the template lacks {version}.