mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
15a538a627
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>
19 lines
542 B
Go
19 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")
|
|
}
|