Documentation
¶
Index ¶
- Constants
- func BuildRoot(f factory.Factory) *cobra.Command
- func Execute()
- func GetPaths(config *latest.Config) []string
- func NewAnalyzeCmd(f factory.Factory, globalFlags *flags.GlobalFlags) *cobra.Command
- func NewAttachCmd(f factory.Factory, globalFlags *flags.GlobalFlags) *cobra.Command
- func NewBuildCmd(f factory.Factory, globalFlags *flags.GlobalFlags) *cobra.Command
- func NewDeployCmd(f factory.Factory, globalFlags *flags.GlobalFlags) *cobra.Command
- func NewDevCmd(f factory.Factory, globalFlags *flags.GlobalFlags) *cobra.Command
- func NewEnterCmd(f factory.Factory, globalFlags *flags.GlobalFlags) *cobra.Command
- func NewInitCmd(f factory.Factory) *cobra.Command
- func NewLoginCmd(f factory.Factory) *cobra.Command
- func NewLogsCmd(f factory.Factory, globalFlags *flags.GlobalFlags) *cobra.Command
- func NewOpenCmd(f factory.Factory, globalFlags *flags.GlobalFlags) *cobra.Command
- func NewPurgeCmd(f factory.Factory, globalFlags *flags.GlobalFlags) *cobra.Command
- func NewRenderCmd(f factory.Factory, globalFlags *flags.GlobalFlags) *cobra.Command
- func NewRootCmd(log log.Logger) *cobra.Command
- func NewRunCmd(f factory.Factory, globalFlags *flags.GlobalFlags) *cobra.Command
- func NewSyncCmd(f factory.Factory, globalFlags *flags.GlobalFlags) *cobra.Command
- func NewUICmd(f factory.Factory, globalFlags *flags.GlobalFlags) *cobra.Command
- func NewUpgradeCmd() *cobra.Command
- type AnalyzeCmd
- type AttachCmd
- type BuildCmd
- type DeployCmd
- type DevCmd
- type EnterCmd
- type InitCmd
- type LoginCmd
- type LogsCmd
- type OpenCmd
- type PurgeCmd
- type RenderCmd
- type RunCmd
- type SyncCmd
- type UICmd
- type UpgradeCmd
Constants ¶
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 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 NewAnalyzeCmd ¶
NewAnalyzeCmd creates a new analyze command
func NewAttachCmd ¶
NewAttachCmd creates a new attach command
func NewBuildCmd ¶
NewBuildCmd creates a new devspace build command
func NewDeployCmd ¶
NewDeployCmd creates a new deploy command
func NewEnterCmd ¶
NewEnterCmd creates a new enter command
func NewInitCmd ¶
NewInitCmd creates a new init command
func NewLoginCmd ¶
NewLoginCmd creates a new login command
func NewLogsCmd ¶
NewLogsCmd creates a new login command
func NewOpenCmd ¶
NewOpenCmd creates a new open command
func NewPurgeCmd ¶
NewPurgeCmd creates a new purge command
func NewRenderCmd ¶
NewRenderCmd creates a new devspace render command
func NewRootCmd ¶
NewRootCmd returns a new root command
func NewSyncCmd ¶
NewSyncCmd creates a new init command
func NewUpgradeCmd ¶
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 ¶
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"
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"
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
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"
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"
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"
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
type OpenCmd ¶
type OpenCmd struct {
*flags.GlobalFlags
Provider string
// contains filtered or unexported fields
}
OpenCmd holds the open cmd flags
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
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"
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"
type UICmd ¶
type UICmd struct {
*flags.GlobalFlags
Dev bool
Port int
ForceServer bool
// contains filtered or unexported fields
}
UICmd holds the open cmd flags
type UpgradeCmd ¶ added in v0.1.0
type UpgradeCmd struct{}
UpgradeCmd is a struct that defines a command call for "upgrade"