local

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2025 License: MIT Imports: 23 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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