Files
loki/pkg/logcli
Christian Haudum 2e775f3f44 chore(storage): Restructure shipper packages (#10729)
**What this PR does / why we need it**:

This PR restructures the code for the shipper component of the Loki storage layer.

New package layout:

```console
$ tree -d pkg/storage/stores/shipper 
pkg/storage/stores/shipper
└── indexshipper
    ├── boltdb
    │   └── compactor
    ├── compactor
    │   ├── client
    │   │   └── grpc
    │   ├── deletion
    │   ├── deletionmode
    │   ├── generationnumber
    │   └── retention
    ├── downloads
    ├── gatewayclient
    ├── index
    ├── indexgateway
    ├── storage
    ├── testutil
    ├── tsdb
    │   ├── index
    │   ├── testdata
    │   └── testutil
    ├── uploads
    └── util

23 directories
```

* TSDB and BoltDB specific code is under `./pkg/storage/stores/shipper/indexshipper/tsdb` and `./pkg/storage/stores/shipper/indexshipper/boltdb` respectively.
* Common code for both TSDB and BoltDB is directly under `./pkg/storage/stores/shipper/indexshipper` and subdirectories, such as `uploads/`, `downloads/`, `compactor/`, ...

**Special notes for your reviewer**:

This PR is identical to https://github.com/grafana/loki/pull/10724 except of the package `pkg/storage/stores/indexshipper` the package is `pkg/storage/stores/shipper/indexshipper` (one level deeper).


Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
2023-09-28 10:43:58 +03:00
..