Superls.Store (superls v1.2.3)
View SourceStore access facilities.
Summary
Functions
Create a merged_index
from media_dir
, store
and passwd
.
the cache path
Returns the store
cache path
verify passwd
.
Returns the digest
from a vol_path
get merged_index
from store
.
Get the indexes
list from store
and password
.
Get the stores
list.
Maybe creates and returns the store
cache path
Get the volume_path
list from store
and password
.
Types
@type store() :: String.t()
Functions
@spec archive( media_dir :: Superls.MergedIndex.volume(), store :: store(), passwd :: String.t() ) :: no_return()
Create a merged_index
from media_dir
, store
and passwd
.
@spec cache_path() :: path :: Path.t()
the cache path
Returns the store
cache path
verify passwd
.
@spec encode_digest_uri(vol_path :: Superls.MergedIndex.volume()) :: digest :: String.t()
Returns the digest
from a vol_path
@spec get_merged_index_from_store(store :: store(), String.t()) :: merged_index :: Superls.MergedIndex.t()
get merged_index
from store
.
Get the indexes
list from store
and password
.
@spec list_stores() :: stores :: [Path.t()]
Get the stores
list.
@spec maybe_create_cache_path() :: Path.t()
Maybe creates and returns the store
cache path
Get the volume_path
list from store
and password
.