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. |
|
blobstest
Package blobstest checks that a blobs.Store keeps the contract callers rely on.
|
Package blobstest checks that a blobs.Store keeps the contract callers rely on. |
|
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. |
|
entratest
Package entratest is a fake Microsoft Entra ID token service for tests of KindEntra and KindEntraUser connections.
|
Package entratest is a fake Microsoft Entra ID token service for tests of KindEntra and KindEntraUser connections. |
|
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. |
|
bucket
Package bucket serves mounts over an object store bucket, such as S3 or Google Cloud Storage, through the small Bucket interface.
|
Package bucket serves mounts over an object store bucket, such as S3 or Google Cloud Storage, through the small Bucket interface. |
|
bucket/buckettest
Package buckettest is an in-memory bucket.Bucket, with or without versions, for testing code over bucket mounts without a cloud fake.
|
Package buckettest is an in-memory bucket.Bucket, with or without versions, for testing code over bucket mounts without a cloud fake. |
|
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. |
|
github/githubtest/cmd/fakegithub
command
Command fakegithub serves githubtest's fake as a GitHub Enterprise Server built from a seed file, for an exercise that runs an app outside the Go test process, such as one in a container.
|
Command fakegithub serves githubtest's fake as a GitHub Enterprise Server built from a seed file, for an exercise that runs an app outside the Go test process, such as one in a container. |
|
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. |