Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllFields ¶ added in v0.17.7
AllFields returns a copy of the whole table, keyed by slug, for the frontend.
func FieldSlugs ¶ added in v0.17.7
func FieldSlugs() []string
FieldSlugs lists the slugs that declare collector-only fields, sorted.
Types ¶
type Field ¶ added in v0.17.7
type Field struct {
Key string `json:"key"`
Label string `json:"label"`
Description string `json:"description"`
Secret bool `json:"secret,omitempty"`
Required bool `json:"required,omitempty"`
}
Field is one credential input the earnings collector needs and the deploy form does not already ask for.
A service's wizard form is built from the catalog's docker.env plus these fields. The container's environment contract and the collector's login are frequently NOT the same thing: Repocket's container authenticates with RP_EMAIL/RP_API_KEY while its collector signs in to Firebase with the account email and password, and a cookie-driven collector (EarnApp, Salad, PacketStream) needs a browser cookie the container never sees.
These live here, next to the collectors that read them, because the frontend's copy silently went stale: a web-catalog rename of Repocket's docker.env keys left the wizard with no field for the collector's credentials at all, so the collector could only ever answer "Repocket email and password are required". The frontend now renders whatever this table declares (AppState.collectorFields), and TestEveryCollectorCanReachItsCredentialsFromTheWizardForm proves every collector's required keys are reachable from docker.env plus this table.
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}