Fetch the repository succeeded.
package drivers
import (
"fmt"
"github.com/docker/machine/libmachine/mcnflag"
"github.com/docker/machine/libmachine/state"
)
type DriverNotSupported struct {
*BaseDriver
Name string
}
type NotSupported struct {
DriverName string
}
func (e NotSupported) Error() string {
return fmt.Sprintf("Driver %q not supported on this platform.", e.DriverName)
}
// NewDriverNotSupported creates a placeholder Driver that replaces
// a driver that is not supported on a given platform. eg fusion on linux.
func NewDriverNotSupported(driverName, hostName, storePath string) Driver {
return &DriverNotSupported{
BaseDriver: &BaseDriver{
MachineName: hostName,
StorePath: storePath,
},
Name: driverName,
}
}
func (d *DriverNotSupported) DriverName() string {
return d.Name
}
func (d *DriverNotSupported) PreCreateCheck() error {
return NotSupported{d.DriverName()}
}
func (d *DriverNotSupported) GetCreateFlags() []mcnflag.Flag {
return nil
}
func (d *DriverNotSupported) SetConfigFromFlags(flags DriverOptions) error {
return NotSupported{d.DriverName()}
}
func (d *DriverNotSupported) GetURL() (string, error) {
return "", NotSupported{d.DriverName()}
}
func (d *DriverNotSupported) GetSSHHostname() (string, error) {
return "", NotSupported{d.DriverName()}
}
func (d *DriverNotSupported) GetState() (state.State, error) {
return state.Error, NotSupported{d.DriverName()}
}
func (d *DriverNotSupported) Create() error {
return NotSupported{d.DriverName()}
}
func (d *DriverNotSupported) Remove() error {
return NotSupported{d.DriverName()}
}
func (d *DriverNotSupported) Start() error {
return NotSupported{d.DriverName()}
}
func (d *DriverNotSupported) Stop() error {
return NotSupported{d.DriverName()}
}
func (d *DriverNotSupported) Restart() error {
return NotSupported{d.DriverName()}
}
func (d *DriverNotSupported) Kill() error {
return NotSupported{d.DriverName()}
}
func (d *DriverNotSupported) Upgrade() error {
return NotSupported{d.DriverName()}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。