mirror of
https://github.com/distribution/distribution.git
synced 2025-08-17 14:28:55 +00:00
go1.8 Plugin package brings a mechanism for dynamyc loading. StorageDriver or AccessController can be compiled as plugin and can be loaded at runtime. Signed-off-by: Anton Tiurin <noxiouz@yandex.ru>
14 lines
232 B
Go
14 lines
232 B
Go
// +build !go1.8
|
|
|
|
package pluginloader
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/docker/distribution/context"
|
|
)
|
|
|
|
func LoadPlugins(ctx context.Context, paths []string) error {
|
|
return fmt.Errorf("only golang >= 1.8 supports dynamic plugins")
|
|
}
|