Documentation ¶
Overview ¶
Copyright © 2019 Jeff Wu <jeff.wu.junfei@gmail.com>
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 ConfigVM(vmconfig *model.K8sNode) error
- func CopyLocalFileToRemote(vmconfig *model.K8sNode, localpath, remotepath string) error
- func CopyRemoteFileToLocal(vmconfig *model.K8sNode, remotepath, localpath string) error
- func CreateVM(vmConfig *model.K8sNode, answers *model.Answers) (*object.VirtualMachine, error)
- func DeleteWorkerNodeFromKubenretes(vmconfig *model.K8sNode, k8sNodes *model.K8sNodes) error
- func DeployNodes(answers *model.Answers) (*model.K8sNodes, error)
- func DeployOVA(answers *model.Answers, targetpath string) (*object.VirtualMachine, error)
- func DeployWorkderNode(vmconfig *model.K8sNode, answers *model.Answers, k8sNodes *model.K8sNodes) error
- func Destory(answers *model.Answers, k8snodes *model.K8sNodes) error
- func DestorySingle(answers *model.Answers, k8snode *model.K8sNode) error
- func DownloadKubeCtlConfig(vmconfig *model.K8sNode) error
- func FindMasterNode(answers *model.Answers) (*model.K8sNode, error)
- func GetKubeAdmJoinCommand(vmconfig *model.K8sNode) (string, error)
- func PopuldateKubeConfig(c *ssh.Client) error
- func PrepareFolder(answers model.Answers) error
- func PrepareResourcePool(answers model.Answers) error
- func PrepareVM(vmconfig *model.K8sNode) error
- func UpdateMasterNode(k8snodes *model.K8sNodes) error
- func UpdateWorkerNode(vmconfig *model.K8sNode, k8snodes *model.K8sNodes) error
- func UploadConfigToMasterNode(answers *model.Answers, k8sNodes *model.K8sNodes) error
- func ValidatevSphereAccount(answers *model.Answers) error
- type SSHRunner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyLocalFileToRemote ¶
func CopyRemoteFileToLocal ¶
func DeployWorkderNode ¶
func DownloadKubeCtlConfig ¶
func PopuldateKubeConfig ¶
func PrepareFolder ¶
func PrepareResourcePool ¶
func UpdateMasterNode ¶
func UpdateWorkerNode ¶
func ValidatevSphereAccount ¶
Types ¶
type SSHRunner ¶
type SSHRunner struct {
// contains filtered or unexported fields
}
SSHRunner runs commands through SSH.
It implements the CommandRunner interface.
func NewSSHRunner ¶
NewSSHRunner returns a new SSHRunner that will run commands through the ssh.Client provided.
func (*SSHRunner) CombinedOutput ¶
CombinedOutput runs the command on the remote and returns its combined standard output and standard error.
func (*SSHRunner) CombinedOutputTo ¶
CombinedOutputTo runs the command and stores both command output and error to out.
func (*SSHRunner) Copy ¶
func (s *SSHRunner) Copy(f assets.CopyableFile) error
Copy copies a file to the remote over SSH.