Type Alias warg_client::FileSystemClient

source ·
pub type FileSystemClient = Client<FileSystemRegistryStorage, FileSystemContentStorage, FileSystemNamespaceMapStorage>;
Expand description

A Warg registry client that uses the local file system to store package logs and content.

Aliased Type§

struct FileSystemClient { /* private fields */ }

Implementations§

source§

impl FileSystemClient

source

pub fn try_new_with_config( url: Option<&str>, config: &Config, auth_token: Option<Secret<String>> ) -> Result<StorageLockResult<Self>, ClientError>

Attempts to create a client for the given registry URL.

If the URL is None, the home registry URL is used; if there is no home registry URL, an error is returned.

If a lock cannot be acquired for a storage directory, then NewClientResult::Blocked is returned with the path to the directory that could not be locked.

source

pub fn new_with_config( url: Option<&str>, config: &Config, auth_token: Option<Secret<String>> ) -> Result<Self, ClientError>

Creates a client for the given registry URL.

If the URL is None, the home registry URL is used; if there is no home registry URL, an error is returned.

This method blocks if storage locks cannot be acquired.