validate

package
v0.0.0-...-8fc3db6 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = cli.Command{
	Name:  "validate",
	Usage: "Validate host migration capabilities",
	Flags: []cli.Flag{
		cli.StringFlag{
			Name:  "src",
			Usage: "Source host URL [user@host:port]",
		},
		cli.StringFlag{
			Name:  "dst",
			Usage: "Destination host URL [user@host:port]",
		},
	},
	Action: func(c *cli.Context) {
		srcURL := ParseURL(c.String("src"))
		dstURL := ParseURL(c.String("dst"))

		Validate(srcURL, dstURL, false)
		println("Validation succeded")

	},
}

Functions

func GetCommand

func GetCommand(hostURL *url.URL) cmd.Cmd

func ParseURL

func ParseURL(rawurl string) *url.URL

func Validate

func Validate(src, dst *url.URL, continueOnWarnings bool) (srcCmd, dstCmd cmd.Cmd)

Types

This section is empty.

Jump to

Keyboard shortcuts

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