bootstrap

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2021 License: Apache-2.0 Imports: 28 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL