Documentation
¶
Overview ¶
Package dispatch defines the Dispatcher interface for provisioning dispatch infrastructure during install. Implementations (e.g. GCF) create the cloud function, OIDC federation, and org-level secrets/variables needed by the shim workflow.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶
type Dispatcher interface {
// Name returns a human-readable identifier (e.g. "gcf").
Name() string
// Provision creates the dispatch infrastructure and returns
// org-level variables to store (e.g. mint URL).
Provision(ctx context.Context) (variables map[string]string, err error)
// StoreAgentPEM persists a role's PEM key in the mint's secret store.
// Called once per org/role during App setup so partial failures are survivable.
StoreAgentPEM(ctx context.Context, org, role string, pem []byte) error
// OrgSecretNames returns the names of org-level secrets this
// dispatcher manages.
OrgSecretNames() []string
// OrgVariableNames returns the names of org-level variables this
// dispatcher manages.
OrgVariableNames() []string
}
Dispatcher provisions dispatch infrastructure during install.
Click to show internal directories.
Click to hide internal directories.