Documentation
¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Command ¶
type Command struct { Context CommandContext `json:"task_context,omitempty"` ID string `json:"id,omitempty"` Command string `json:"command"` Name string `json:"name,omitempty"` Code []byte `json:"code,omitempty"` Entrypoint string `json:"entrypoint,omitempty"` Data string `json:"data,omitempty"` IsMessage bool `json:"is_message,omitempty"` }
func GetCommand ¶
type CommandContext ¶
type CommandContext struct { UID int `json:"uid,omitempty"` GID int `json:"gid,omitempty"` PID int `json:"pid,omitempty"` CommandName string `json:"command_name,omitempty"` CommandPath string `json:"command_path,omitempty"` NamespaceIDs NamespaceIDs `json:"namespace_ids,omitempty"` CGroupPath string `json:"cgroup_path,omitempty"` }
func (CommandContext) UniqueString ¶
func (c CommandContext) UniqueString() string
type Message ¶
type Message struct { Type MessageType `json:"type"` Data []byte `json:"data"` }
func NewCommand ¶
type MessageType ¶
type MessageType string
const AnswerMessageType MessageType = "answer"
const CommandMessageType MessageType = "command"
type NamespaceIDs ¶
type TraceRequestAction ¶
type TraceRequestAction string
const ( AddTraceRequestAction TraceRequestAction = "add" RemoveTraceRequestAction TraceRequestAction = "remove" ClearAllTraceRequestAction TraceRequestAction = "clear_all" )
type TraceRequestMessage ¶
type TraceRequestMessage struct { *trace_v1_api.TraceRequest `json:",inline"` Action TraceRequestAction `json:"action"` }
Click to show internal directories.
Click to hide internal directories.