github.com/projecteru2/core@v0.0.0-20240321043226-06bcc1c23f58/engine/systemd/exec.go (about) 1 package systemd 2 3 import ( 4 "context" 5 "io" 6 7 enginetypes "github.com/projecteru2/core/engine/types" 8 "github.com/projecteru2/core/types" 9 ) 10 11 // Execute executes a cmd and attaches stdio 12 func (e *Engine) Execute(_ context.Context, _ string, _ *enginetypes.ExecConfig) (execID string, stdout io.ReadCloser, stderr io.ReadCloser, writer io.WriteCloser, err error) { 13 err = types.ErrEngineNotImplemented 14 return 15 } 16 17 // ExecResize resize the terminal size 18 func (e *Engine) ExecResize(_ context.Context, _ string, _, _ uint) (err error) { 19 err = types.ErrEngineNotImplemented 20 return 21 } 22 23 // ExecExitCode fetches exceuction exit code 24 func (e *Engine) ExecExitCode(_ context.Context, _, _ string) (execCode int, err error) { 25 err = types.ErrEngineNotImplemented 26 return 27 }