Documentation
¶
Overview ¶
Package forms is the port of the store of the scans of the forms of a parent's consent: the closed bucket of the operator in Cloud Storage, where api writes under a prefix of its own and reads nothing, and a folder outside every git working tree, which no development agent gets, for the dev projects and the first app. The scan never enters the database api.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrFailed = errors.New("forms: the store failed")
ErrFailed is a store that did not do what it was asked.
Functions ¶
This section is empty.
Types ¶
type Bucket ¶
Bucket is the store of a bucket of Cloud Storage, through its JSON API, with the service's own account: client carries its token — one of golang.org/x/oauth2/google's — and base is the API's root, its public one by default. Its objects are named by the prefix and the scan's name. The account may create and erase objects there and read none.
type Dir ¶
type Dir string
Dir is the store of a folder: a file a scan, under its name.
type Store ¶
type Store interface {
Put(ctx context.Context, object string, scan []byte, mediaType string) error
Delete(ctx context.Context, object string) error
}
Store is where the scans lie, by the name of each: api creates a scan, a new one in the place of the one before, and erases it, and never reads it back.