Documentation
¶
Overview ¶
Package storage is the root of goapplib's storage module. An app keeps its own records in its own store, and keeps the files those records point at in mounts. A mount is a folder or a GitHub repo, and later an S3 or GCS bucket. The app reaches a private mount through a connection, a sign-in the server holds.
The module is separate from goapplib so that an app without mounts never downloads their dependencies. It shares goapplib's version and is tagged storage/vX.Y.Z on the same commit as vX.Y.Z. https://panyam.github.io/goapplib/reference/storage-module/ has the layout, the version policy and the dependency rule.
Directories
¶
| Path | Synopsis |
|---|---|
|
backends
|
|
|
gae
module
|
|
|
gorm
module
|
|
|
Package blobs keeps files by the SHA-256 of their contents.
|
Package blobs keeps files by the SHA-256 of their contents. |
|
Package connections names the sign-ins a server holds for third-party services, so a mount over a private repo can read it.
|
Package connections names the sign-ins a server holds for third-party services, so a mount over a private repo can read it. |
|
connectionstest
Package connectionstest is the contract suite for connections.Store.
|
Package connectionstest is the contract suite for connections.Store. |
|
fsstore
Package fsstore keeps connection records in a folder, one YAML file per connection.
|
Package fsstore keeps connection records in a folder, one YAML file per connection. |
|
drivers
|
|
|
gcs
module
|
|
|
msgraph
module
|
|
|
s3
module
|
|
|
Package mounts names the places an app's files live.
|
Package mounts names the places an app's files live. |
|
folder
Package folder is the mounts driver for a folder on the server's disk.
|
Package folder is the mounts driver for a folder on the server's disk. |
|
fsstore
Package fsstore keeps mount records in a folder, one YAML file per mount, named <name>.yaml.
|
Package fsstore keeps mount records in a folder, one YAML file per mount, named <name>.yaml. |
|
github
Package github is the mounts driver for GitHub repositories, read and written through GitHub's REST API.
|
Package github is the mounts driver for GitHub repositories, read and written through GitHub's REST API. |
|
github/githubtest
Package githubtest is a fake GitHub for tests of code that reads and writes repos: the mounts GitHub driver, the storage example app, and consumers' own tests.
|
Package githubtest is a fake GitHub for tests of code that reads and writes repos: the mounts GitHub driver, the storage example app, and consumers' own tests. |
|
mountstest
Package mountstest checks that a mounts.RecordStore keeps the contract the registry relies on.
|
Package mountstest checks that a mounts.RecordStore keeps the contract the registry relies on. |