cmd

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2016 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Debug bool
View Source
var RootCmd = &cobra.Command{
	Use:   "ocf",
	Short: "A tool to ease migration from Cloud Foundry to OpenShift",
	Long: `A tool to ease migration from Cloud Foundry to OpenShift.

This tool provides various commands (listed below) to help migrate and
run Cloud Foundry applications on OpenShift.`,
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

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

Types

type Manifest

type Manifest struct {
	Applications []app.Application `json:"applications"`
}

type PushConfig

type PushConfig struct {
	Buildpack    string
	Command      string
	ManifestPath string
	Instances    int
	Disk         string
	Memory       string
	Path         string
	Image        string
}

PushConfig contains all the necessary configuration for the push command

func (*PushConfig) Run

func (config *PushConfig) Run(args []string) error

Jump to

Keyboard shortcuts

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