Aktualizr
C++ SOTA Client
All Classes Namespaces Files Functions Variables Enumerations Enumerator Pages
Enumerations
garage_common.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  RunMode { RunMode::kDefault = 0, RunMode::kDryRun, RunMode::kWalkTree, RunMode::kPushTree }
 Execution mode to run garage tools in. More...
 
enum  OstreeObjectType {
  OSTREE_OBJECT_TYPE_UNKNOWN = 0, OSTREE_OBJECT_TYPE_FILE = 1, OSTREE_OBJECT_TYPE_DIR_TREE = 2, OSTREE_OBJECT_TYPE_DIR_META = 3,
  OSTREE_OBJECT_TYPE_COMMIT = 4, OSTREE_OBJECT_TYPE_TOMBSTONE_COMMIT = 5, OSTREE_OBJECT_TYPE_COMMIT_META = 6, OSTREE_OBJECT_TYPE_PAYLOAD_LINK = 7
}
 Types of OSTree objects, borrowed from libostree/ostree-core.h. More...
 

Enumeration Type Documentation

◆ OstreeObjectType

enum OstreeObjectType
strong

Types of OSTree objects, borrowed from libostree/ostree-core.h.

Copied here to avoid a dependency. We do not currently handle types 5-7, and UNKNOWN is our own invention for pseudo-backwards compatibility.

OSTREE_OBJECT_TYPE_FILE: Content; regular file, symbolic link OSTREE_OBJECT_TYPE_DIR_TREE: List of children (trees or files), and metadata OSTREE_OBJECT_TYPE_DIR_META: Directory metadata OSTREE_OBJECT_TYPE_COMMIT: Toplevel object, refers to tree and dirmeta for root OSTREE_OBJECT_TYPE_TOMBSTONE_COMMIT: Toplevel object, refers to a deleted commit OSTREE_OBJECT_TYPE_COMMIT_META: Detached metadata for a commit OSTREE_OBJECT_TYPE_PAYLOAD_LINK: Symlink to a .file given its checksum on the payload only.

Enumeration for core object types; OSTREE_OBJECT_TYPE_FILE is for content, the other types are metadata.

Definition at line 34 of file garage_common.h.

◆ RunMode

enum RunMode
strong

Execution mode to run garage tools in.

Enumerator
kDefault 

Default operation.

Upload objects to server if necessary and relevant.

kDryRun 

Dry run.

Do not upload any objects.

kWalkTree 

Walk the entire tree (without uploading).

Do not assume that if an object exists, its parents must also exist.

kPushTree 

Walk the entire tree and upload any missing objects.

Do not assume that if an object exists, its parents must also exist.

Definition at line 6 of file garage_common.h.