Documentation
¶
Index ¶
- type ActCommand
- type ActOutput
- func (out *ActOutput) AddOutput(ctx context.Context, line []byte, type_ ProcessOutType)
- func (out *ActOutput) Close()
- func (out *ActOutput) GetExitCode() chan int
- func (out *ActOutput) GetOutputChan() chan SingleOutput
- func (out *ActOutput) ProgramError() chan error
- func (out *ActOutput) SetExitCode(val int)
- type CommandOutput
- type ProcessOutType
- type SingleOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActCommand ¶
type ActCommand struct {
// contains filtered or unexported fields
}
func NewActCommand ¶
func NewActCommand(env *conf.ActEnviron, callSubCommand []string, workingDir string) *ActCommand
func (*ActCommand) Call ¶
func (a *ActCommand) Call(ctx context.Context) (CommandOutput, error)
type ActOutput ¶
type ActOutput struct {
ProgramErrorChan chan error
// contains filtered or unexported fields
}
func (*ActOutput) AddOutput ¶
func (out *ActOutput) AddOutput(ctx context.Context, line []byte, type_ ProcessOutType)
func (*ActOutput) GetExitCode ¶
func (*ActOutput) GetOutputChan ¶
func (out *ActOutput) GetOutputChan() chan SingleOutput
func (*ActOutput) ProgramError ¶
func (*ActOutput) SetExitCode ¶
type CommandOutput ¶
type CommandOutput interface {
AddOutput(ctx context.Context, line []byte, type_ ProcessOutType)
SetExitCode(val int)
GetExitCode() chan int
ProgramError() chan error
GetOutputChan() chan SingleOutput
Close()
}
func NewActOutput ¶
func NewActOutput(ctx context.Context, cmd *exec.Cmd) CommandOutput
type ProcessOutType ¶
type ProcessOutType int
const ( StdErr ProcessOutType = 1 StdOut ProcessOutType = 2 )
type SingleOutput ¶
type SingleOutput struct {
T ProcessOutType
Time time.Time
// contains filtered or unexported fields
}
func (*SingleOutput) FormatRead ¶
func (s *SingleOutput) FormatRead() string
func (*SingleOutput) Line ¶
func (s *SingleOutput) Line() string
func (*SingleOutput) SetLine ¶
func (s *SingleOutput) SetLine(line []byte)
Click to show internal directories.
Click to hide internal directories.