Struct ostree::Repo[][src]

pub struct Repo(_, _);

Implementations

impl Repo[src]

pub fn new<P: IsA<File>>(path: &P) -> Repo[src]

pub fn new_default() -> Repo[src]

pub fn new_for_sysroot_path<P: IsA<File>, Q: IsA<File>>(
    repo_path: &P,
    sysroot_path: &Q
) -> Repo
[src]

pub fn abort_transaction<P: IsA<Cancellable>>(
    &self,
    cancellable: Option<&P>
) -> Result<(), Error>
[src]

pub fn add_gpg_signature_summary<P: IsA<Cancellable>>(
    &self,
    key_id: &[&str],
    homedir: Option<&str>,
    cancellable: Option<&P>
) -> Result<(), Error>
[src]

pub fn append_gpg_signature<P: IsA<Cancellable>>(
    &self,
    commit_checksum: &str,
    signature_bytes: &Bytes,
    cancellable: Option<&P>
) -> Result<(), Error>
[src]

pub fn checkout_at<P: AsRef<Path>, Q: IsA<Cancellable>>(
    &self,
    options: Option<&RepoCheckoutAtOptions>,
    destination_dfd: i32,
    destination_path: P,
    commit: &str,
    cancellable: Option<&Q>
) -> Result<(), Error>
[src]

pub fn checkout_gc<P: IsA<Cancellable>>(
    &self,
    cancellable: Option<&P>
) -> Result<(), Error>
[src]

pub fn checkout_tree<P: IsA<File>, Q: IsA<RepoFile>, R: IsA<Cancellable>>(
    &self,
    mode: RepoCheckoutMode,
    overwrite_mode: RepoCheckoutOverwriteMode,
    destination: &P,
    source: &Q,
    source_info: &FileInfo,
    cancellable: Option<&R>
) -> Result<(), Error>
[src]

pub fn commit_transaction<P: IsA<Cancellable>>(
    &self,
    cancellable: Option<&P>
) -> Result<RepoTransactionStats, Error>
[src]

pub fn copy_config(&self) -> Option<KeyFile>[src]

pub fn create<P: IsA<Cancellable>>(
    &self,
    mode: RepoMode,
    cancellable: Option<&P>
) -> Result<(), Error>
[src]

pub fn delete_object<P: IsA<Cancellable>>(
    &self,
    objtype: ObjectType,
    sha256: &str,
    cancellable: Option<&P>
) -> Result<(), Error>
[src]

pub fn equal(&self, b: &Repo) -> bool[src]

pub fn fsck_object<P: IsA<Cancellable>>(
    &self,
    objtype: ObjectType,
    sha256: &str,
    cancellable: Option<&P>
) -> Result<(), Error>
[src]

pub fn get_bootloader(&self) -> Option<GString>[src]

pub fn get_collection_id(&self) -> Option<GString>[src]

pub fn get_config(&self) -> Option<KeyFile>[src]

pub fn get_default_repo_finders(&self) -> Vec<GString>[src]

pub fn get_dfd(&self) -> i32[src]

pub fn get_disable_fsync(&self) -> bool[src]

pub fn get_min_free_space_bytes(&self) -> Result<u64, Error>[src]

pub fn get_mode(&self) -> RepoMode[src]

pub fn get_parent(&self) -> Option<Repo>[src]

pub fn get_path(&self) -> Option<File>[src]

pub fn get_remote_boolean_option(
    &self,
    remote_name: &str,
    option_name: &str,
    default_value: bool
) -> Result<bool, Error>
[src]

pub fn get_remote_list_option(
    &self,
    remote_name: &str,
    option_name: &str
) -> Result<Vec<GString>, Error>
[src]

pub fn get_remote_option(
    &self,
    remote_name: &str,
    option_name: &str,
    default_value: Option<&str>
) -> Result<GString, Error>
[src]

pub fn gpg_sign_data<P: IsA<Cancellable>>(
    &self,
    data: &Bytes,
    old_signatures: &Bytes,
    key_id: &[&str],
    homedir: Option<&str>,
    cancellable: Option<&P>
) -> Result<Bytes, Error>
[src]

pub fn gpg_verify_data<P: IsA<File>, Q: IsA<File>, R: IsA<Cancellable>>(
    &self,
    remote_name: Option<&str>,
    data: &Bytes,
    signatures: &Bytes,
    keyringdir: Option<&P>,
    extra_keyring: Option<&Q>,
    cancellable: Option<&R>
) -> Result<GpgVerifyResult, Error>
[src]

pub fn has_object<P: IsA<Cancellable>>(
    &self,
    objtype: ObjectType,
    checksum: &str,
    cancellable: Option<&P>
) -> Result<bool, Error>
[src]

pub fn hash(&self) -> u32[src]

pub fn import_object_from<P: IsA<Cancellable>>(
    &self,
    source: &Repo,
    objtype: ObjectType,
    checksum: &str,
    cancellable: Option<&P>
) -> Result<(), Error>
[src]

pub fn import_object_from_with_trust<P: IsA<Cancellable>>(
    &self,
    source: &Repo,
    objtype: ObjectType,
    checksum: &str,
    trusted: bool,
    cancellable: Option<&P>
) -> Result<(), Error>
[src]

pub fn is_system(&self) -> bool[src]

pub fn is_writable(&self) -> Result<(), Error>[src]

pub fn list_static_delta_indexes<P: IsA<Cancellable>>(
    &self,
    cancellable: Option<&P>
) -> Result<Vec<GString>, Error>
[src]

pub fn list_static_delta_names<P: IsA<Cancellable>>(
    &self,
    cancellable: Option<&P>
) -> Result<Vec<GString>, Error>
[src]

pub fn load_commit(
    &self,
    checksum: &str
) -> Result<(Variant, RepoCommitState), Error>
[src]

pub fn load_file<P: IsA<Cancellable>>(
    &self,
    checksum: &str,
    cancellable: Option<&P>
) -> Result<(Option<InputStream>, Option<FileInfo>, Option<Variant>), Error>
[src]

pub fn load_object_stream<P: IsA<Cancellable>>(
    &self,
    objtype: ObjectType,
    checksum: &str,
    cancellable: Option<&P>
) -> Result<(InputStream, u64), Error>
[src]

pub fn load_variant(
    &self,
    objtype: ObjectType,
    sha256: &str
) -> Result<Variant, Error>
[src]

pub fn load_variant_if_exists(
    &self,
    objtype: ObjectType,
    sha256: &str
) -> Result<Variant, Error>
[src]

pub fn mark_commit_partial(
    &self,
    checksum: &str,
    is_partial: bool
) -> Result<(), Error>
[src]

pub fn mark_commit_partial_reason(
    &self,
    checksum: &str,
    is_partial: bool,
    in_state: RepoCommitState
) -> Result<(), Error>
[src]

pub fn open<P: IsA<Cancellable>>(
    &self,
    cancellable: Option<&P>
) -> Result<(), Error>
[src]

pub fn prepare_transaction<P: IsA<Cancellable>>(
    &self,
    cancellable: Option<&P>
) -> Result<bool, Error>
[src]

pub fn prune<P: IsA<Cancellable>>(
    &self,
    flags: RepoPruneFlags,
    depth: i32,
    cancellable: Option<&P>
) -> Result<(i32, i32, u64), Error>
[src]

pub fn prune_static_deltas<P: IsA<Cancellable>>(
    &self,
    commit: Option<&str>,
    cancellable: Option<&P>
) -> Result<(), Error>
[src]

pub fn pull<P: IsA<AsyncProgress>, Q: IsA<Cancellable>>(
    &self,
    remote_name: &str,
    refs_to_fetch: &[&str],
    flags: RepoPullFlags,
    progress: Option<&P>,
    cancellable: Option<&Q>
) -> Result<(), Error>
[src]

pub fn pull_one_dir<P: IsA<AsyncProgress>, Q: IsA<Cancellable>>(
    &self,
    remote_name: &str,
    dir_to_pull: &str,
    refs_to_fetch: &[&str],
    flags: RepoPullFlags,
    progress: Option<&P>,
    cancellable: Option<&Q>
) -> Result<(), Error>
[src]

pub fn pull_with_options<P: IsA<AsyncProgress>, Q: IsA<Cancellable>>(
    &self,
    remote_name_or_baseurl: &str,
    options: &Variant,
    progress: Option<&P>,
    cancellable: Option<&Q>
) -> Result<(), Error>
[src]

pub fn query_object_storage_size<P: IsA<Cancellable>>(
    &self,
    objtype: ObjectType,
    sha256: &str,
    cancellable: Option<&P>
) -> Result<u64, Error>
[src]

pub fn read_commit<P: IsA<Cancellable>>(
    &self,
    ref_: &str,
    cancellable: Option<&P>
) -> Result<(File, GString), Error>
[src]

pub fn read_commit_detached_metadata<P: IsA<Cancellable>>(
    &self,
    checksum: &str,
    cancellable: Option<&P>
) -> Result<Variant, Error>
[src]

pub fn regenerate_summary<P: IsA<Cancellable>>(
    &self,
    additional_metadata: Option<&Variant>,
    cancellable: Option<&P>
) -> Result<(), Error>
[src]

pub fn reload_config<P: IsA<Cancellable>>(
    &self,
    cancellable: Option<&P>
) -> Result<(), Error>
[src]

pub fn remote_add<P: IsA<Cancellable>>(
    &self,
    name: &str,
    url: &str,
    options: Option<&Variant>,
    cancellable: Option<&P>
) -> Result<(), Error>
[src]

pub fn remote_change<P: IsA<File>, Q: IsA<Cancellable>>(
    &self,
    sysroot: Option<&P>,
    changeop: RepoRemoteChange,
    name: &str,
    url: &str,
    options: Option<&Variant>,
    cancellable: Option<&Q>
) -> Result<(), Error>
[src]

pub fn remote_delete<P: IsA<Cancellable>>(
    &self,
    name: &str,
    cancellable: Option<&P>
) -> Result<(), Error>
[src]

pub fn remote_fetch_summary<P: IsA<Cancellable>>(
    &self,
    name: &str,
    cancellable: Option<&P>
) -> Result<(Bytes, Bytes), Error>
[src]

pub fn remote_fetch_summary_with_options<P: IsA<Cancellable>>(
    &self,
    name: &str,
    options: Option<&Variant>,
    cancellable: Option<&P>
) -> Result<(Bytes, Bytes), Error>
[src]

pub fn remote_get_gpg_verify(&self, name: &str) -> Result<bool, Error>[src]

pub fn remote_get_gpg_verify_summary(&self, name: &str) -> Result<bool, Error>[src]

pub fn remote_get_url(&self, name: &str) -> Result<GString, Error>[src]

pub fn remote_gpg_import<P: IsA<InputStream>, Q: IsA<Cancellable>>(
    &self,
    name: &str,
    source_stream: Option<&P>,
    key_ids: &[&str],
    cancellable: Option<&Q>
) -> Result<u32, Error>
[src]

pub fn remote_list(&self) -> Vec<GString>[src]

pub fn resolve_collection_ref<P: IsA<Cancellable>>(
    &self,
    ref_: &CollectionRef,
    allow_noent: bool,
    flags: RepoResolveRevExtFlags,
    cancellable: Option<&P>
) -> Result<Option<GString>, Error>
[src]

pub fn resolve_keyring_for_collection<P: IsA<Cancellable>>(
    &self,
    collection_id: &str,
    cancellable: Option<&P>
) -> Result<Remote, Error>
[src]

pub fn resolve_rev(
    &self,
    refspec: &str,
    allow_noent: bool
) -> Result<Option<GString>, Error>
[src]

pub fn resolve_rev_ext(
    &self,
    refspec: &str,
    allow_noent: bool,
    flags: RepoResolveRevExtFlags
) -> Result<Option<GString>, Error>
[src]

pub fn set_alias_ref_immediate<P: IsA<Cancellable>>(
    &self,
    remote: Option<&str>,
    ref_: &str,
    target: Option<&str>,
    cancellable: Option<&P>
) -> Result<(), Error>
[src]

pub fn set_cache_dir<P: IsA<Cancellable>>(
    &self,
    dfd: i32,
    path: &str,
    cancellable: Option<&P>
) -> Result<(), Error>
[src]

pub fn set_collection_id(
    &self,
    collection_id: Option<&str>
) -> Result<(), Error>
[src]

pub fn set_collection_ref_immediate<P: IsA<Cancellable>>(
    &self,
    ref_: &CollectionRef,
    checksum: Option<&str>,
    cancellable: Option<&P>
) -> Result<(), Error>
[src]

pub fn set_disable_fsync(&self, disable_fsync: bool)[src]

pub fn set_ref_immediate<P: IsA<Cancellable>>(
    &self,
    remote: Option<&str>,
    ref_: &str,
    checksum: Option<&str>,
    cancellable: Option<&P>
) -> Result<(), Error>
[src]

pub fn sign_commit<P: IsA<Cancellable>>(
    &self,
    commit_checksum: &str,
    key_id: &str,
    homedir: Option<&str>,
    cancellable: Option<&P>
) -> Result<(), Error>
[src]

pub fn sign_delta<P: IsA<Cancellable>>(
    &self,
    from_commit: &str,
    to_commit: &str,
    key_id: &str,
    homedir: &str,
    cancellable: Option<&P>
) -> Result<(), Error>
[src]

pub fn static_delta_execute_offline<P: IsA<File>, Q: IsA<Cancellable>>(
    &self,
    dir_or_file: &P,
    skip_validation: bool,
    cancellable: Option<&Q>
) -> Result<(), Error>
[src]

pub fn static_delta_execute_offline_with_signature<P: IsA<File>, Q: IsA<Sign>, R: IsA<Cancellable>>(
    &self,
    dir_or_file: &P,
    sign: &Q,
    skip_validation: bool,
    cancellable: Option<&R>
) -> Result<(), Error>
[src]

pub fn static_delta_generate<P: IsA<Cancellable>>(
    &self,
    opt: StaticDeltaGenerateOpt,
    from: Option<&str>,
    to: &str,
    metadata: Option<&Variant>,
    params: Option<&Variant>,
    cancellable: Option<&P>
) -> Result<(), Error>
[src]

pub fn static_delta_verify_signature<P: IsA<Sign>>(
    &self,
    delta_id: &str,
    sign: &P
) -> Result<Option<GString>, Error>
[src]

pub fn transaction_set_collection_ref(
    &self,
    ref_: &CollectionRef,
    checksum: Option<&str>
)
[src]

pub fn transaction_set_ref(
    &self,
    remote: Option<&str>,
    ref_: &str,
    checksum: Option<&str>
)
[src]

pub fn transaction_set_refspec(&self, refspec: &str, checksum: Option<&str>)[src]

pub fn verify_commit<P: IsA<File>, Q: IsA<File>, R: IsA<Cancellable>>(
    &self,
    commit_checksum: &str,
    keyringdir: Option<&P>,
    extra_keyring: Option<&Q>,
    cancellable: Option<&R>
) -> Result<(), Error>
[src]

pub fn verify_commit_ext<P: IsA<File>, Q: IsA<File>, R: IsA<Cancellable>>(
    &self,
    commit_checksum: &str,
    keyringdir: Option<&P>,
    extra_keyring: Option<&Q>,
    cancellable: Option<&R>
) -> Result<GpgVerifyResult, Error>
[src]

pub fn verify_commit_for_remote<P: IsA<Cancellable>>(
    &self,
    commit_checksum: &str,
    remote_name: &str,
    cancellable: Option<&P>
) -> Result<GpgVerifyResult, Error>
[src]

pub fn verify_summary<P: IsA<Cancellable>>(
    &self,
    remote_name: &str,
    summary: &Bytes,
    signatures: &Bytes,
    cancellable: Option<&P>
) -> Result<GpgVerifyResult, Error>
[src]

pub fn write_archive_to_mtree<P: IsA<File>, Q: IsA<MutableTree>, R: IsA<Cancellable>>(
    &self,
    archive: &P,
    mtree: &Q,
    modifier: Option<&RepoCommitModifier>,
    autocreate_parents: bool,
    cancellable: Option<&R>
) -> Result<(), Error>
[src]

pub fn write_archive_to_mtree_from_fd<P: IsA<MutableTree>, Q: IsA<Cancellable>>(
    &self,
    fd: i32,
    mtree: &P,
    modifier: Option<&RepoCommitModifier>,
    autocreate_parents: bool,
    cancellable: Option<&Q>
) -> Result<(), Error>
[src]

pub fn write_commit<P: IsA<RepoFile>, Q: IsA<Cancellable>>(
    &self,
    parent: Option<&str>,
    subject: Option<&str>,
    body: Option<&str>,
    metadata: Option<&Variant>,
    root: &P,
    cancellable: Option<&Q>
) -> Result<GString, Error>
[src]

pub fn write_commit_detached_metadata<P: IsA<Cancellable>>(
    &self,
    checksum: &str,
    metadata: Option<&Variant>,
    cancellable: Option<&P>
) -> Result<(), Error>
[src]

pub fn write_commit_with_time<P: IsA<RepoFile>, Q: IsA<Cancellable>>(
    &self,
    parent: Option<&str>,
    subject: Option<&str>,
    body: Option<&str>,
    metadata: Option<&Variant>,
    root: &P,
    time: u64,
    cancellable: Option<&Q>
) -> Result<GString, Error>
[src]

pub fn write_config(&self, new_config: &KeyFile) -> Result<(), Error>[src]

pub fn write_content_trusted<P: IsA<InputStream>, Q: IsA<Cancellable>>(
    &self,
    checksum: &str,
    object_input: &P,
    length: u64,
    cancellable: Option<&Q>
) -> Result<(), Error>
[src]

pub fn write_dfd_to_mtree<P: IsA<MutableTree>, Q: IsA<Cancellable>>(
    &self,
    dfd: i32,
    path: &str,
    mtree: &P,
    modifier: Option<&RepoCommitModifier>,
    cancellable: Option<&Q>
) -> Result<(), Error>
[src]

pub fn write_directory_to_mtree<P: IsA<File>, Q: IsA<MutableTree>, R: IsA<Cancellable>>(
    &self,
    dir: &P,
    mtree: &Q,
    modifier: Option<&RepoCommitModifier>,
    cancellable: Option<&R>
) -> Result<(), Error>
[src]

pub fn write_metadata_stream_trusted<P: IsA<InputStream>, Q: IsA<Cancellable>>(
    &self,
    objtype: ObjectType,
    checksum: &str,
    object_input: &P,
    length: u64,
    cancellable: Option<&Q>
) -> Result<(), Error>
[src]

pub fn write_metadata_trusted<P: IsA<Cancellable>>(
    &self,
    objtype: ObjectType,
    checksum: &str,
    variant: &Variant,
    cancellable: Option<&P>
) -> Result<(), Error>
[src]

pub fn write_mtree<P: IsA<MutableTree>, Q: IsA<Cancellable>>(
    &self,
    mtree: &P,
    cancellable: Option<&Q>
) -> Result<File, Error>
[src]

pub fn get_property_remotes_config_dir(&self) -> Option<GString>[src]

pub fn get_property_sysroot_path(&self) -> Option<File>[src]

pub fn create_at<P: IsA<Cancellable>>(
    dfd: i32,
    path: &str,
    mode: RepoMode,
    options: Option<&Variant>,
    cancellable: Option<&P>
) -> Result<Repo, Error>
[src]

pub fn mode_from_string(mode: &str) -> Result<RepoMode, Error>[src]

pub fn open_at<P: IsA<Cancellable>>(
    dfd: i32,
    path: &str,
    cancellable: Option<&P>
) -> Result<Repo, Error>
[src]

pub fn connect_gpg_verify_result<F: Fn(&Repo, &str, &GpgVerifyResult) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

impl Repo[src]

pub fn new_for_path<P: AsRef<Path>>(path: P) -> Repo[src]

Create a new Repo object for working with an OSTree repo at the given path.

pub fn traverse_commit<P: IsA<Cancellable>>(
    &self,
    commit_checksum: &str,
    maxdepth: i32,
    cancellable: Option<&P>
) -> Result<HashSet<ObjectName>, Error>
[src]

pub fn list_refs<P: IsA<Cancellable>>(
    &self,
    refspec_prefix: Option<&str>,
    cancellable: Option<&P>
) -> Result<HashMap<String, String>, Error>
[src]

pub fn list_refs_ext<P: IsA<Cancellable>>(
    &self,
    refspec_prefix: Option<&str>,
    flags: RepoListRefsExtFlags,
    cancellable: Option<&P>
) -> Result<HashMap<String, String>, Error>
[src]

pub fn write_content<P: IsA<InputStream>, Q: IsA<Cancellable>>(
    &self,
    expected_checksum: Option<&str>,
    object_input: &P,
    length: u64,
    cancellable: Option<&Q>
) -> Result<Checksum, Error>
[src]

pub fn write_metadata<P: IsA<Cancellable>>(
    &self,
    objtype: ObjectType,
    expected_checksum: Option<&str>,
    object: &Variant,
    cancellable: Option<&P>
) -> Result<Checksum, Error>
[src]

pub fn write_content_async<P: IsA<InputStream>, Q: IsA<Cancellable>, R: FnOnce(Result<Checksum, Error>) + Send + 'static>(
    &self,
    expected_checksum: Option<&str>,
    object: &P,
    length: u64,
    cancellable: Option<&Q>,
    callback: R
)
[src]

pub fn write_content_async_future<P: IsA<InputStream> + Clone + 'static>(
    &self,
    expected_checksum: Option<&str>,
    object: &P,
    length: u64
) -> Pin<Box<dyn Future<Output = Result<Checksum, Error>> + 'static>>
[src]

pub fn write_metadata_async<P: IsA<Cancellable>, Q: FnOnce(Result<Checksum, Error>) + Send + 'static>(
    &self,
    objtype: ObjectType,
    expected_checksum: Option<&str>,
    object: &Variant,
    cancellable: Option<&P>,
    callback: Q
)
[src]

pub fn write_metadata_async_future(
    &self,
    objtype: ObjectType,
    expected_checksum: Option<&str>,
    object: &Variant
) -> Pin<Box<dyn Future<Output = Result<Checksum, Error>> + 'static>>
[src]

Trait Implementations

impl Clone for Repo[src]

impl Debug for Repo[src]

impl Display for Repo[src]

impl Eq for Repo[src]

impl Hash for Repo[src]

impl Ord for Repo[src]

impl<T: ObjectType> PartialEq<T> for Repo[src]

impl<T: ObjectType> PartialOrd<T> for Repo[src]

impl StaticType for Repo[src]

Auto Trait Implementations

impl RefUnwindSafe for Repo

impl !Send for Repo

impl !Sync for Repo

impl Unpin for Repo

impl UnwindSafe for Repo

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 
[src]

impl<T> Cast for T where
    T: ObjectType
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ObjectExt for T where
    T: ObjectType
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: SetValue + Send + ToValue + ?Sized
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.