Documentation ¶
Index ¶
- Constants
- type CommandState
- type Shell
- func (s *Shell) Cleanup()
- func (s *Shell) Command(ShellId string, command []string, SkipCmdShell bool, ConsoleModeStdin bool, ...) (string, error)
- func (s *Shell) Create(InputStreams []string, OutputStreams []string, Name string, ...) (ShellInstance, error)
- func (s *Shell) Delete(ShellId string) error
- func (s *Shell) Get(ShellId string) (ShellInstance, error)
- func (s *Shell) List() ([]ShellInstance, error)
- func (s *Shell) Receive(ShellId string, CommandId string, Streams []string) (CommandState, []StreamType, error)
- func (s *Shell) Send(ShellId string, CommandId string, Data string, Stream string, End bool) (string, error)
- type ShellInstance
- type StreamType
Constants ¶
View Source
const ( CommandDone = iota CommandPending = iota CommandRunning = iota )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandState ¶
type Shell ¶
func (*Shell) List ¶
func (s *Shell) List() ([]ShellInstance, error)
func (*Shell) Receive ¶
func (s *Shell) Receive(ShellId string, CommandId string, Streams []string) (CommandState, []StreamType, error)
type ShellInstance ¶
type ShellInstance struct { ShellId string ResourceUri string Owner string ClientIP string Environment map[string]string WorkingDirectory string IdleTimeOut string InputStreams string OutputStreams string ShellRunTime string ShellInactivity string }
func (*ShellInstance) FromEtreeElement ¶
func (si *ShellInstance) FromEtreeElement(ete *etree.Element)
func (ShellInstance) Json ¶
func (si ShellInstance) Json() string
func (ShellInstance) String ¶
func (si ShellInstance) String() string
type StreamType ¶
Click to show internal directories.
Click to hide internal directories.