Add an "ocis shares clean-corrupt-public-shares" maintenance command that removes public-share entries with a nil/empty resource_id. Such an entry makes the json public-share manager's ListPublicShares panic with a nil-pointer dereference; since the manager reads all entries and filters in memory, one bad row poisons the endpoint for the whole tenant. The command reads the raw persistence (so it never triggers the panic itself) and writes back through the same metadata storage path the manager uses, so blob size, mtime and etag are recomputed automatically. Defaults to --dry-run and supports the jsoncs3 and json public-share drivers. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
ocis
The ocis package includes the Infinite Scale runtime and commands for the Infinite Scale command-line interface (CLI), which are not bound to a service.
Table of Contents
Service Registry
This package also configures the service registry which will be used to look up the service addresses.
Available registries are:
- nats-js-kv (default)
- memory
To configure which registry to use, you have to set the environment variable MICRO_REGISTRY, and for all except memory you also have to set the registry address via MICRO_REGISTRY_ADDRESS.
Memory limits
oCIS will automatically set the go native GOMEMLIMIT to 0.9. To disable the limit set AUTOMEMEMLIMIT=off. For more information take a look at the official Guide to the Go Garbage Collector.
CLI Commands
See the dev docs, Service Independent CLI for more details.