lwdriver

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

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.

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.

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

View Source
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 NewDriver

func NewDriver() *Driver

func (*Driver) Create

func (self *Driver) Create() error

func (*Driver) DriverName

func (self *Driver) DriverName() string

func (*Driver) GetCreateFlags

func (self *Driver) GetCreateFlags() []mcnflag.Flag

func (*Driver) GetIP

func (self *Driver) GetIP() (ip string, err error)

func (*Driver) GetMachineName

func (self *Driver) GetMachineName() string

func (*Driver) GetSSHHostname

func (self *Driver) GetSSHHostname() (string, error)

func (*Driver) GetSSHKeyPath

func (self *Driver) GetSSHKeyPath() string

func (*Driver) GetSSHPort

func (self *Driver) GetSSHPort() (int, error)

func (*Driver) GetSSHUsername

func (self *Driver) GetSSHUsername() string

func (*Driver) GetState

func (self *Driver) GetState() (state.State, error)

func (*Driver) GetURL

func (self *Driver) GetURL() (string, error)

func (*Driver) Kill

func (self *Driver) Kill() error

func (*Driver) PreCreateCheck

func (self *Driver) PreCreateCheck() error

func (*Driver) Remove

func (self *Driver) Remove() error

func (*Driver) Restart

func (self *Driver) Restart() error

func (*Driver) SetConfigFromFlags

func (self *Driver) SetConfigFromFlags(opts drivers.DriverOptions) error

func (*Driver) Start

func (self *Driver) Start() error

func (*Driver) Stop

func (self *Driver) Stop() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL