Documentation
¶
Index ¶
- Constants
- Variables
- func New(f *cmdutil.Factory) *cobra.Command
- func NewDeployCmd(f *cmdutil.Factory, runF func(*DeployOptions) error) *cobra.Command
- func NewStartCmd(f *cmdutil.Factory, runF func(*StartOptions) error) *cobra.Command
- func NewStatusCmd(f *cmdutil.Factory, runF func(*StatusOptions) error) *cobra.Command
- func NewStopCmd(f *cmdutil.Factory, runF func(*StopOptions) error) *cobra.Command
- func NewUndeployCmd(f *cmdutil.Factory, runF func(*UndeployOptions) error) *cobra.Command
- type DeployOptions
- type ExecDep
- type OSDep
- type StartOptions
- type StatusOptions
- type StopOptions
- type UndeployOptions
Constants ¶
View Source
const ( // DefUsername is the default username for the local deployment DefUsername = "admin" // DefPassword is the default password for the local deployment DefPassword = "password" )
Variables ¶
View Source
var LocalInstancePath string
LocalInstancePath is the path to keep files for local instance deployment
Functions ¶
func NewDeployCmd ¶
NewDeployCmd creates a new command
func NewStartCmd ¶
func NewStatusCmd ¶
NewStatusCmd creates a new command
func NewStopCmd ¶
NewStopCmd creates a new command
func NewUndeployCmd ¶
NewUndeployCmd creates a new command
Types ¶
type DeployOptions ¶
type DeployOptions struct { IO *iostreams.IOStreams Exec ExecDep OS OSDep Config config.Config MainExecutable string Interactive bool Force bool Upgrade bool Latest bool Build bool // contains filtered or unexported fields }
DeployOptions contains the command line options
type ExecDep ¶
type ExecDep interface { Command(name string, arg ...string) *exec.Cmd LookPath(file string) (string, error) }
ExecDep is an interface for executing commands
type StartOptions ¶
type StatusOptions ¶
type StatusOptions struct { IO *iostreams.IOStreams Exec ExecDep OS OSDep Config config.Config MainExecutable string Interactive bool }
StatusOptions contains the command line options
Source Files
¶
Click to show internal directories.
Click to hide internal directories.