Documentation
¶
Index ¶
- type DefaultFactory
- type Factory
- type Process
- func (p *Process) AddArguments(arguments ...string) *Process
- func (p *Process) AddPreArguments(arguments ...string) *Process
- func (p *Process) Output() (out string, err error)
- func (p *Process) Run() (err error)
- func (p *Process) SetNormalArguments(indexes ...int) *Process
- func (p *Process) SetNormalPreArguments(indexes ...int) *Process
- func (p *Process) SetSecretArguments(indexes ...int) *Process
- func (p *Process) SetSecretPreArguments(indexes ...int) *Process
- func (p *Process) String() string
- func (p *Process) StringWithSecret() string
- type WslFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultFactory ¶
type DefaultFactory struct {
}
func NewFactory ¶
func NewFactory() *DefaultFactory
func (*DefaultFactory) NewProcess ¶
func (f *DefaultFactory) NewProcess(arguments ...string) *Process
func (*DefaultFactory) NewSudoProcess ¶
func (f *DefaultFactory) NewSudoProcess(sudoPassword string, arguments ...string) *Process
type Process ¶
type Process struct {
// contains filtered or unexported fields
}
func NewSudoProcess ¶
func NewWslProcess ¶
func NewWslSudoProcess ¶
func (*Process) AddArguments ¶
func (*Process) AddPreArguments ¶
func (*Process) SetNormalArguments ¶
func (*Process) SetNormalPreArguments ¶
func (*Process) SetSecretArguments ¶
func (*Process) SetSecretPreArguments ¶
func (*Process) StringWithSecret ¶
type WslFactory ¶
type WslFactory struct {
// contains filtered or unexported fields
}
func NewWslFactory ¶
func NewWslFactory(distribution string) *WslFactory
func (*WslFactory) NewProcess ¶
func (w *WslFactory) NewProcess(arguments ...string) *Process
func (*WslFactory) NewSudoProcess ¶
func (w *WslFactory) NewSudoProcess(sudoPassword string, arguments ...string) *Process
Click to show internal directories.
Click to hide internal directories.