cmd

package
v0.0.0-...-0d818af Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ClusterFrom  string
	ClusterTo    string
	ProjectFrom  string
	ProjectTo    string
	PathTemplate string
	PathData     string
	UsernameFrom string
	UsernameTo   string
	PasswordFrom string
	PasswordTo   string
)
View Source
var ObjectsOc []string
View Source
var RootCmd = &cobra.Command{
	Use:   "os2os",
	Short: "Migrate your Openshift application between different Openshift clusters",
	Long: `
os2os is a tool for help you to migrate a Openshift project between different Openshift clusters.
You can download all your templates, convert and rigth size the application to fix in the new cluster,
migrate the data, deploy your app in the new cluster and delete your project in the old cluster`,
}

var ObjectsOc = []string{"service", "buildconfig", "build", "configmap", "daemonset","daemonset","deployment",

"deploymentconfig",
"event","endpoints","horizontalpodautoscaler","imagestream","imagestreamtag","ingress","group","job",
"limitrange","node","namespace","pod","persistentvolume","persistentvolumeclaim","policy","project","quota",
"resourcequota","replicaset","replicationcontroller","rolebinding","route","secret","serviceaccount","service","user"}

/* "cluster", "imagestreamimage", "petset", "componentstatus" objectsOc := []string{"buildconfig", "build", "configmap", "daemonset","daemonset","deployment", "deploymentconfig",

"event","endpoints","horizontalpodautoscaler","imagestream","imagestreamtag","ingress","group","job",
"limitrange","node","namespace","pod","persistentvolume","persistentvolumeclaim","policy","project","quota",
"resourcequota","replicaset","replicationcontroller","rolebinding","route","secret","serviceaccount","service","user"}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

This section is empty.

Jump to

Keyboard shortcuts

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