Documentation
¶
Index ¶
- func AdaptSandboxExec(t SandboxExec) *rpc.Interface
- type SandboxExec
- type SandboxExecClient
- type SandboxExecClientExecResults
- type SandboxExecExec
- type SandboxExecExecArgs
- func (v *SandboxExecExecArgs) Category() string
- func (v *SandboxExecExecArgs) Command() string
- func (v *SandboxExecExecArgs) HasCategory() bool
- func (v *SandboxExecExecArgs) HasCommand() bool
- func (v *SandboxExecExecArgs) HasInput() bool
- func (v *SandboxExecExecArgs) HasOptions() bool
- func (v *SandboxExecExecArgs) HasOutput() bool
- func (v *SandboxExecExecArgs) HasValue() bool
- func (v *SandboxExecExecArgs) HasWindowUpdates() bool
- func (v *SandboxExecExecArgs) Input() *stream.RecvStreamClient[[]byte]
- func (v *SandboxExecExecArgs) MarshalCBOR() ([]byte, error)
- func (v *SandboxExecExecArgs) MarshalJSON() ([]byte, error)
- func (v *SandboxExecExecArgs) Options() *ShellOptions
- func (v *SandboxExecExecArgs) Output() *stream.SendStreamClient[[]byte]
- func (v *SandboxExecExecArgs) UnmarshalCBOR(data []byte) error
- func (v *SandboxExecExecArgs) UnmarshalJSON(data []byte) error
- func (v *SandboxExecExecArgs) Value() string
- func (v *SandboxExecExecArgs) WindowUpdates() *stream.RecvStreamClient[*WindowSize]
- type SandboxExecExecResults
- func (v *SandboxExecExecResults) MarshalCBOR() ([]byte, error)
- func (v *SandboxExecExecResults) MarshalJSON() ([]byte, error)
- func (v *SandboxExecExecResults) SetCode(code int32)
- func (v *SandboxExecExecResults) UnmarshalCBOR(data []byte) error
- func (v *SandboxExecExecResults) UnmarshalJSON(data []byte) error
- type ShellOptions
- func (v *ShellOptions) Command() []string
- func (v *ShellOptions) Env() []string
- func (v *ShellOptions) HasCommand() bool
- func (v *ShellOptions) HasEnv() bool
- func (v *ShellOptions) HasPool() bool
- func (v *ShellOptions) HasTerminal() bool
- func (v *ShellOptions) HasWinSize() bool
- func (v *ShellOptions) MarshalCBOR() ([]byte, error)
- func (v *ShellOptions) MarshalJSON() ([]byte, error)
- func (v *ShellOptions) Pool() string
- func (v *ShellOptions) SetCommand(command []string)
- func (v *ShellOptions) SetEnv(env []string)
- func (v *ShellOptions) SetPool(pool string)
- func (v *ShellOptions) SetTerminal(terminal bool)
- func (v *ShellOptions) SetWinSize(win_size *WindowSize)
- func (v *ShellOptions) Terminal() bool
- func (v *ShellOptions) UnmarshalCBOR(data []byte) error
- func (v *ShellOptions) UnmarshalJSON(data []byte) error
- func (v *ShellOptions) WinSize() *WindowSize
- type WindowSize
- func (v *WindowSize) HasHeight() bool
- func (v *WindowSize) HasWidth() bool
- func (v *WindowSize) Height() int32
- func (v *WindowSize) MarshalCBOR() ([]byte, error)
- func (v *WindowSize) MarshalJSON() ([]byte, error)
- func (v *WindowSize) SetHeight(height int32)
- func (v *WindowSize) SetWidth(width int32)
- func (v *WindowSize) UnmarshalCBOR(data []byte) error
- func (v *WindowSize) UnmarshalJSON(data []byte) error
- func (v *WindowSize) Width() int32
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdaptSandboxExec ¶
func AdaptSandboxExec(t SandboxExec) *rpc.Interface
Types ¶
type SandboxExec ¶
type SandboxExec interface {
Exec(ctx context.Context, state *SandboxExecExec) error
}
type SandboxExecClient ¶
func NewSandboxExecClient ¶
func NewSandboxExecClient(client rpc.Client) *SandboxExecClient
func (SandboxExecClient) Exec ¶
func (v SandboxExecClient) Exec(ctx context.Context, category string, value string, command string, options *ShellOptions, input stream.RecvStream[[]byte], output stream.SendStream[[]byte], window_updates stream.RecvStream[*WindowSize]) (*SandboxExecClientExecResults, error)
func (SandboxExecClient) Export ¶
func (c SandboxExecClient) Export() SandboxExec
type SandboxExecClientExecResults ¶
type SandboxExecClientExecResults struct {
// contains filtered or unexported fields
}
func (*SandboxExecClientExecResults) Code ¶
func (v *SandboxExecClientExecResults) Code() int32
func (*SandboxExecClientExecResults) HasCode ¶
func (v *SandboxExecClientExecResults) HasCode() bool
type SandboxExecExec ¶
func (*SandboxExecExec) Args ¶
func (t *SandboxExecExec) Args() *SandboxExecExecArgs
func (*SandboxExecExec) Results ¶
func (t *SandboxExecExec) Results() *SandboxExecExecResults
type SandboxExecExecArgs ¶
type SandboxExecExecArgs struct {
// contains filtered or unexported fields
}
func (*SandboxExecExecArgs) Category ¶
func (v *SandboxExecExecArgs) Category() string
func (*SandboxExecExecArgs) Command ¶
func (v *SandboxExecExecArgs) Command() string
func (*SandboxExecExecArgs) HasCategory ¶
func (v *SandboxExecExecArgs) HasCategory() bool
func (*SandboxExecExecArgs) HasCommand ¶
func (v *SandboxExecExecArgs) HasCommand() bool
func (*SandboxExecExecArgs) HasInput ¶
func (v *SandboxExecExecArgs) HasInput() bool
func (*SandboxExecExecArgs) HasOptions ¶
func (v *SandboxExecExecArgs) HasOptions() bool
func (*SandboxExecExecArgs) HasOutput ¶
func (v *SandboxExecExecArgs) HasOutput() bool
func (*SandboxExecExecArgs) HasValue ¶
func (v *SandboxExecExecArgs) HasValue() bool
func (*SandboxExecExecArgs) HasWindowUpdates ¶
func (v *SandboxExecExecArgs) HasWindowUpdates() bool
func (*SandboxExecExecArgs) Input ¶
func (v *SandboxExecExecArgs) Input() *stream.RecvStreamClient[[]byte]
func (*SandboxExecExecArgs) MarshalCBOR ¶
func (v *SandboxExecExecArgs) MarshalCBOR() ([]byte, error)
func (*SandboxExecExecArgs) MarshalJSON ¶
func (v *SandboxExecExecArgs) MarshalJSON() ([]byte, error)
func (*SandboxExecExecArgs) Options ¶
func (v *SandboxExecExecArgs) Options() *ShellOptions
func (*SandboxExecExecArgs) Output ¶
func (v *SandboxExecExecArgs) Output() *stream.SendStreamClient[[]byte]
func (*SandboxExecExecArgs) UnmarshalCBOR ¶
func (v *SandboxExecExecArgs) UnmarshalCBOR(data []byte) error
func (*SandboxExecExecArgs) UnmarshalJSON ¶
func (v *SandboxExecExecArgs) UnmarshalJSON(data []byte) error
func (*SandboxExecExecArgs) Value ¶
func (v *SandboxExecExecArgs) Value() string
func (*SandboxExecExecArgs) WindowUpdates ¶
func (v *SandboxExecExecArgs) WindowUpdates() *stream.RecvStreamClient[*WindowSize]
type SandboxExecExecResults ¶
type SandboxExecExecResults struct {
// contains filtered or unexported fields
}
func (*SandboxExecExecResults) MarshalCBOR ¶
func (v *SandboxExecExecResults) MarshalCBOR() ([]byte, error)
func (*SandboxExecExecResults) MarshalJSON ¶
func (v *SandboxExecExecResults) MarshalJSON() ([]byte, error)
func (*SandboxExecExecResults) SetCode ¶
func (v *SandboxExecExecResults) SetCode(code int32)
func (*SandboxExecExecResults) UnmarshalCBOR ¶
func (v *SandboxExecExecResults) UnmarshalCBOR(data []byte) error
func (*SandboxExecExecResults) UnmarshalJSON ¶
func (v *SandboxExecExecResults) UnmarshalJSON(data []byte) error
type ShellOptions ¶
type ShellOptions struct {
// contains filtered or unexported fields
}
func (*ShellOptions) Command ¶
func (v *ShellOptions) Command() []string
func (*ShellOptions) Env ¶
func (v *ShellOptions) Env() []string
func (*ShellOptions) HasCommand ¶
func (v *ShellOptions) HasCommand() bool
func (*ShellOptions) HasEnv ¶
func (v *ShellOptions) HasEnv() bool
func (*ShellOptions) HasPool ¶
func (v *ShellOptions) HasPool() bool
func (*ShellOptions) HasTerminal ¶
func (v *ShellOptions) HasTerminal() bool
func (*ShellOptions) HasWinSize ¶
func (v *ShellOptions) HasWinSize() bool
func (*ShellOptions) MarshalCBOR ¶
func (v *ShellOptions) MarshalCBOR() ([]byte, error)
func (*ShellOptions) MarshalJSON ¶
func (v *ShellOptions) MarshalJSON() ([]byte, error)
func (*ShellOptions) Pool ¶
func (v *ShellOptions) Pool() string
func (*ShellOptions) SetCommand ¶
func (v *ShellOptions) SetCommand(command []string)
func (*ShellOptions) SetEnv ¶
func (v *ShellOptions) SetEnv(env []string)
func (*ShellOptions) SetPool ¶
func (v *ShellOptions) SetPool(pool string)
func (*ShellOptions) SetTerminal ¶
func (v *ShellOptions) SetTerminal(terminal bool)
func (*ShellOptions) SetWinSize ¶
func (v *ShellOptions) SetWinSize(win_size *WindowSize)
func (*ShellOptions) Terminal ¶
func (v *ShellOptions) Terminal() bool
func (*ShellOptions) UnmarshalCBOR ¶
func (v *ShellOptions) UnmarshalCBOR(data []byte) error
func (*ShellOptions) UnmarshalJSON ¶
func (v *ShellOptions) UnmarshalJSON(data []byte) error
func (*ShellOptions) WinSize ¶
func (v *ShellOptions) WinSize() *WindowSize
type WindowSize ¶
type WindowSize struct {
// contains filtered or unexported fields
}
func (*WindowSize) HasHeight ¶
func (v *WindowSize) HasHeight() bool
func (*WindowSize) HasWidth ¶
func (v *WindowSize) HasWidth() bool
func (*WindowSize) Height ¶
func (v *WindowSize) Height() int32
func (*WindowSize) MarshalCBOR ¶
func (v *WindowSize) MarshalCBOR() ([]byte, error)
func (*WindowSize) MarshalJSON ¶
func (v *WindowSize) MarshalJSON() ([]byte, error)
func (*WindowSize) SetHeight ¶
func (v *WindowSize) SetHeight(height int32)
func (*WindowSize) SetWidth ¶
func (v *WindowSize) SetWidth(width int32)
func (*WindowSize) UnmarshalCBOR ¶
func (v *WindowSize) UnmarshalCBOR(data []byte) error
func (*WindowSize) UnmarshalJSON ¶
func (v *WindowSize) UnmarshalJSON(data []byte) error
func (*WindowSize) Width ¶
func (v *WindowSize) Width() int32
Click to show internal directories.
Click to hide internal directories.