> ## Documentation Index
> Fetch the complete documentation index at: https://docs.directgvr.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Repository configuration

> Reference for repository configuration and error sources.

## Repository

### Repository flags

#### Sources

Source of error/information messages

| Name | Value |
| - | - |
| REPOSITORY\_SOURCE\_ALIAS | 1 |
| REPOSITORY\_SOURCE\_CATALOG | 2 |
| REPOSITORY\_SOURCE\_METAFILELOCAL | 3 |
| REPOSITORY\_SOURCE\_METAFILEREMOTE | 4 |
| REPOSITORY\_SOURCE\_STORAGELOCAL | 5 |
| REPOSITORY\_SOURCE\_STORAGEREMOTE | 6 |
| REPOSITORY\_SOURCE\_STORAGEDELTA | 7 |
| REPOSITORY\_SOURCE\_STORAGEPENDING | 8 |
| REPOSITORY\_SOURCE\_CONFIG | 9 |
| REPOSITORY\_SOURCE\_STORAGEMOVE | 10 |

#### Action flags

Reflection of what the repository is trying to do

| Name | Value | Description |
| - | - | - |
| REPOSITORY\_ACTIONFLAG\_SYNC | 0x01 | Set/unset when Repository\_SetSync called - starts/stops the synchronize process (setting this to false is the same as cancelling) |
| REPOSITORY\_ACTIONFLAG\_REFRESH | 0x02 | Set/unset when Repository\_SetRefresh called - starts/stops connection to catalog service |
| REPOSITORY\_ACTIONFLAG\_ACTIVE | 0x04 | Set/unset when Repository\_SetActive called - determines if the repository should continue processing events |
| REPOSITORY\_ACTIONFLAG\_SHUTDOWN | 0x08 | Set when Repository\_Shutdown called - prepares repository for closure |
| REPOSITORY\_ACTIONFLAG\_ERASE | 0x10 | Set/unset when Repository\_SetErase called - starts/stops erasing of repository |

#### State flags

Reflection of what the repository is currently doing

| Name | Value | Description |
| - | - | - |
| REPOSITORY\_STATEFLAG\_INSTALL | 0x0000001 | An install is required |
| REPOSITORY\_STATEFLAG\_UPDATE | 0x0000002 | An update is required |
| REPOSITORY\_STATEFLAG\_STALL | 0x0000004 | Active repository has not processed data in a while (calls to Repository\_GetLastError are valid) |
| REPOSITORY\_STATEFLAG\_ALIVE | 0x0000008 | Repository sync is in progress |
| REPOSITORY\_STATEFLAG\_LOCALID | 0x0000010 | LocalId is valid for Repository\_GetLocalId |
| REPOSITORY\_STATEFLAG\_REMOTEID | 0x0000020 | RemoteId is valid for Repository\_GetRemoteId |
| REPOSITORY\_STATEFLAG\_LOCALMETAFILE | 0x0000040 | Local metafile has been loaded in its entirety |
| REPOSITORY\_STATEFLAG\_REMOTEMETAFILE | 0x0000080 | Remote metafile has been loaded in its entirety |
| REPOSITORY\_STATEFLAG\_LOCALMETAFILEALIVE | 0x0000100 | Local metafile download is currently in progress |
| REPOSITORY\_STATEFLAG\_REMOTEMETAFILEALIVE | 0x0000200 | Remote metafile download is currently in progress |
| REPOSITORY\_STATEFLAG\_CATALOG | 0x0000400 | Catalog is present |
| REPOSITORY\_STATEFLAG\_CATALOGALIVE | 0x0000800 | Catalog retrieval in progress |
| REPOSITORY\_STATEFLAG\_ALIAS | 0x0001000 | Alias is ready to use |
| REPOSITORY\_STATEFLAG\_ALIASALIVE | 0x0002000 | Alias retrieval in progress |
| REPOSITORY\_STATEFLAG\_COPY | 0x0004000 | Copy is currently in progress |
| REPOSITORY\_STATEFLAG\_DELTA | 0x0008000 | Check for deltas when first downloading |
| REPOSITORY\_STATEFLAG\_BACKUP | 0x0010000 | Backup store has been configured |
| REPOSITORY\_STATEFLAG\_PENDING | 0x0020000 | Repository is using the pending storage for writing and/or reading |
| REPOSITORY\_STATEFLAG\_CLEAN | 0x0040000 | Clean is currently in progress |
| REPOSITORY\_STATEFLAG\_SYNC | 0x0080000 | Sync is currently in progress |
| REPOSITORY\_STATEFLAG\_REFRESH | 0x0100000 | Refresh is currently in progress |
| REPOSITORY\_STATEFLAG\_PAUSE | 0x0200000 | Sync is paused |
| REPOSITORY\_STATEFLAG\_ERASE | 0x0400000 | Erase is currently in progress |
| REPOSITORY\_STATEFLAG\_APPLY | 0x0800000 | Apply is currently in progress |
| REPOSITORY\_STATEFLAG\_CLEANPENDING | 0x1000000 | Cleaning the pending data |

## Catalog

These properties are typically handled by the catalog service and are only provided for a reference example

| Property | Description |
| - | - |
| id | Id of metafile - used for update checking without having to download the metafile |
| metafile | Url to metafile |
| config | Configuration options merged with client’s repository dictionary - see Repository options for more details |

**Example**

```json theme={null}
{
        "id": "973E333EDF48E8B1A57789F2E968DB02FEA4D00C",
        "metafile": "http://qa.axt.com/pa/5/Communicator/973E333EDF48E8B1A57789F2E968DB02FEA4D00C/metafile.json",
        "config": {
            "remote": {
                "type": "httppiece",
                "flags": 0,
                "url": "http://qa.axt.com/pa/5/Communicator/973E333EDF48E8B1A57789F2E968DB02FEA4D00C/"
            }
        }
}
```

## MetaFile

Describes the snapshot of the content.

| Property | Description |
| - | - |
| id | Info hash of the content |
| files | Contains a list of the files in the snapshot |
| files.name | Name of the file (and path if it's in a subdirectory) |
| files.location | Location on disk where the file was read from (This is necessary during slicing, but can be removed before releasing to users) |
| files.size | Size of the file in bytes |
| files.pad | File padding alignment |
| masks | Contains a list of the predefined masks in a metafile |
| masks.\{Name} | Name of the mask and base 64 encoded bitfield |
| pieces | Contains piece level information about the content |
| pieces.digests | Contains a list of the digests for each piece |
| pieces.size | The piece size in bytes |

**Example**

```json theme={null}
{
  "id": "973E333EDF48E8B1A57789F2E968DB02FEA4D00C",
  "files": [
    {
      "name": "CommunicatorOCSLabs.exe",
      "location": "\\\\192.168.12.25\\pa\\0119-Comm\\CommunicatorOCSLabs.exe",
      "size": 25269088,
      "pad": 158880
    }
  ],
  "pieces": {
    "digests": [
      "lyyd0Bnfp51b8cOwTHrO98iQbcc=",
      "kBJ/+EZyZOu8aS4a4z/zLVDdJDQ=",
      "cmsU/szE6OPHj5F1MT+cgyMDqt0=",
      "BHaFJ3AmuAYcjnbXFYgLhSokmu0=",
      "jW6Eo9sk3Dh+ZbS97IcLNWBwunI=",
      "GnZTiWCZgpxSSJ1tY/ATxbmzU1I=",
      "t7P+2527BmSF7Zl7JJP3U7OJoLA=",
      "TSsXAOSEj6XKxK41O6sTP4yAKh8=",
      "i7ETQDryUYGDJ4ju66cjl/Z26Z8=",
      "3FhGVA5syILTabA9owtRn8ITgMA=",
      "P/fZjE65U5rg2XsnHHd2MV8xLjY=",
      "2mbejRMfLuSQxKLfJlIqYrm0Jig=",
      "i0hZ+MTWIzctl9rm6T1hzMHYat4=",
      "9Pa71N/QA5nce04fgei4HsRvvmQ=",
      "1qLM9lnc9grXHhGQNteZ7chn9vg=",
      "KUh5GWuEzmiiBe0P6VqIEbp4rLo=",
      "QvK3ChtP7og5rtJ+N98yigQYFEk=",
      "lMKL3+G5uxLq/T7R7Qo6L1+MGAA=",
      "6kVv4VMGprMrja+QRlAUbU00+oI=",
      "rFUfvae0CJBq3BuDEUaBn5nYMb0=",
      "mDuSA9MqGunhHvjRdg58sm4mhi4=",
      "l+YGRZG465aaAXPLRbZAxn7GWRk=",
      "kAy/Tnp8lTV6n8LdKO03mrfpX10=",
      "72JfnCKGd3jQdZKteLgIcbV4d38=",
      "/+qOq4nqWpcF09o8ZPa8hBfKc3s=",
      "u9ZHt1qalQC9+xkeoN1lkLIknFY=",
      "87naIJ+gOY42Q5U9yxWNRTPNpoY=",
      "EAsjnL/e/1eSBO3LiJ79GUsjZF4=",
      "Npn8ghvk3cyvBo0aohOLLQZjKu8=",
      "O0QguKzRWC4CuPGgCvSi+mwcQac=",
      "sfw+PzKyXXSAvFufNtl/jfg8ouQ=",
      "fSGlkdWd+0L6F/7V0JdxLFV7mEg=",
      "DdYMyicFy8vCGNECxf2K1glObcQ=",
      "vqoLJ2ucAoioj1F1cKLSQeloaRI=",
      "j6O6K2zWScfe75tj7szTgkc5+iA=",
      "f5UOLXUQ85c9NXwvztTp9/1v0Sk=",
      "kB12R7qy3wJ44axKYm0Ri0I8Jgw=",
      "uKk7w4cLJyFoDkLV3R9uiG/y+1A=",
      "ZYC8mOhNBtYuVr1H9hNLLt5eDHA=",
      "SkHovnaSm2mp3UklzcPbUE/MkhM=",
      "fDA1WGQ0GuOAAMEw0/IbFbR2WqU=",
      "kAUm8u0SiWM/IVHN7usbzNHV900=",
      "OU87WIZ2TVI+GRKNwrsX7LwHFx0=",
      "+AjfKjwW6u80zXSIob5PyT4T//o=",
      "jmqBrAmT63LlOsPC2LQXf+LKj1s=",
      "eD1TCPXArzHGlZ8Abtace1gPjgw=",
      "8U4C3eynz/1IXq61Wu1nxFDL+NM=",
      "2HNFeubag7kuaqad7qRDVZBazhw=",
      "eLPgknZF+PA6/trogcuDzVrNtUk=",
      "cRILiE2GlKfc1D2QhlzVjYIUDtw=",
      "Mjf/2jvwdEFIY6ze5kPrtP9h2sA=",
      "90HjOj7INpPsiMyEMq77PsXTTrc=",
      "qWNOyW3QhS6UdyFnAf+30pMy+G8=",
      "Cvmv+Sk7K0e3ExITG8MhsaBKKBM=",
      "mSvdEzqGcVAsKf+zEUNwJApQgVU=",
      "tNOJDGwfrtti9AIT8UGQ8KSB1vw=",
      "6Bd63VjLezCKYaDYDQdxHxN0F9g=",
      "fpBNcp+MGMLxaaOD0Qk6VoHwJoA=",
      "6bus0A7kgOz3QeaRbB5e9qvf8bU=",
      "BOSNkDOQ0DnWL4WR4oR/sq+sTLw=",
      "8/MvkpaSmtNCYxDtMwzJGn2F4yA=",
      "CJhMzru01ie2n/VTBSWKiC7SZaE=",
      "eU2BOD2A1IBABjr/XdV4xNp1XW8=",
      "35Exm6bLWLRq8iJ48kf+AhCaWhg=",
      "Mcefemzux50GLMCE5xTo387Shvs=",
      "zSxCZz7BoYJfrq9sE8F4ECTqvno=",
      "EyCX7oBZAGuFilmnp1cM8fhapAQ=",
      "QejoNJUeuVYUfdtux5WahZi8hz0=",
      "18uSUwO3tIoaWetmkwYoHslUrcE=",
      "5qcZcqaUrbkeFYkhXTxzCg+wxag=",
      "eKg01AL3hzrhyrXExkoEqHK43+w=",
      "uWv+198JtmkbAudl9fe0BZcPL8U=",
      "vSFslInzKH48+04IrWo4qHNE+GM=",
      "BLq8bmAIn2e1cEn8pLMlR92TZ38=",
      "i2FH8l4FxsNkLvZY+xtOaZimZug=",
      "1s9/68ODHPIWpe2+hv41AdD4JTI=",
      "gUfmYJEeAiWcrup2a3dV/qcVeBQ=",
      "Wn8K9mW9GJdAcKi25HkVU5Cw9Rk=",
      "vKsx5A3i7Nii4e/Jk6dlA8yQsSQ=",
      "f6E2bHKpI5KLuqDZuBIbVMhorfg=",
      "2trFsTGCWlWpc3VwJHpFtQc16j8=",
      "CUDZAJuZY3e+bKcfr8lLj/x0sII=",
      "NOvpnecF2H8FrOVsOumj63WIwgE=",
      "EGDOAQEv6EXk/dk7asqgc0BtW0A=",
      "lbkQFZ4Z15mVQ7pNAajSEVVyVA0=",
      "HhHT6Q0gph8IBijNWnDrb1W4mhM=",
      "nDqj2oZQI4zXsvhu9ty71JYGO9Q=",
      "FPbNeeUzFfPhAPx7RqHMsl4sgqg=",
      "jVMxGTLL2cDoBGZQwjuaHZyKV18=",
      "Ci1Z4EiznKrAXc+L8Dc3nzYiUAQ=",
      "2vQDq+gnhN+E0C1HSG4FaE3SFf8=",
      "2o16hmQqkGNRkaXvFftCrvmaSz0=",
      "UtNMxxSzCPSxeWI6LF9O/g3bi/s=",
      "CZ+W8ojjEoMI447hJlef92Fo8nc=",
      "yqXzsuHtL+5vlWv1XdjovYxR1uY=",
      "9j4PurN4rtl25nUxGBgIzmoRUOw=",
      "bbDaNzQzTiOG1ndcXJBWkwxoiAE="
    ],
    "size": 262144
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.