52 lines
2.5 KiB
Go
52 lines
2.5 KiB
Go
//go:build linux && !amd64
|
|
|
|
/*
|
|
Copyright 2016 The Kubernetes Authors All rights reserved.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/
|
|
|
|
package kvm
|
|
|
|
import (
|
|
"fmt"
|
|
"runtime"
|
|
|
|
"github.com/docker/machine/libmachine/drivers"
|
|
"github.com/docker/machine/libmachine/mcnflag"
|
|
"github.com/docker/machine/libmachine/state"
|
|
)
|
|
|
|
// This is a stub driver for unsupported architectures. All function fail with
|
|
// notSupported error or return an zero value.
|
|
|
|
var notSupported = fmt.Errorf("the kvm driver is not supported on %q", runtime.GOARCH)
|
|
|
|
func (d *Driver) Create() error { return notSupported }
|
|
func (d *Driver) GetCreateFlags() []mcnflag.Flag { return nil }
|
|
func (d *Driver) GetIP() (string, error) { return "", notSupported }
|
|
func (d *Driver) GetMachineName() string { return "" }
|
|
func (d *Driver) GetSSHHostname() (string, error) { return "", notSupported }
|
|
func (d *Driver) GetSSHKeyPath() string { return "" }
|
|
func (d *Driver) GetSSHPort() (int, error) { return 0, notSupported }
|
|
func (d *Driver) GetSSHUsername() string { return "" }
|
|
func (d *Driver) GetURL() (string, error) { return "", notSupported }
|
|
func (d *Driver) GetState() (state.State, error) { return state.None, notSupported }
|
|
func (d *Driver) Kill() error { return notSupported }
|
|
func (d *Driver) PreCreateCheck() error { return notSupported }
|
|
func (d *Driver) Remove() error { return notSupported }
|
|
func (d *Driver) Restart() error { return notSupported }
|
|
func (d *Driver) SetConfigFromFlags(opts drivers.DriverOptions) error { return notSupported }
|
|
func (d *Driver) Start() error { return notSupported }
|
|
func (d *Driver) Stop() error { return notSupported }
|