Enums

Details

class OSTree.DeploymentUnlockedState(value)

Bases: GLib.Enum

NONE = 0
DEVELOPMENT = 1
HOTFIX = 2
TRANSIENT = 3
class OSTree.GpgError(value)

Bases: GLib.Enum

Errors returned by signature creation and verification operations in OSTree. These may be returned by any API which creates or verifies signatures.

New in version 2017.10.

NO_SIGNATURE = 0

A signature was expected, but not found.

INVALID_SIGNATURE = 1

A signature was malformed.

MISSING_KEY = 2

A signature was found, but was created with a key not in the configured keyrings.

EXPIRED_SIGNATURE = 3

A signature was expired.

New in version 2020.1.

EXPIRED_KEY = 4

A signature was found, but the key used to sign it has expired.

New in version 2020.1.

REVOKED_KEY = 5

A signature was found, but the key used to sign it has been revoked.

New in version 2020.1.

class OSTree.GpgSignatureAttr(value)

Bases: GLib.Enum

Signature attributes available from an OSTree.GpgVerifyResult. The attribute’s GLib.VariantType is shown in brackets.

VALID = 0

[#G_VARIANT_TYPE_BOOLEAN] Is the signature valid?

SIG_EXPIRED = 1

[#G_VARIANT_TYPE_BOOLEAN] Has the signature expired?

USER_NAME = 10

[#G_VARIANT_TYPE_STRING] The name of the signing key’s primary user

USER_EMAIL = 11

[#G_VARIANT_TYPE_STRING] The email address of the signing key’s primary user

FINGERPRINT_PRIMARY = 12

[#G_VARIANT_TYPE_STRING] Fingerprint of the signing key’s primary key (will be the same as OSTree.GpgSignatureAttr.FINGERPRINT if the the signature is already from the primary key rather than a subkey, and will be the empty string if the key is missing.)

KEY_EXP_TIMESTAMP = 13

[#G_VARIANT_TYPE_INT64] Key expiration Unix timestamp (0 if no expiration or if the key is missing)

KEY_EXP_TIMESTAMP_PRIMARY = 14

[#G_VARIANT_TYPE_INT64] Key expiration Unix timestamp of the signing key’s primary key (will be the same as OSTree.GpgSignatureAttr.KEY_EXP_TIMESTAMP if the signing key is the primary key and 0 if no expiration or if the key is missing)

KEY_EXPIRED = 2

[#G_VARIANT_TYPE_BOOLEAN] Has the signing key expired?

KEY_REVOKED = 3

[#G_VARIANT_TYPE_BOOLEAN] Has the signing key been revoked?

KEY_MISSING = 4

[#G_VARIANT_TYPE_BOOLEAN] Is the signing key missing?

FINGERPRINT = 5

[#G_VARIANT_TYPE_STRING] Fingerprint of the signing key

TIMESTAMP = 6

[#G_VARIANT_TYPE_INT64] Signature creation Unix timestamp

EXP_TIMESTAMP = 7

[#G_VARIANT_TYPE_INT64] Signature expiration Unix timestamp (0 if no expiration)

PUBKEY_ALGO_NAME = 8

[#G_VARIANT_TYPE_STRING] Name of the public key algorithm used to create the signature

HASH_ALGO_NAME = 9

[#G_VARIANT_TYPE_STRING] Name of the hash algorithm used to create the signature

class OSTree.ObjectType(value)

Bases: GLib.Enum

Enumeration for core object types; OSTree.ObjectType.FILE is for content, the other types are metadata.

FILE = 1

Content; regular file, symbolic link

DIR_TREE = 2

List of children (trees or files), and metadata

DIR_META = 3

Directory metadata

COMMIT = 4

Toplevel object, refers to tree and dirmeta for root

TOMBSTONE_COMMIT = 5

Toplevel object, refers to a deleted commit

COMMIT_META = 6

Detached metadata for a commit

Symlink to a .file given its checksum on the payload only.

FILE_XATTRS = 8

Detached xattrs content, for ‘bare-split-xattrs’ mode.

Hardlink to a .file-xattrs given the checksum of its .file object.

class OSTree.RepoCheckoutFilterResult(value)

Bases: GLib.Enum

New in version 2018.2.

ALLOW = 0

Do checkout this object

SKIP = 1

Ignore this object

class OSTree.RepoCheckoutMode(value)

Bases: GLib.Enum

NONE = 0

No special options

USER = 1

Ignore uid/gid of files

class OSTree.RepoCheckoutOverwriteMode(value)

Bases: GLib.Enum

NONE = 0

No special options

UNION_FILES = 1

When layering checkouts, unlink() and replace existing files, but do not modify existing directories (unless whiteouts are enabled, then directories are replaced)

ADD_FILES = 2

Only add new files/directories

UNION_IDENTICAL = 3

Like UNION_FILES, but error if files are not identical (requires hardlink checkouts)

class OSTree.RepoCommitFilterResult(value)

Bases: GLib.Enum

ALLOW = 0

Do commit this object

SKIP = 1

Ignore this object

class OSTree.RepoCommitIterResult(value)

Bases: GLib.Enum

ERROR = 0
END = 1
FILE = 2
DIR = 3
class OSTree.RepoLockType(value)

Bases: GLib.Enum

Flags controlling repository locking.

New in version 2021.3.

SHARED = 0

A “read only” lock; multiple readers are allowed.

EXCLUSIVE = 1

A writable lock at most one writer can be active, and zero readers.

class OSTree.RepoMode(value)

Bases: GLib.Enum

See the documentation of OSTree.Repo for more information about the possible modes.

BARE = 0

Files are stored as themselves; checkouts are hardlinks; can only be written as root

ARCHIVE = 1

Files are compressed, should be owned by non-root. Can be served via HTTP.

New in version 2017.12.

ARCHIVE_Z2 = 1

Legacy alias for OSTREE_REPO_MODE_ARCHIVE

BARE_USER = 2

Files are stored as themselves, except ownership; can be written by user. Hardlinks work only in user checkouts.

BARE_USER_ONLY = 3

Same as BARE_USER, but all metadata is not stored, so it can only be used for user checkouts. Does not need xattrs.

BARE_SPLIT_XATTRS = 4

Same as BARE_USER, but xattrs are stored separately from file content, with dedicated object types.

class OSTree.RepoRemoteChange(value)

Bases: GLib.Enum

The remote change operation.

ADD = 0

Add a remote

ADD_IF_NOT_EXISTS = 1

Like above, but do nothing if the remote exists

DELETE = 2

Delete a remote

DELETE_IF_EXISTS = 3

Delete a remote, do nothing if the remote does not exist

REPLACE = 4

Add or replace a remote

New in version 2019.2.

class OSTree.StaticDeltaGenerateOpt(value)

Bases: GLib.Enum

Parameters controlling optimization of static deltas.

LOWLATENCY = 0

Optimize for speed of delta creation over space

MAJOR = 1

Optimize for delta size (may be very slow)

class OSTree.StaticDeltaIndexFlags(value)

Bases: GLib.Enum

Flags controlling static delta index generation.

STATIC_DELTA_INDEX_FLAGS_NONE = 0

No special flags