Documentation
¶
Overview ¶
Package migrate provides domain logic for migrating built-in auth handlers to plugin-based handlers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FetchFunc ¶
type FetchFunc func(ctx context.Context, deps []solution.PluginDependency) ([]plugin.FetchResult, error)
FetchFunc is the signature for the function that fetches plugins.
type Result ¶
type Result struct {
Name string `json:"name" yaml:"name"`
PluginSource string `json:"pluginSource" yaml:"pluginSource"`
TokenMessage string `json:"tokenMessage" yaml:"tokenMessage"`
Status Status `json:"status" yaml:"status"`
ErrorMessage string `json:"errorMessage,omitempty" yaml:"errorMessage,omitempty"`
}
Result holds the migration result for a single handler.
func Handlers ¶
func Handlers(ctx context.Context, officialReg *authofficial.Registry, authReg *auth.Registry, fetchFn FetchFunc) []Result
Handlers performs the migration for all official auth handlers. It fetches plugin binaries via fetchFn and validates cached token accessibility for each handler.
func (*Result) StatusString ¶
StatusString returns the status as a string for display.
Click to show internal directories.
Click to hide internal directories.