NULL-terminated array of GPG keys.
GPG home directory, or %NULL
A #GCancellable
Append a GPG signature to a commit.
SHA256 of given commit to sign
Signature data
A #GCancellable
Creates a binding between source_property
on source
and target_property
on target
.
Whenever the source_property
is changed the target_property
is
updated using the same value. For instance:
g_object_bind_property (action, "active", widget, "sensitive", 0);
Will result in the "sensitive" property of the widget #GObject instance to be updated with the same value of the "active" property of the action #GObject instance.
If flags
contains %G_BINDING_BIDIRECTIONAL then the binding will be mutual:
if target_property
on target
changes then the source_property
on source
will be updated as well.
The binding will automatically be removed when either the source
or the
target
instances are finalized. To remove the binding without affecting the
source
and the target
you can just call g_object_unref() on the returned
#GBinding instance.
Removing the binding by calling g_object_unref() on it must only be done if
the binding, source
and target
are only used from a single thread and it
is clear that both source
and target
outlive the binding. Especially it
is not safe to rely on this if the binding, source
or target
can be
finalized from different threads. Keep another reference to the binding and
use g_binding_unbind() instead to be on the safe side.
A #GObject can have multiple bindings.
the property on source
to bind
the target #GObject
the property on target
to bind
flags to pass to #GBinding
Creates a binding between source_property
on source
and target_property
on target,
allowing you to set the transformation functions to be used by
the binding.
This function is the language bindings friendly version of g_object_bind_property_full(), using #GClosures instead of function pointers.
the property on source
to bind
the target #GObject
the property on target
to bind
flags to pass to #GBinding
a #GClosure wrapping the transformation function from the source
to the target,
or %NULL to use the default
a #GClosure wrapping the transformation function from the target
to the source,
or %NULL to use the default
Similar to ostree_repo_checkout_tree(), but uses directory-relative
paths for the destination, uses a new OstreeRepoCheckoutAtOptions
,
and takes a commit checksum and optional subpath pair, rather than
requiring use of GFile
APIs for the caller.
It also replaces ostree_repo_checkout_at() which was not safe to use with GObject introspection.
Note in addition that unlike ostree_repo_checkout_tree(), the default is not to use the repository-internal uncompressed objects cache.
Options
Directory FD for destination
Directory for destination
Checksum for commit
Cancellable
Call this after finishing a succession of checkout operations; it will delete any currently-unused uncompressed objects from the cache.
Cancellable
Check out source
into destination,
which must live on the
physical filesystem. source
may be any subdirectory of a given
commit. The mode
and overwrite_mode
allow control over how the
files are checked out.
Options controlling all files
Whether or not to overwrite files
Place tree here
Source tree
Source info
Cancellable
Complete the transaction. Any refs set with ostree_repo_transaction_set_ref() or ostree_repo_transaction_set_refspec() will be written out.
Cancellable
Create the underlying structure on disk for the repository, and call ostree_repo_open() on the result, preparing it for use.
Since version 2016.8, this function will succeed on an existing repository, and finish creating any necessary files in a partially created repository. However, this function cannot change the mode of an existing repository, and will silently ignore an attempt to do so.
The mode to store the repository in
Cancellable
Remove the object of type objtype
with checksum sha2
56
from the repository. An error of type %G_IO_ERROR_NOT_FOUND
is thrown if the object does not exist.
Object type
Checksum
Cancellable
This function is intended for #GObject implementations to re-enforce a [floating][floating-ref] object reference. Doing this is seldom required: all #GInitiallyUnowneds are created with a floating reference which usually just needs to be sunken by calling g_object_ref_sink().
Increases the freeze count on object
. If the freeze count is
non-zero, the emission of "notify" signals on object
is
stopped. The signals are queued until the freeze count is decreased
to zero. Duplicate notifications are squashed so that at most one
#GObject::notify signal is emitted for each property modified while the
object is frozen.
This is necessary for accessors that modify multiple properties to prevent premature notification while the object is still being modified.
Gets a named field from the objects table of associations (see g_object_set_data()).
name of the key for that association
In some cases it's useful for applications to access the repository
directly; for example, writing content into repo/tmp
ensures it's
on the same filesystem. Another case is detecting the mtime on the
repository (to see whether a ref was written).
For more information see ostree_repo_set_disable_fsync().
Before this function can be used, ostree_repo_init() must have been called.
Gets a property of an object.
The value
can be:
In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling g_value_unset().
Note that g_object_get_property() is really intended for language bindings, g_object_get() is much more convenient for C programming.
the name of the property to get
return location for the property value
This function gets back user data pointers stored via g_object_set_qdata().
A #GQuark, naming the user data pointer
OSTree remotes are represented by keyfile groups, formatted like:
[remote "remotename"]
. This function returns a value named option_name
underneath that group, and returns it as a boolean.
If the option is not set, out_value
will be set to default_value
.
Name
Option
Value returned if option_name
is not present
OSTree remotes are represented by keyfile groups, formatted like:
[remote "remotename"]
. This function returns a value named option_name
underneath that group, and returns it as an zero terminated array of strings.
If the option is not set, out_value
will be set to %NULL.
Name
Option
OSTree remotes are represented by keyfile groups, formatted like:
[remote "remotename"]
. This function returns a value named option_name
underneath that group, or default_value
if the remote exists but not the
option name.
Name
Option
Value returned if option_name
is not present
Gets n_properties
properties for an object
.
Obtained properties will be set to values
. All properties must be valid.
Warnings will be emitted and undefined behaviour may result if invalid
properties are passed in.
the names of each property to get
the values of each property to get
Verify signatures
for data
using GPG keys in the keyring for
remote_name,
and return an #OstreeGpgVerifyResult.
The remote_name
parameter can be %NULL. In that case it will do
the verifications using GPG keys in the keyrings of all remotes.
Name of remote
Data as a #GBytes
Signatures as a #GBytes
Path to directory GPG keyrings; overrides built-in default if given
Path to additional keyring file (not a directory)
Cancellable
Set out_have_object
to %TRUE if self
contains the given object;
%FALSE otherwise.
Object type
ASCII SHA256 checksum
Cancellable
Copy object named by objtype
and checksum
into self
from the
source repository source
. If both repositories are of the same
type and on the same filesystem, this will simply be a fast Unix
hard link operation.
Otherwise, a copy will be performed.
Source repo
Object type
checksum
Cancellable
Copy object named by objtype
and checksum
into self
from the
source repository source
. If both repositories are of the same
type and on the same filesystem, this will simply be a fast Unix
hard link operation.
Otherwise, a copy will be performed.
Source repo
Object type
checksum
If %TRUE, assume the source repo is valid and trusted
Cancellable
Checks whether object
has a [floating][floating-ref] reference.
Returns whether the repository is writable by the current user.
If the repository is not writable, the error
indicates why.
This function synchronously enumerates all commit objects starting
with start,
returning data in out_commits
.
List commits starting with this checksum
Array of GVariants
Cancellable
This function synchronously enumerates all objects in the
repository, returning data in out_objects
. out_objects
maps from keys returned by ostree_object_name_serialize()
to #GVariant values of type %OSTREE_REPO_LIST_OBJECTS_VARIANT_TYPE.
Flags controlling enumeration
Cancellable
If refspec_prefix
is %NULL, list all local and remote refspecs,
with their current values in out_all_refs
. Otherwise, only list
refspecs which have refspec_prefix
as a prefix.
Only list refs which match this prefix
Cancellable
If refspec_prefix
is %NULL, list all local and remote refspecs,
with their current values in out_all_refs
. Otherwise, only list
refspecs which have refspec_prefix
as a prefix. Differently from
ostree_repo_list_refs(), the prefix will not be removed from the ref
name.
Only list refs which match this prefix
Options controlling listing behavior
Cancellable
This function synchronously enumerates all static deltas in the
repository, returning its result in out_deltas
.
Cancellable
A version of ostree_repo_load_variant() specialized to commits, capable of returning extended state information. Currently the only extended state is %OSTREE_REPO_COMMIT_STATE_PARTIAL, which means that only a sub-path of the commit is available.
Commit checksum
Load content object, decomposing it into three parts: the actual content (for regular files), the metadata, and extended attributes.
ASCII SHA256 checksum
Cancellable
Load object as a stream; useful when copying objects between repositories.
Object type
ASCII SHA256 checksum
Cancellable
Load the metadata object sha2
56 of type objtype,
storing the
result in out_variant
.
Expected object type
Checksum string
Attempt to load the metadata object sha2
56 of type objtype
if it
exists, storing the result in out_variant
. If it doesn't exist,
%NULL is returned.
Object type
ASCII checksum
Emits a "notify" signal for the property property_name
on object
.
When possible, eg. when signaling a property change from within the class that registered the property, you should use g_object_notify_by_pspec() instead.
Note that emission of the notify signal may be blocked with g_object_freeze_notify(). In this case, the signal emissions are queued and will be emitted (in reverse order) when g_object_thaw_notify() is called.
the name of a property installed on the class of object
.
Emits a "notify" signal for the property specified by pspec
on object
.
This function omits the property name lookup, hence it is faster than g_object_notify().
One way to avoid using g_object_notify() from within the class that registered the properties, and using g_object_notify_by_pspec() instead, is to store the GParamSpec used with g_object_class_install_property() inside a static array, e.g.:
enum
{
PROP_0,
PROP_FOO,
PROP_LAST
};
static GParamSpec *properties[PROP_LAST];
static void
my_object_class_init (MyObjectClass *klass)
{
properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "The foo",
0, 100,
50,
G_PARAM_READWRITE);
g_object_class_install_property (gobject_class,
PROP_FOO,
properties[PROP_FOO]);
}
and then notify a change on the "foo" property with:
g_object_notify_by_pspec (self, properties[PROP_FOO]);
the #GParamSpec of a property installed on the class of object
.
Starts or resumes a transaction. In order to write to a repo, you need to start a transaction. You can complete the transaction with ostree_repo_commit_transaction(), or abort the transaction with ostree_repo_abort_transaction().
Currently, transactions are not atomic, and aborting a transaction will not erase any data you write during the transaction.
Cancellable
Delete content from the repository. By default, this function will only delete "orphaned" objects not referred to by any commit. This can happen during a local commit operation, when we have written content objects but not saved the commit referencing them.
However, if %OSTREE_REPO_PRUNE_FLAGS_REFS_ONLY is provided, instead
of traversing all commits, only refs will be used. Particularly
when combined with depth,
this is a convenient way to delete
history from the repository.
Use the %OSTREE_REPO_PRUNE_FLAGS_NO_PRUNE to just determine statistics on objects that would be deleted, without actually deleting them.
Options controlling prune process
Stop traversal after this many iterations (-1 for unlimited)
Cancellable
Prune static deltas, if COMMIT is specified then delete static delta files only targeting that commit; otherwise any static delta of non existing commits are deleted.
ASCII SHA256 checksum for commit, or %NULL for each non existing commit
Cancellable
Connect to the remote repository, fetching the specified set of
refs refs_to_fetch
. For each ref that is changed, download the
commit, all metadata, and all content objects, storing them safely
on disk in self
.
If flags
contains %OSTREE_REPO_PULL_FLAGS_MIRROR, and
the refs_to_fetch
is %NULL, and the remote repository contains a
summary file, then all refs will be fetched.
If flags
contains %OSTREE_REPO_PULL_FLAGS_COMMIT_ONLY, then only the
metadata for the commits in refs_to_fetch
is pulled.
Warning: This API will iterate the thread default main context, which is a bug, but kept for compatibility reasons. If you want to avoid this, use g_main_context_push_thread_default() to push a new one around this call.
Name of remote
Optional list of refs; if %NULL, fetch all configured refs
Options controlling fetch behavior
Progress
Cancellable
This is similar to ostree_repo_pull(), but only fetches a single subpath.
Name of remote
Subdirectory path
Optional list of refs; if %NULL, fetch all configured refs
Options controlling fetch behavior
Progress
Cancellable
Like ostree_repo_pull(), but supports an extensible set of flags. The following are currently defined:
Name of remote or file:// url
A GVariant a{sv} with an extensible set of flags.
Progress
Cancellable
Return the size in bytes of object with checksum sha2
56, after any
compression has been applied.
Object type
Checksum
Cancellable
Load the content for rev
into out_root
.
Ref or ASCII checksum
Cancellable
OSTree commits can have arbitrary metadata associated; this
function retrieves them. If none exists, out_metadata
will be set
to %NULL.
ASCII SHA256 commit checksum
Cancellable
Increase the reference count of object,
and possibly remove the
[floating][floating-ref] reference, if object
has a floating reference.
In other words, if the object is floating, then this call "assumes ownership" of the floating reference, converting it to a normal reference by clearing the floating flag while leaving the reference count unchanged. If the object is not floating, then this call adds a new normal reference increasing the reference count by one.
Since GLib 2.56, the type of object
will be propagated to the return type
under the same conditions as for g_object_ref().
An OSTree repository can contain a high level "summary" file that describes the available branches and other metadata.
It is regenerated automatically after a commit if
core/commit-update-summary
is set.
A GVariant of type a{sv}, or %NULL
Cancellable
Create a new remote named name
pointing to url
. If options
is
provided, then it will be mapped to #GKeyFile entries, where the
GVariant dictionary key is an option string, and the value is
mapped as follows:
Name of remote
URL for remote (if URL begins with metalink=, it will be used as such)
GVariant of type a{sv}
Cancellable
A combined function handling the equivalent of ostree_repo_remote_add(), ostree_repo_remote_delete(), with more options.
System root
Operation to perform
Name of remote
URL for remote (if URL begins with metalink=, it will be used as such)
GVariant of type a{sv}
Cancellable
Delete the remote named name
. It is an error if the provided
remote does not exist.
Name of remote
Cancellable
Tries to fetch the summary file and any GPG signatures on the summary file
over HTTP, and returns the binary data in out_summary
and out_signatures
respectively.
If no summary file exists on the remote server, out_summary
is set to
NULL
. Likewise if the summary file is not signed, out_signatures
is
set to NULL
. In either case the function still returns %TRUE.
Parse the summary data into a #GVariant using g_variant_new_from_bytes() with #OSTREE_SUMMARY_GVARIANT_FORMAT as the format string.
name of a remote
return location for raw summary data, or %NULL
return location for raw summary signature data, or %NULL
a #GCancellable
Like ostree_repo_remote_fetch_summary(), but supports an extensible set of flags. The following are currently defined:
name of a remote
A GVariant a{sv} with an extensible set of flags
return location for raw summary data, or %NULL
return location for raw summary signature data, or %NULL
a #GCancellable
Return whether GPG verification is enabled for the remote named name
through out_gpg_verify
. It is an error if the provided remote does
not exist.
Name of remote
Return whether GPG verification of the summary is enabled for the remote
named name
through out_gpg_verify_summary
. It is an error if the provided
remote does not exist.
Name of remote
Return the URL of the remote named name
through out_url
. It is an
error if the provided remote does not exist.
Name of remote
Imports one or more GPG keys from the open source_stream,
or from the
user's personal keyring if source_stream
is %NULL. The key_ids
array
can optionally restrict which keys are imported. If key_ids
is %NULL,
then all keys are imported.
The imported keys will be used to conduct GPG verification when pulling
from the remote named name
.
name of a remote
a #GInputStream, or %NULL
a %NULL-terminated array of GPG key IDs, or %NULL
return location for the number of imported keys, or %NULL
a #GCancellable
List available remote names in an #OstreeRepo. Remote names are sorted alphabetically. If no remotes are available the function returns %NULL.
Look up the given refspec, returning the checksum it references in
the parameter out_rev
. Will fall back on remote directory if cannot
find the given refspec in local.
A refspec
Do not throw an error if refspec does not exist
Look up the given refspec, returning the checksum it references in
the parameter out_rev
. Differently from ostree_repo_resolve_rev(),
this will not fall back to searching through remote repos if a
local ref is specified but not found.
A refspec
Do not throw an error if refspec does not exist
Options controlling behavior
Releases all references to other objects. This can be used to break reference cycles.
This function should only be called from object system implementations.
When ostree builds a mutable tree from directory like in ostree_repo_write_directory_to_mtree(), it has to scan all files that you pass in and compute their checksums. If your commit contains hardlinks from ostree's existing repo, ostree can build a mapping of device numbers and inodes to their checksum.
There is an upfront cost to creating this mapping, as this will scan the entire objects directory. If your commit is composed of mostly hardlinks to existing ostree objects, then this will speed up considerably, so call it before you call ostree_write_directory_to_mtree() or similar.
Cancellable
Set a custom location for the cache directory used for e.g. per-remote summary caches. Setting this manually is useful when doing operations on a system repo as a user because you don't have write permissions in the repo, where the cache is normally stored.
directory fd
subpath in dfd
a #GCancellable
Each object carries around a table of associations from strings to pointers. This function lets you set an association.
If the object already had an association with that name, the old association will be destroyed.
Internally, the key
is converted to a #GQuark using g_quark_from_string().
This means a copy of key
is kept permanently (even after object
has been
finalized) — so it is recommended to only use a small, bounded set of values
for key
in your program, to avoid the #GQuark storage growing unbounded.
name of the key
data to associate with that key
Disable requests to fsync() to stable storage during commits. This option should only be used by build system tools which are creating disposable virtual machines, or have higher level mechanisms for ensuring data consistency.
If %TRUE, do not fsync
Sets a property on an object.
the name of the property to set
the value
This is like ostree_repo_transaction_set_ref(), except it may be invoked outside of a transaction. This is presently safe for the case where we're creating or overwriting an existing ref.
A remote for the ref
The ref to write
The checksum to point it to, or %NULL to unset
GCancellable
Add a GPG signature to a commit.
SHA256 of given commit to sign
Use this GPG key id
GPG home directory, or %NULL
A #GCancellable
This function is deprecated, sign the summary file instead. Add a GPG signature to a static delta.
Given a directory representing an already-downloaded static delta on disk, apply it, generating a new commit. The directory must be named with the form "FROM-TO", where both are checksums, and it must contain a file named "superblock", along with at least one part.
Path to a directory containing static delta data, or directly to the superblock
If %TRUE, assume data integrity
Cancellable
Generate a lookaside "static delta" from from
(%NULL means
from-empty) which can generate the objects in to
. This delta is
an optimization over fetching individual objects, and can be
conveniently stored and applied offline.
The params
argument should be an a{sv}. The following attributes
are known:
High level optimization choice
ASCII SHA256 checksum of origin, or %NULL
ASCII SHA256 checksum of target
Optional metadata
Parameters, see below
Cancellable
Remove a specified datum from the object's data associations, without invoking the association's destroy handler.
name of the key
This function gets back user data pointers stored via
g_object_set_qdata() and removes the data
from object
without invoking its destroy() function (if any was
set).
Usually, calling this function is only required to update
user data pointers with a destroy notifier, for example:
void
object_add_to_user_list (GObject *object,
const gchar *new_string)
{
// the quark, naming the object data
GQuark quark_string_list = g_quark_from_static_string ("my-string-list");
// retrieve the old string list
GList *list = g_object_steal_qdata (object, quark_string_list);
// prepend new string
list = g_list_prepend (list, g_strdup (new_string));
// this changed 'list', so we need to set it again
g_object_set_qdata_full (object, quark_string_list, list, free_string_list);
}
static void
free_string_list (gpointer data)
{
GList *node, *list = data;
for (node = list; node; node = node->next)
g_free (node->data);
g_list_free (list);
}
Using g_object_get_qdata() in the above example, instead of g_object_steal_qdata() would have left the destroy function set, and thus the partial string list would have been freed upon g_object_set_qdata_full().
A #GQuark, naming the user data pointer
Reverts the effect of a previous call to
g_object_freeze_notify(). The freeze count is decreased on object
and when it reaches zero, queued "notify" signals are emitted.
Duplicate notifications for each property are squashed so that at most one #GObject::notify signal is emitted for each property, in the reverse order in which they have been queued.
It is an error to call this function when the freeze count is zero.
If checksum
is not %NULL, then record it as the target of ref named
ref;
if remote
is provided, the ref will appear to originate from that
remote.
Otherwise, if checksum
is %NULL, then record that the ref should
be deleted.
The change will not be written out immediately, but when the transaction is completed with ostree_repo_commit_transaction(). If the transaction is instead aborted with ostree_repo_abort_transaction(), no changes will be made to the repository.
A remote for the ref
The ref to write
The checksum to point it to
Like ostree_repo_transaction_set_ref(), but takes concatenated
refspec
format as input instead of separate remote and name
arguments.
The refspec to write
The checksum to point it to
Create a new set out_reachable
containing all objects reachable
from commit_checksum,
traversing maxdepth
parent commits.
ASCII SHA256 checksum
Traverse this many parent commits, -1 for unlimited
Cancellable
Decreases the reference count of object
. When its reference count
drops to 0, the object is finalized (i.e. its memory is freed).
If the pointer to the #GObject may be reused in future (for example, if it is an instance variable of another object), it is recommended to clear the pointer to %NULL rather than retain a dangling pointer to a potentially invalid #GObject instance. Use g_clear_object() for this.
Check for a valid GPG signature on commit named by the ASCII
checksum commit_checksum
.
ASCII SHA256 checksum
Path to directory GPG keyrings; overrides built-in default if given
Path to additional keyring file (not a directory)
Cancellable
Read GPG signature(s) on the commit named by the ASCII checksum
commit_checksum
and return detailed results.
ASCII SHA256 checksum
Path to directory GPG keyrings; overrides built-in default if given
Path to additional keyring file (not a directory)
Cancellable
Verify signatures
for summary
data using GPG keys in the keyring for
remote_name,
and return an #OstreeGpgVerifyResult.
Name of remote
Summary data as a #GBytes
Summary signatures as a #GBytes
Cancellable
Emits a "notify" signal for the property property_name
on object
.
When possible, eg. when signaling a property change from within the class that registered the property, you should use g_object_notify_by_pspec() instead.
Note that emission of the notify signal may be blocked with g_object_freeze_notify(). In this case, the signal emissions are queued and will be emitted (in reverse order) when g_object_thaw_notify() is called.
This function essentially limits the life time of the closure
to
the life time of the object. That is, when the object is finalized,
the closure
is invalidated by calling g_closure_invalidate() on
it, in order to prevent invocations of the closure with a finalized
(nonexisting) object. Also, g_object_ref() and g_object_unref() are
added as marshal guards to the closure,
to ensure that an extra
reference count is held on object
during invocation of the
closure
. Usually, this function will be called on closures that
use this object
as closure data.
#GClosure to watch
Import an archive file archive
into the repository, and write its
file structure to mtree
.
A path to an archive file
The #OstreeMutableTree to write to
Optional commit modifier
Autocreate parent directories
Cancellable
Write a commit metadata object, referencing root_contents_checksum
and root_metadata_checksum
.
ASCII SHA256 checksum for parent, or %NULL for none
Subject
Body
GVariant of type a{sv}, or %NULL for none
The tree to point the commit to
Cancellable
Replace any existing metadata associated with commit referred to by
checksum
with metadata
. If metadata
is %NULL, then existing
data will be deleted.
ASCII SHA256 commit checksum
Metadata to associate with commit in with format "a{sv}", or %NULL to delete
Cancellable
Write a commit metadata object, referencing root_contents_checksum
and root_metadata_checksum
.
ASCII SHA256 checksum for parent, or %NULL for none
Subject
Body
GVariant of type a{sv}, or %NULL for none
The tree to point the commit to
The time to use to stamp the commit
Cancellable
Store the content object streamed as object_input,
with total length length
. The actual checksum will
be returned as out_csum
.
If provided, validate content against this checksum
Content object stream
Length of object_input
Cancellable
Asynchronously store the content object object
. If provided, the
checksum expected_checksum
will be verified.
If provided, validate content against this checksum
Input
Length of object
Cancellable
Invoked when content is writed
Completes an invocation of ostree_repo_write_content_async().
a #GAsyncResult
Store the content object streamed as object_input,
with total
length length
. The given checksum
will be treated as trusted.
This function should be used when importing file objects from local disk, for example.
Store content using this ASCII SHA256 checksum
Content stream
Length of object_input
Cancellable
Store as objects all contents of the directory referred to by dfd
and path
all children into the repository self,
overlaying the
resulting filesystem hierarchy into mtree
.
Directory file descriptor
Path
Overlay directory contents into this tree
Optional modifier
Cancellable
Store objects for dir
and all children into the repository self,
overlaying the resulting filesystem hierarchy into mtree
.
Path to a directory
Overlay directory contents into this tree
Optional modifier
Cancellable
Store the metadata object variant
. Return the checksum
as out_csum
.
If expected_checksum
is not %NULL, verify it against the
computed checksum.
Object type
If provided, validate content against this checksum
Metadata
Cancellable
Asynchronously store the metadata object variant
. If provided,
the checksum expected_checksum
will be verified.
Object type
If provided, validate content against this checksum
Metadata
Cancellable
Invoked when metadata is writed
Store the metadata object variant;
the provided checksum
is
trusted.
Object type
Store object with this ASCII SHA256 checksum
Metadata object stream
Length, may be 0 for unknown
Cancellable
Store the metadata object variant;
the provided checksum
is
trusted.
Object type
Store object with this ASCII SHA256 checksum
Metadata object
Cancellable
Write all metadata objects for mtree
to repo; the resulting
out_file
points to the %OSTREE_OBJECT_TYPE_DIR_TREE object that
the mtree
represented.
Mutable tree
Cancellable
Find the #GParamSpec with the given name for an
interface. Generally, the interface vtable passed in as g_iface
will be the default vtable from g_type_default_interface_ref(), or,
if you know the interface has already been loaded,
g_type_default_interface_peek().
any interface vtable for the interface, or the default vtable for the interface
name of a property to look up.
Add a property to an interface; this is only useful for interfaces that are added to GObject-derived types. Adding a property to an interface forces all objects classes with that interface to have a compatible property. The compatible property could be a newly created #GParamSpec, but normally g_object_class_override_property() will be used so that the object class only needs to provide an implementation and inherits the property description, default value, bounds, and so forth from the interface property.
This function is meant to be called from the interface's default
vtable initialization function (the class_init
member of
#GTypeInfo.) It must not be called after after class_init
has
been called for any object types implementing this interface.
If pspec
is a floating reference, it will be consumed.
any interface vtable for the interface, or the default vtable for the interface.
the #GParamSpec for the new property
Lists the properties of an interface.Generally, the interface
vtable passed in as g_iface
will be the default vtable from
g_type_default_interface_ref(), or, if you know the interface has
already been loaded, g_type_default_interface_peek().
any interface vtable for the interface, or the default vtable for the interface
If the current working directory appears to be an OSTree repository, create a new #OstreeRepo object for accessing it. Otherwise use the path in the OSTREE_REPO environment variable (if defined) or else the default system repository located at /ostree/repo.
Creates a new instance of a #GObject subtype and sets its properties.
Construction parameters (see %G_PARAM_CONSTRUCT, %G_PARAM_CONSTRUCT_ONLY) which are not explicitly specified are set to their default values.
the type id of the #GObject subtype to instantiate
an array of #GParameter
Convenient "changed" callback for use with ostree_async_progress_new_and_connect() when pulling from a remote repository.
Depending on the state of the #OstreeAsyncProgress, either displays a custom status message, or else outstanding fetch progress in bytes/sec, or else outstanding content or metadata writes to the repository in number of objects.
Compatibility note: this function previously assumed that user_data
was a pointer to a #GSConsole instance. This is no longer the case,
and user_data
is ignored.
Async progress
User data
This hash table is a set of #GVariant which can be accessed via ostree_object_name_deserialize().
Add a GPG signature to a static delta.