Documentation ¶
Overview ¶
Copyright © LiquidWeb
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.
Copyright © LiquidWeb ¶
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.
Copyright © LiquidWeb ¶
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.
Index ¶
- Constants
- type Driver
- func (self *Driver) Create() error
- func (self *Driver) DriverName() string
- func (self *Driver) GetCreateFlags() []mcnflag.Flag
- func (self *Driver) GetIP() (ip string, err error)
- func (self *Driver) GetMachineName() string
- func (self *Driver) GetSSHHostname() (string, error)
- func (self *Driver) GetSSHKeyPath() string
- func (self *Driver) GetSSHPort() (int, error)
- func (self *Driver) GetSSHUsername() string
- func (self *Driver) GetState() (state.State, error)
- func (self *Driver) GetURL() (string, error)
- func (self *Driver) Kill() error
- func (self *Driver) PreCreateCheck() error
- func (self *Driver) Remove() error
- func (self *Driver) Restart() error
- func (self *Driver) SetConfigFromFlags(opts drivers.DriverOptions) error
- func (self *Driver) Start() error
- func (self *Driver) Stop() error
Constants ¶
const ( DefaultTemplate string = "DEBIAN_10_UNMANAGED" DefaultDockerPort int = 2376 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver struct { *drivers.BaseDriver DockerPort int // LW api LwApiUsername string LwApiPassword string LwApiDomain string // LW compute LwComputeNodeUniqId string LwComputeConfigId int LwComputeZoneId int LwComputeNodeHostname string LwComputeNodeRootPassword string LwComputeTemplate string }
func (*Driver) DriverName ¶
func (*Driver) GetCreateFlags ¶
func (*Driver) GetMachineName ¶
func (*Driver) GetSSHHostname ¶
func (*Driver) GetSSHKeyPath ¶
func (*Driver) GetSSHPort ¶
func (*Driver) GetSSHUsername ¶
func (*Driver) PreCreateCheck ¶
func (*Driver) SetConfigFromFlags ¶
func (self *Driver) SetConfigFromFlags(opts drivers.DriverOptions) error