mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Clean up/make consistent the APIs for registering core components, make Docker an optional component at compile time (#1111)
This commit is contained in:
@@ -646,3 +646,9 @@ func (w *waitResult) wait(ctx context.Context) (status string, err error) {
|
||||
}
|
||||
|
||||
var _ drivers.Driver = &DockerDriver{}
|
||||
|
||||
func init() {
|
||||
drivers.Register("docker", func(config drivers.Config) (drivers.Driver, error) {
|
||||
return NewDocker(config), nil
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user