mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Make PKI data and RunnerFactory public objects (#865)
* Make PKI data and RunnerFactory public objects * removes unnecessary nullRunner object * renames secure factory to point out MTLS
This commit is contained in:
@@ -21,6 +21,15 @@ type RunnerPool interface {
|
||||
Shutdown(context.Context) error
|
||||
}
|
||||
|
||||
type PKIData struct {
|
||||
Ca string
|
||||
Key string
|
||||
Cert string
|
||||
}
|
||||
|
||||
// MTLSRunnerFactory represents a factory method for constructing runners using mTLS
|
||||
type MTLSRunnerFactory func(addr string, pki *PKIData) (Runner, error)
|
||||
|
||||
// Runner is the interface to invoke the execution of a function call on a specific runner
|
||||
type Runner interface {
|
||||
TryExec(ctx context.Context, call RunnerCall) (bool, error)
|
||||
|
||||
Reference in New Issue
Block a user