Use the (new) plugin fixtures for plugin tests rather than pulling plugins from hub. This removes the restriction for platforms/archs since plugin binaries get built in the test environment. Future work would be to add test plugins for the various subsystems so tests that are actually using plugins (e.g. volumes, networks) can be ported to use the fixtures as well. Signed-off-by: Brian Goff <cpuguy83@gmail.com> Upstream-commit: 15a538a627e1d0898862c9e6ca7472cd7fb517ce Component: engine
20 lines
542 B
Go
20 lines
542 B
Go
// +build !linux
|
|
|
|
package plugin
|
|
|
|
import (
|
|
"github.com/docker/docker/api/types"
|
|
"github.com/pkg/errors"
|
|
"golang.org/x/net/context"
|
|
)
|
|
|
|
// Create is not supported on this platform
|
|
func Create(ctx context.Context, c CreateClient, name string, opts ...CreateOpt) error {
|
|
return errors.New("not supported on this platform")
|
|
}
|
|
|
|
// CreateInRegistry is not supported on this platform
|
|
func CreateInRegistry(ctx context.Context, repo string, auth *types.AuthConfig, opts ...CreateOpt) error {
|
|
return errors.New("not supported on this platform")
|
|
}
|