Documentation
¶
Index ¶
- Constants
- func IsShell(lang string) bool
- func IsSupported(lang string) bool
- func NewRunnerService(logger *zap.Logger) runnerv1.RunnerServiceServer
- func NewRunnerServiceHandler(logger *zap.Logger) runnerv1connect.RunnerServiceHandler
- func PrepareScriptFromCommands(cmds []string, shell string) string
- func ShellFromShellPath(programPath string) string
- func ShellPath() string
- type Executable
- type ExecutableConfig
- type ExitError
- type Go
- type Session
- type Shell
- type ShellRaw
- type ShellSession
Constants ¶
View Source
const (
MaxMsgSize = 4096 << 10 // 4 MiB
)
Variables ¶
This section is empty.
Functions ¶
func IsSupported ¶ added in v0.2.4
func NewRunnerService ¶ added in v0.6.0
func NewRunnerService(logger *zap.Logger) runnerv1.RunnerServiceServer
func NewRunnerServiceHandler ¶ added in v0.6.0
func NewRunnerServiceHandler(logger *zap.Logger) runnerv1connect.RunnerServiceHandler
func PrepareScriptFromCommands ¶ added in v0.6.0
func ShellFromShellPath ¶ added in v0.6.2
TODO(mxs): this method for determining shell is not strong, since shells can be aliased. we should probably run the shell to get this information
Types ¶
type Executable ¶
type ExecutableConfig ¶ added in v0.6.0
type ExitError ¶ added in v0.6.2
func ExitErrorFromExec ¶ added in v0.6.2
type Go ¶
type Go struct { *ExecutableConfig Source string // contains filtered or unexported fields }
type Session ¶ added in v0.6.0
type Session struct { ID string Metadata map[string]string // contains filtered or unexported fields }
Session is an abstract entity separate from an execution. Currently, its main role is to keep track of environment variables.
type Shell ¶
type Shell struct { *ExecutableConfig Cmds []string // contains filtered or unexported fields }
func (Shell) ProgramPath ¶ added in v0.6.0
type ShellSession ¶ added in v0.6.0
type ShellSession struct {
// contains filtered or unexported fields
}
func NewShellSession ¶ added in v0.6.0
func NewShellSession(command string) (*ShellSession, error)
func (*ShellSession) Close ¶ added in v0.6.0
func (s *ShellSession) Close() error
func (*ShellSession) Done ¶ added in v0.6.0
func (s *ShellSession) Done() <-chan struct{}
func (*ShellSession) Err ¶ added in v0.6.0
func (s *ShellSession) Err() error
func (*ShellSession) ID ¶ added in v0.6.0
func (s *ShellSession) ID() string
func (*ShellSession) Send ¶ added in v0.6.0
func (s *ShellSession) Send(data []byte) error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.