cmd

package
v1.1.1-0...-9418116 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: Apache-2.0 Imports: 70 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Dockerfile not found options
	UseExistingDockerfileOption = "Use the Dockerfile in ./Dockerfile"
	CreateDockerfileOption      = "Create a Dockerfile for me"
	EnterDockerfileOption       = "Enter path to your Dockerfile"
	EnterManifestsOption        = "Enter path to your Kubernetes manifests"
	EnterHelmChartOption        = "Enter path to your Helm chart"
	UseExistingImageOption      = "Use existing image (e.g. from Docker Hub)"
)

Variables

This section is empty.

Functions

func BuildRoot

func BuildRoot(f factory.Factory) *cobra.Command

BuildRoot creates a new root command from the

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.

func GetPaths

func GetPaths(config *latest.Config) []string

GetPaths retrieves the watch paths from the config object

func NewAnalyzeCmd

func NewAnalyzeCmd(f factory.Factory, globalFlags *flags.GlobalFlags) *cobra.Command

NewAnalyzeCmd creates a new analyze command

func NewAttachCmd

func NewAttachCmd(f factory.Factory, globalFlags *flags.GlobalFlags) *cobra.Command

NewAttachCmd creates a new attach command

func NewBuildCmd

func NewBuildCmd(f factory.Factory, globalFlags *flags.GlobalFlags) *cobra.Command

NewBuildCmd creates a new devspace build command

func NewDeployCmd

func NewDeployCmd(f factory.Factory, globalFlags *flags.GlobalFlags) *cobra.Command

NewDeployCmd creates a new deploy command

func NewDevCmd

func NewDevCmd(f factory.Factory, globalFlags *flags.GlobalFlags) *cobra.Command

NewDevCmd creates a new devspace dev command

func NewEnterCmd

func NewEnterCmd(f factory.Factory, globalFlags *flags.GlobalFlags) *cobra.Command

NewEnterCmd creates a new enter command

func NewInitCmd

func NewInitCmd(f factory.Factory) *cobra.Command

NewInitCmd creates a new init command

func NewLoginCmd

func NewLoginCmd(f factory.Factory) *cobra.Command

NewLoginCmd creates a new login command

func NewLogsCmd

func NewLogsCmd(f factory.Factory, globalFlags *flags.GlobalFlags) *cobra.Command

NewLogsCmd creates a new login command

func NewOpenCmd

func NewOpenCmd(f factory.Factory, globalFlags *flags.GlobalFlags) *cobra.Command

NewOpenCmd creates a new open command

func NewPurgeCmd

func NewPurgeCmd(f factory.Factory, globalFlags *flags.GlobalFlags) *cobra.Command

NewPurgeCmd creates a new purge command

func NewRenderCmd

func NewRenderCmd(f factory.Factory, globalFlags *flags.GlobalFlags) *cobra.Command

NewRenderCmd creates a new devspace render command

func NewRootCmd

func NewRootCmd(log log.Logger) *cobra.Command

NewRootCmd returns a new root command

func NewRunCmd

func NewRunCmd(f factory.Factory, globalFlags *flags.GlobalFlags) *cobra.Command

NewRunCmd creates a new run command

func NewSyncCmd

func NewSyncCmd(f factory.Factory, globalFlags *flags.GlobalFlags) *cobra.Command

NewSyncCmd creates a new init command

func NewUICmd

func NewUICmd(f factory.Factory, globalFlags *flags.GlobalFlags) *cobra.Command

NewUICmd creates a new ui command

func NewUpgradeCmd

func NewUpgradeCmd() *cobra.Command

NewUpgradeCmd creates a new upgrade command

Types

type AnalyzeCmd

type AnalyzeCmd struct {
	*flags.GlobalFlags

	Wait bool
}

AnalyzeCmd holds the analyze cmd flags

func (*AnalyzeCmd) RunAnalyze

func (cmd *AnalyzeCmd) RunAnalyze(f factory.Factory, cobraCmd *cobra.Command, args []string) error

RunAnalyze executes the functionality "devspace analyze"

type AttachCmd

type AttachCmd struct {
	*flags.GlobalFlags

	LabelSelector string
	Container     string
	Pod           string
	Pick          bool
}

AttachCmd is a struct that defines a command call for "enter"

func (*AttachCmd) Run

func (cmd *AttachCmd) Run(f factory.Factory, cobraCmd *cobra.Command, args []string) error

Run executes the command logic

type BuildCmd

type BuildCmd struct {
	*flags.GlobalFlags

	Tag string

	SkipPush                bool
	AllowCyclicDependencies bool
	VerboseDependencies     bool

	ForceBuild        bool
	BuildSequential   bool
	ForceDependencies bool
}

BuildCmd is a struct that defines a command call for "build"

func (*BuildCmd) Run

func (cmd *BuildCmd) Run(f factory.Factory, cobraCmd *cobra.Command, args []string) error

Run executes the command logic

type DeployCmd

type DeployCmd struct {
	*flags.GlobalFlags

	ForceBuild          bool
	SkipBuild           bool
	BuildSequential     bool
	ForceDeploy         bool
	Deployments         string
	ForceDependencies   bool
	VerboseDependencies bool

	SkipPush                bool
	AllowCyclicDependencies bool
	// contains filtered or unexported fields
}

DeployCmd holds the required data for the down cmd

func (*DeployCmd) Run

func (cmd *DeployCmd) Run(f factory.Factory, cobraCmd *cobra.Command, args []string) error

Run executes the down command logic

type DevCmd

type DevCmd struct {
	*flags.GlobalFlags

	SkipPush                bool
	AllowCyclicDependencies bool
	VerboseDependencies     bool
	Open                    bool

	ForceBuild        bool
	SkipBuild         bool
	BuildSequential   bool
	ForceDeploy       bool
	Deployments       string
	ForceDependencies bool

	Sync            bool
	ExitAfterDeploy bool
	SkipPipeline    bool
	Portforwarding  bool
	VerboseSync     bool

	UI bool

	Terminal    bool
	Interactive bool
	// contains filtered or unexported fields
}

DevCmd is a struct that defines a command call for "up"

func (*DevCmd) Run

func (cmd *DevCmd) Run(f factory.Factory, cobraCmd *cobra.Command, args []string) error

Run executes the command logic

type EnterCmd added in v1.1.0

type EnterCmd struct {
	*flags.GlobalFlags

	LabelSelector string
	Container     string
	Pod           string
	Pick          bool
	Wait          bool
}

EnterCmd is a struct that defines a command call for "enter"

func (*EnterCmd) Run added in v1.1.0

func (cmd *EnterCmd) Run(f factory.Factory, cobraCmd *cobra.Command, args []string) error

Run executes the command logic

type InitCmd

type InitCmd struct {
	// Flags
	Reconfigure bool
	Dockerfile  string
	Context     string
	Provider    string
	// contains filtered or unexported fields
}

InitCmd is a struct that defines a command call for "init"

func (*InitCmd) Run

func (cmd *InitCmd) Run(f factory.Factory, cobraCmd *cobra.Command, args []string) error

Run executes the command logic

type LoginCmd

type LoginCmd struct {
	Key      string
	Provider string
}

LoginCmd holds the login cmd flags

func (*LoginCmd) RunLogin

func (cmd *LoginCmd) RunLogin(f factory.Factory, cobraCmd *cobra.Command, args []string) error

RunLogin executes the functionality devspace login

type LogsCmd

type LogsCmd struct {
	*flags.GlobalFlags

	LabelSelector string
	Container     string
	Pod           string
	Pick          bool

	Follow            bool
	LastAmountOfLines int
}

LogsCmd holds the logs cmd flags

func (*LogsCmd) RunLogs

func (cmd *LogsCmd) RunLogs(f factory.Factory, cobraCmd *cobra.Command, args []string) error

RunLogs executes the functionality devspace logs

type OpenCmd

type OpenCmd struct {
	*flags.GlobalFlags

	Provider string
	// contains filtered or unexported fields
}

OpenCmd holds the open cmd flags

func (*OpenCmd) RunOpen

func (cmd *OpenCmd) RunOpen(f factory.Factory, cobraCmd *cobra.Command, args []string) error

RunOpen executes the functionality "devspace open"

type PurgeCmd

type PurgeCmd struct {
	*flags.GlobalFlags

	Deployments             string
	AllowCyclicDependencies bool
	VerboseDependencies     bool
	PurgeDependencies       bool
	// contains filtered or unexported fields
}

PurgeCmd holds the required data for the purge cmd

func (*PurgeCmd) Run

func (cmd *PurgeCmd) Run(f factory.Factory, cobraCmd *cobra.Command, args []string) error

Run executes the purge command logic

type RenderCmd

type RenderCmd struct {
	*flags.GlobalFlags

	Tag string

	SkipPush                bool
	AllowCyclicDependencies bool
	VerboseDependencies     bool

	ForceBuild        bool
	BuildSequential   bool
	ForceDependencies bool

	ShowLogs    bool
	Deployments string
}

RenderCmd is a struct that defines a command call for "render"

func (*RenderCmd) Run

func (cmd *RenderCmd) Run(f factory.Factory, cobraCmd *cobra.Command, args []string) error

Run executes the command logic

type RunCmd

type RunCmd struct {
	*flags.GlobalFlags
}

RunCmd holds the run cmd flags

func (*RunCmd) RunRun

func (cmd *RunCmd) RunRun(f factory.Factory, cobraCmd *cobra.Command, args []string) error

RunRun executes the functionality "devspace run"

type SyncCmd

type SyncCmd struct {
	*flags.GlobalFlags

	LabelSelector string
	Container     string
	Pod           string
	Pick          bool

	Exclude       []string
	ContainerPath string
	LocalPath     string
	Verbose       bool

	NoWatch               bool
	DownloadOnInitialSync bool
}

SyncCmd is a struct that defines a command call for "sync"

func (*SyncCmd) Run

func (cmd *SyncCmd) Run(f factory.Factory, cobraCmd *cobra.Command, args []string) error

Run executes the command logic

type UICmd

type UICmd struct {
	*flags.GlobalFlags

	Dev bool

	Port        int
	ForceServer bool
	// contains filtered or unexported fields
}

UICmd holds the open cmd flags

func (*UICmd) RunUI

func (cmd *UICmd) RunUI(f factory.Factory, cobraCmd *cobra.Command, args []string) error

RunUI executes the functionality "devspace ui"

type UpgradeCmd added in v0.1.0

type UpgradeCmd struct{}

UpgradeCmd is a struct that defines a command call for "upgrade"

func (*UpgradeCmd) Run added in v0.1.0

func (cmd *UpgradeCmd) Run(cobraCmd *cobra.Command, args []string) error

Run executes the command logic

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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