Documentation ¶
Overview ¶
Package bootstrap creates default data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Set is used by wire. Set = wire.NewSet(ProvideBootstrap) )
Functions ¶
This section is empty.
Types ¶
type Bootstrapper ¶
type Bootstrapper struct { // PublicSession is a well-known session for unauthenticated access. PublicSession *session.Session // ScratchPad is a well-known TenantID for a default tenancy. ScratchPad *tenant.ID // Unauthenticated is a well-known PrincipalID that represents // unauthenticated requests. It may have ACLs associated with it, to // make certain vHosts public. Unauthenticated *principal.ID }
Bootstrapper creates default data.
func ProvideBootstrap ¶
func ProvideBootstrap( ctx context.Context, blobs *blob.Store, db *pgxpool.Pool, f *fs.Store, logger *log.Logger, principals principal.PrincipalsServer, tokens token.TokensServer, tenants tenant.TenantsServer, vHosts vhost.VHostsServer, ) (*Bootstrapper, error)
ProvideBootstrap is called by wire.
Click to show internal directories.
Click to hide internal directories.