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.
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.
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.
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.
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 ¶
- func CastFieldTypes(source interface{}, dest interface{}) (err error)
- func ValidateContext(wantedContext string, vp *viper.Viper) error
- type AllPaginatedResultsArgs
- type Client
- func (client *Client) AllPaginatedResults(args *AllPaginatedResultsArgs) (apiTypes.MergedPaginatedList, error)
- func (client *Client) CallLwApiInto(method string, methodArgs map[string]interface{}, obj interface{}) (err error)
- func (self *Client) CloudNetworkPrivateAttach(params *CloudNetworkPrivateAttachParams) (result string, err error)
- func (self *Client) CloudNetworkPrivateDetach(params *CloudNetworkPrivateDetachParams) (result string, err error)
- func (self *Client) CloudNetworkPublicAdd(params *CloudNetworkPublicAddParams) (result string, err error)
- func (self *Client) CloudNetworkPublicRemove(params *CloudNetworkPublicRemoveParams) (result string, err error)
- func (ci *Client) CloudServerCreate(params *CloudServerCreateParams) (string, error)
- func (self *Client) CloudServerReboot(params *CloudServerRebootParams) (result string, err error)
- func (self *Client) CloudServerResize(params *CloudServerResizeParams) (result string, err error)
- func (ci *Client) CloudTemplateRestore(params *CloudTemplateRestoreParams) (string, error)
- func (ci *Client) DerivePrivateParentUniqId(name string) (uniqId string, zone int64, privateParentDetailsErr error)
- func (*Client) Die(err error)
- func (*Client) JsonEncodeAndPrettyPrint(data interface{}) (string, error)
- func (*Client) JsonPrettyPrint(inJson string) (string, error)
- func (ci *Client) ProcessPlan(plan *Plan) error
- func (client *Client) RemoveContext(context string) error
- func (self *Client) Ssh(params *SshParams) (err error)
- type CloudNetworkPrivateAttachParams
- type CloudNetworkPrivateDetachParams
- type CloudNetworkPublicAddParams
- type CloudNetworkPublicRemoveParams
- type CloudServerCreateParams
- type CloudServerRebootParams
- type CloudServerResizeParams
- type CloudTemplateRestoreParams
- type Plan
- type PlanCloud
- type PlanCloudNetwork
- type PlanCloudNetworkPrivate
- type PlanCloudNetworkPublic
- type PlanCloudServer
- type PlanCloudTemplate
- type SshParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CastFieldTypes ¶
func CastFieldTypes(source interface{}, dest interface{}) (err error)
Types ¶
type AllPaginatedResultsArgs ¶
type Client ¶
type Client struct { LwCliApiClient *lwCliInstApi.LwCliApiClient Viper *viper.Viper }
func (*Client) AllPaginatedResults ¶
func (client *Client) AllPaginatedResults(args *AllPaginatedResultsArgs) (apiTypes.MergedPaginatedList, error)
func (*Client) CallLwApiInto ¶
func (*Client) CloudNetworkPrivateAttach ¶ added in v0.6.9
func (self *Client) CloudNetworkPrivateAttach(params *CloudNetworkPrivateAttachParams) (result string, err error)
func (*Client) CloudNetworkPrivateDetach ¶ added in v0.6.9
func (self *Client) CloudNetworkPrivateDetach(params *CloudNetworkPrivateDetachParams) (result string, err error)
func (*Client) CloudNetworkPublicAdd ¶ added in v0.6.9
func (self *Client) CloudNetworkPublicAdd(params *CloudNetworkPublicAddParams) (result string, err error)
func (*Client) CloudNetworkPublicRemove ¶ added in v0.6.9
func (self *Client) CloudNetworkPublicRemove(params *CloudNetworkPublicRemoveParams) (result string, err error)
func (*Client) CloudServerCreate ¶ added in v0.6.1
func (ci *Client) CloudServerCreate(params *CloudServerCreateParams) (string, error)
func (*Client) CloudServerReboot ¶ added in v0.6.10
func (self *Client) CloudServerReboot(params *CloudServerRebootParams) (result string, err error)
func (*Client) CloudServerResize ¶ added in v0.6.5
func (self *Client) CloudServerResize(params *CloudServerResizeParams) (result string, err error)
func (*Client) CloudTemplateRestore ¶ added in v0.6.1
func (ci *Client) CloudTemplateRestore(params *CloudTemplateRestoreParams) (string, error)
func (*Client) DerivePrivateParentUniqId ¶ added in v0.6.1
func (*Client) JsonEncodeAndPrettyPrint ¶
func (*Client) ProcessPlan ¶ added in v0.6.1
func (*Client) RemoveContext ¶
type CloudNetworkPrivateAttachParams ¶ added in v0.6.9
type CloudNetworkPrivateAttachParams struct {
UniqId []string `yaml:"uniq-id"`
}
func (*CloudNetworkPrivateAttachParams) UnmarshalYAML ¶ added in v0.6.9
func (self *CloudNetworkPrivateAttachParams) UnmarshalYAML(unmarshal func(interface{}) error) error
type CloudNetworkPrivateDetachParams ¶ added in v0.6.9
type CloudNetworkPrivateDetachParams struct {
UniqId []string `yaml:"uniq-id"`
}
func (*CloudNetworkPrivateDetachParams) UnmarshalYAML ¶ added in v0.6.9
func (self *CloudNetworkPrivateDetachParams) UnmarshalYAML(unmarshal func(interface{}) error) error
type CloudNetworkPublicAddParams ¶ added in v0.6.9
type CloudNetworkPublicAddParams struct { UniqId string `yaml:"uniq-id"` ConfigureIps bool `yaml:"configure-ips"` NewIps int64 `yaml:"new-ips"` NewIp6s int64 `yaml:"new-ip6s"` PoolIps []string `yaml:"pool-ips"` Pool6Ips []string `yaml:"pool6-ips"` }
func (*CloudNetworkPublicAddParams) UnmarshalYAML ¶ added in v0.6.9
func (self *CloudNetworkPublicAddParams) UnmarshalYAML(unmarshal func(interface{}) error) error
type CloudNetworkPublicRemoveParams ¶ added in v0.6.9
type CloudNetworkPublicRemoveParams struct { UniqId string `yaml:"uniq-id"` ConfigureIps bool `yaml:"configure-ips"` Ips []string `yaml:"ips"` }
func (*CloudNetworkPublicRemoveParams) UnmarshalYAML ¶ added in v0.6.9
func (self *CloudNetworkPublicRemoveParams) UnmarshalYAML(unmarshal func(interface{}) error) error
type CloudServerCreateParams ¶ added in v0.6.1
type CloudServerCreateParams struct { Template string `yaml:"template"` Type string `yaml:"type"` Hostname string `yaml:"hostname"` Ips int `yaml:"ips"` Ip6s int `yaml:"ip6s"` PoolIps []string `yaml:"pool-ips"` Pool6Ips []string `yaml:"pool6-ips"` PublicSshKey string `yaml:"public-ssh-key"` ConfigId int `yaml:"config-id"` BackupDays int `yaml:"backup-days"` // daily backup plan; how many days to keep a backup BackupQuota int `yaml:"backup-quota"` // backup quota plan; how many gb of backups to keep Bandwidth string `yaml:"bandwidth"` Zone int64 `yaml:"zone"` WinAv string `yaml:"winav"` // windows MsSql string `yaml:"ms-sql"` // windows PrivateParent string `yaml:"private-parent"` Password string `yaml:"password"` Memory int `yaml:"memory"` // required only if private parent Diskspace int `yaml:"diskspace"` // required only if private parent Vcpu int `yaml:"vcpu"` // required only if private parent BackupId int `yaml:"backup-id"` //create from backup ImageId int `yaml:"image-id"` // create from image }
func (*CloudServerCreateParams) UnmarshalYAML ¶ added in v0.6.1
func (s *CloudServerCreateParams) UnmarshalYAML(unmarshal func(interface{}) error) error
type CloudServerRebootParams ¶ added in v0.6.10
func (*CloudServerRebootParams) UnmarshalYAML ¶ added in v0.6.10
func (self *CloudServerRebootParams) UnmarshalYAML(unmarshal func(interface{}) error) error
type CloudServerResizeParams ¶ added in v0.6.5
type CloudServerResizeParams struct { UniqId string `yaml:"uniq-id"` ConfigId int64 `yaml:"config-id"` SkipFsResize bool `yaml:"skip-fs-resize"` PrivateParent string `yaml:"private-parent"` Memory int64 `yaml:"memory"` Vcpu int64 `yaml:"vcpu"` DiskSpace int64 `yaml:"disk-space"` }
func (*CloudServerResizeParams) UnmarshalYAML ¶ added in v0.6.5
func (self *CloudServerResizeParams) UnmarshalYAML(unmarshal func(interface{}) error) error
type CloudTemplateRestoreParams ¶ added in v0.6.1
type PlanCloud ¶ added in v0.6.1
type PlanCloud struct { Server *PlanCloudServer Template *PlanCloudTemplate Network *PlanCloudNetwork }
type PlanCloudNetwork ¶ added in v0.6.9
type PlanCloudNetwork struct { Public *PlanCloudNetworkPublic Private *PlanCloudNetworkPrivate }
type PlanCloudNetworkPrivate ¶ added in v0.6.9
type PlanCloudNetworkPrivate struct { Attach []CloudNetworkPrivateAttachParams Detach []CloudNetworkPrivateDetachParams }
type PlanCloudNetworkPublic ¶ added in v0.6.9
type PlanCloudNetworkPublic struct { Add []CloudNetworkPublicAddParams Remove []CloudNetworkPublicRemoveParams }
type PlanCloudServer ¶ added in v0.6.1
type PlanCloudServer struct { Create []CloudServerCreateParams Resize []CloudServerResizeParams Reboot []CloudServerRebootParams }
type PlanCloudTemplate ¶ added in v0.6.1
type PlanCloudTemplate struct {
Restore []CloudTemplateRestoreParams
}
type SshParams ¶ added in v0.6.8
type SshParams struct { Host string `yaml:"host"` Port int `yaml:"port"` PrivateKeyFile string `yaml:"private-key-file"` User string `yaml:"user"` AgentForwarding bool `yaml:"agent-forwarding"` Command string `yaml:"command"` }