local

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

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 New

func New(f *cmdutil.Factory) *cobra.Command

New creates a new command

func NewDeployCmd

func NewDeployCmd(f *cmdutil.Factory, runF func(*DeployOptions) error) *cobra.Command

NewDeployCmd creates a new command

func NewStartCmd

func NewStartCmd(f *cmdutil.Factory, runF func(*StartOptions) error) *cobra.Command

func NewStatusCmd

func NewStatusCmd(f *cmdutil.Factory, runF func(*StatusOptions) error) *cobra.Command

NewStatusCmd creates a new command

func NewStopCmd

func NewStopCmd(f *cmdutil.Factory, runF func(*StopOptions) error) *cobra.Command

NewStopCmd creates a new command

func NewUndeployCmd

func NewUndeployCmd(f *cmdutil.Factory, runF func(*UndeployOptions) error) *cobra.Command

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 OSDep

type OSDep interface {
	Chdir(path string) error
	Stat(name string) (os.FileInfo, error)
}

OSDep is an interface for OS operations

type StartOptions

type StartOptions struct {
	IO             *iostreams.IOStreams
	Exec           ExecDep
	OS             OSDep
	Config         config.Config
	MainExecutable string
	Interactive    bool
}

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

type StopOptions

type StopOptions struct {
	IO             *iostreams.IOStreams
	Exec           ExecDep
	OS             OSDep
	Config         config.Config
	MainExecutable string
	Interactive    bool
}

StopOptions contains the command line options

type UndeployOptions

type UndeployOptions struct {
	IO             *iostreams.IOStreams
	Exec           ExecDep
	OS             OSDep
	Config         config.Config
	MainExecutable string
	Interactive    bool
}

UndeployOptions contains the command line options

Jump to

Keyboard shortcuts

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