Documentation ¶
Index ¶
- Variables
- type AgentCommand
- func (*AgentCommand) Descriptor() ([]byte, []int)deprecated
- func (x *AgentCommand) GetCommand() string
- func (x *AgentCommand) GetParameters() map[string]string
- func (*AgentCommand) ProtoMessage()
- func (x *AgentCommand) ProtoReflect() protoreflect.Message
- func (x *AgentCommand) Reset()
- func (x *AgentCommand) String() string
- type Command
- func (*Command) Descriptor() ([]byte, []int)deprecated
- func (x *Command) GetAgentCommand() *AgentCommand
- func (m *Command) GetCommandType() isCommand_CommandType
- func (x *Command) GetShellCommand() *ShellCommand
- func (*Command) ProtoMessage()
- func (x *Command) ProtoReflect() protoreflect.Message
- func (x *Command) Reset()
- func (x *Command) String() string
- type CommandResult
- func (*CommandResult) Descriptor() ([]byte, []int)deprecated
- func (x *CommandResult) GetCommand() *Command
- func (x *CommandResult) GetExitCode() int32
- func (x *CommandResult) GetPayload() *anypb.Any
- func (x *CommandResult) GetStderr() string
- func (x *CommandResult) GetStdout() string
- func (*CommandResult) ProtoMessage()
- func (x *CommandResult) ProtoReflect() protoreflect.Message
- func (x *CommandResult) Reset()
- func (x *CommandResult) String() string
- type Command_AgentCommand
- type Command_ShellCommand
- type GuestActionError
- type GuestActionRequest
- func (*GuestActionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GuestActionRequest) GetCommands() []*Command
- func (x *GuestActionRequest) GetWorkloadAction() *WorkloadAction
- func (*GuestActionRequest) ProtoMessage()
- func (x *GuestActionRequest) ProtoReflect() protoreflect.Message
- func (x *GuestActionRequest) Reset()
- func (x *GuestActionRequest) String() string
- type GuestActionResponse
- func (*GuestActionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GuestActionResponse) GetCommandResults() []*CommandResult
- func (x *GuestActionResponse) GetError() *GuestActionError
- func (*GuestActionResponse) ProtoMessage()
- func (x *GuestActionResponse) ProtoReflect() protoreflect.Message
- func (x *GuestActionResponse) Reset()
- func (x *GuestActionResponse) String() string
- type SapWorkloadAction
- func (SapWorkloadAction) Descriptor() protoreflect.EnumDescriptor
- func (x SapWorkloadAction) Enum() *SapWorkloadAction
- func (SapWorkloadAction) EnumDescriptor() ([]byte, []int)deprecated
- func (x SapWorkloadAction) Number() protoreflect.EnumNumber
- func (x SapWorkloadAction) String() string
- func (SapWorkloadAction) Type() protoreflect.EnumType
- type ShellCommand
- func (*ShellCommand) Descriptor() ([]byte, []int)deprecated
- func (x *ShellCommand) GetArgs() string
- func (x *ShellCommand) GetCommand() string
- func (x *ShellCommand) GetTimeoutSeconds() int32
- func (*ShellCommand) ProtoMessage()
- func (x *ShellCommand) ProtoReflect() protoreflect.Message
- func (x *ShellCommand) Reset()
- func (x *ShellCommand) String() string
- type WorkloadAction
- func (*WorkloadAction) Descriptor() ([]byte, []int)deprecated
- func (x *WorkloadAction) GetSapWorkloadAction() SapWorkloadAction
- func (m *WorkloadAction) GetWorkloadType() isWorkloadAction_WorkloadType
- func (*WorkloadAction) ProtoMessage()
- func (x *WorkloadAction) ProtoReflect() protoreflect.Message
- func (x *WorkloadAction) Reset()
- func (x *WorkloadAction) String() string
- type WorkloadAction_SapWorkloadAction
Constants ¶
This section is empty.
Variables ¶
var ( SapWorkloadAction_name = map[int32]string{ 0: "SAP_WORKLOAD_ACTION_UNSPECIFIED", 1: "SAP_WLM_EVALUATION_FIX", 2: "SAP_START", 3: "SAP_STOP", 4: "SAP_SNOOZE", } SapWorkloadAction_value = map[string]int32{ "SAP_WORKLOAD_ACTION_UNSPECIFIED": 0, "SAP_WLM_EVALUATION_FIX": 1, "SAP_START": 2, "SAP_STOP": 3, "SAP_SNOOZE": 4, } )
Enum value maps for SapWorkloadAction.
Functions ¶
This section is empty.
Types ¶
type AgentCommand ¶
type AgentCommand struct { // command is the name of the agent one-time executable that will be invoked. Command string `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"` // parameters is a map of key/value pairs that can be used to specify // additional one-time executable settings. Parameters map[string]string `` /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
* An AgentCommand specifies a one-time executable program for the agent to run.
func (*AgentCommand) Descriptor
deprecated
func (*AgentCommand) Descriptor() ([]byte, []int)
Deprecated: Use AgentCommand.ProtoReflect.Descriptor instead.
func (*AgentCommand) GetCommand ¶
func (x *AgentCommand) GetCommand() string
func (*AgentCommand) GetParameters ¶
func (x *AgentCommand) GetParameters() map[string]string
func (*AgentCommand) ProtoMessage ¶
func (*AgentCommand) ProtoMessage()
func (*AgentCommand) ProtoReflect ¶
func (x *AgentCommand) ProtoReflect() protoreflect.Message
func (*AgentCommand) Reset ¶
func (x *AgentCommand) Reset()
func (*AgentCommand) String ¶
func (x *AgentCommand) String() string
type Command ¶
type Command struct { // Types that are assignable to CommandType: // // *Command_AgentCommand // *Command_ShellCommand CommandType isCommand_CommandType `protobuf_oneof:"command_type"` // contains filtered or unexported fields }
* Command specifies the type of command to execute.
func (*Command) Descriptor
deprecated
func (*Command) GetAgentCommand ¶
func (x *Command) GetAgentCommand() *AgentCommand
func (*Command) GetCommandType ¶
func (m *Command) GetCommandType() isCommand_CommandType
func (*Command) GetShellCommand ¶
func (x *Command) GetShellCommand() *ShellCommand
func (*Command) ProtoMessage ¶
func (*Command) ProtoMessage()
func (*Command) ProtoReflect ¶
func (x *Command) ProtoReflect() protoreflect.Message
type CommandResult ¶
type CommandResult struct { Command *Command `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"` Stdout string `protobuf:"bytes,2,opt,name=stdout,proto3" json:"stdout,omitempty"` Stderr string `protobuf:"bytes,3,opt,name=stderr,proto3" json:"stderr,omitempty"` ExitCode int32 `protobuf:"varint,4,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"` Payload *anypb.Any `protobuf:"bytes,5,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
* CommandResult contains the result of a single command execution.
func (*CommandResult) Descriptor
deprecated
func (*CommandResult) Descriptor() ([]byte, []int)
Deprecated: Use CommandResult.ProtoReflect.Descriptor instead.
func (*CommandResult) GetCommand ¶
func (x *CommandResult) GetCommand() *Command
func (*CommandResult) GetExitCode ¶
func (x *CommandResult) GetExitCode() int32
func (*CommandResult) GetPayload ¶
func (x *CommandResult) GetPayload() *anypb.Any
func (*CommandResult) GetStderr ¶
func (x *CommandResult) GetStderr() string
func (*CommandResult) GetStdout ¶
func (x *CommandResult) GetStdout() string
func (*CommandResult) ProtoMessage ¶
func (*CommandResult) ProtoMessage()
func (*CommandResult) ProtoReflect ¶
func (x *CommandResult) ProtoReflect() protoreflect.Message
func (*CommandResult) Reset ¶
func (x *CommandResult) Reset()
func (*CommandResult) String ¶
func (x *CommandResult) String() string
type Command_AgentCommand ¶
type Command_AgentCommand struct {
AgentCommand *AgentCommand `protobuf:"bytes,1,opt,name=agent_command,json=agentCommand,proto3,oneof"`
}
type Command_ShellCommand ¶
type Command_ShellCommand struct {
ShellCommand *ShellCommand `protobuf:"bytes,2,opt,name=shell_command,json=shellCommand,proto3,oneof"`
}
type GuestActionError ¶
type GuestActionError struct { ErrorMessage string `protobuf:"bytes,1,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` // contains filtered or unexported fields }
* GuestActionError contains details about an error that occurred while processing a GuestActionRequest.
func (*GuestActionError) Descriptor
deprecated
func (*GuestActionError) Descriptor() ([]byte, []int)
Deprecated: Use GuestActionError.ProtoReflect.Descriptor instead.
func (*GuestActionError) GetErrorMessage ¶
func (x *GuestActionError) GetErrorMessage() string
func (*GuestActionError) ProtoMessage ¶
func (*GuestActionError) ProtoMessage()
func (*GuestActionError) ProtoReflect ¶
func (x *GuestActionError) ProtoReflect() protoreflect.Message
func (*GuestActionError) Reset ¶
func (x *GuestActionError) Reset()
func (*GuestActionError) String ¶
func (x *GuestActionError) String() string
type GuestActionRequest ¶
type GuestActionRequest struct { WorkloadAction *WorkloadAction `protobuf:"bytes,1,opt,name=workload_action,json=workloadAction,proto3" json:"workload_action,omitempty"` Commands []*Command `protobuf:"bytes,2,rep,name=commands,proto3" json:"commands,omitempty"` // contains filtered or unexported fields }
* A GuestActionRequest is contained in the body of an UAP message that is sent to the agent by the WorkloadActions service.
func (*GuestActionRequest) Descriptor
deprecated
func (*GuestActionRequest) Descriptor() ([]byte, []int)
Deprecated: Use GuestActionRequest.ProtoReflect.Descriptor instead.
func (*GuestActionRequest) GetCommands ¶
func (x *GuestActionRequest) GetCommands() []*Command
func (*GuestActionRequest) GetWorkloadAction ¶
func (x *GuestActionRequest) GetWorkloadAction() *WorkloadAction
func (*GuestActionRequest) ProtoMessage ¶
func (*GuestActionRequest) ProtoMessage()
func (*GuestActionRequest) ProtoReflect ¶
func (x *GuestActionRequest) ProtoReflect() protoreflect.Message
func (*GuestActionRequest) Reset ¶
func (x *GuestActionRequest) Reset()
func (*GuestActionRequest) String ¶
func (x *GuestActionRequest) String() string
type GuestActionResponse ¶
type GuestActionResponse struct { CommandResults []*CommandResult `protobuf:"bytes,1,rep,name=command_results,json=commandResults,proto3" json:"command_results,omitempty"` Error *GuestActionError `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
* A GuestActionResponse is contained in the body of an Agent Communication message that is sent from the agent to the WorkloadActions service.
func (*GuestActionResponse) Descriptor
deprecated
func (*GuestActionResponse) Descriptor() ([]byte, []int)
Deprecated: Use GuestActionResponse.ProtoReflect.Descriptor instead.
func (*GuestActionResponse) GetCommandResults ¶
func (x *GuestActionResponse) GetCommandResults() []*CommandResult
func (*GuestActionResponse) GetError ¶
func (x *GuestActionResponse) GetError() *GuestActionError
func (*GuestActionResponse) ProtoMessage ¶
func (*GuestActionResponse) ProtoMessage()
func (*GuestActionResponse) ProtoReflect ¶
func (x *GuestActionResponse) ProtoReflect() protoreflect.Message
func (*GuestActionResponse) Reset ¶
func (x *GuestActionResponse) Reset()
func (*GuestActionResponse) String ¶
func (x *GuestActionResponse) String() string
type SapWorkloadAction ¶
type SapWorkloadAction int32
* SapWorkloadAction specifies the type of SAP workload action to perform.
const ( SapWorkloadAction_SAP_WORKLOAD_ACTION_UNSPECIFIED SapWorkloadAction = 0 SapWorkloadAction_SAP_WLM_EVALUATION_FIX SapWorkloadAction = 1 SapWorkloadAction_SAP_START SapWorkloadAction = 2 SapWorkloadAction_SAP_STOP SapWorkloadAction = 3 SapWorkloadAction_SAP_SNOOZE SapWorkloadAction = 4 )
func (SapWorkloadAction) Descriptor ¶
func (SapWorkloadAction) Descriptor() protoreflect.EnumDescriptor
func (SapWorkloadAction) Enum ¶
func (x SapWorkloadAction) Enum() *SapWorkloadAction
func (SapWorkloadAction) EnumDescriptor
deprecated
func (SapWorkloadAction) EnumDescriptor() ([]byte, []int)
Deprecated: Use SapWorkloadAction.Descriptor instead.
func (SapWorkloadAction) Number ¶
func (x SapWorkloadAction) Number() protoreflect.EnumNumber
func (SapWorkloadAction) String ¶
func (x SapWorkloadAction) String() string
func (SapWorkloadAction) Type ¶
func (SapWorkloadAction) Type() protoreflect.EnumType
type ShellCommand ¶
type ShellCommand struct { // command is the name of the command to be executed. Command string `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"` // args is a string of arguments to be passed to the command. Args string `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty"` // Optional. If not specified, the default timeout is 60 seconds. TimeoutSeconds int32 `protobuf:"varint,3,opt,name=timeout_seconds,json=timeoutSeconds,proto3" json:"timeout_seconds,omitempty"` // contains filtered or unexported fields }
* A ShellCommand is invoked via the agent's command line executor
func (*ShellCommand) Descriptor
deprecated
func (*ShellCommand) Descriptor() ([]byte, []int)
Deprecated: Use ShellCommand.ProtoReflect.Descriptor instead.
func (*ShellCommand) GetArgs ¶
func (x *ShellCommand) GetArgs() string
func (*ShellCommand) GetCommand ¶
func (x *ShellCommand) GetCommand() string
func (*ShellCommand) GetTimeoutSeconds ¶
func (x *ShellCommand) GetTimeoutSeconds() int32
func (*ShellCommand) ProtoMessage ¶
func (*ShellCommand) ProtoMessage()
func (*ShellCommand) ProtoReflect ¶
func (x *ShellCommand) ProtoReflect() protoreflect.Message
func (*ShellCommand) Reset ¶
func (x *ShellCommand) Reset()
func (*ShellCommand) String ¶
func (x *ShellCommand) String() string
type WorkloadAction ¶
type WorkloadAction struct { // Types that are assignable to WorkloadType: // // *WorkloadAction_SapWorkloadAction WorkloadType isWorkloadAction_WorkloadType `protobuf_oneof:"workload_type"` // contains filtered or unexported fields }
* A WorkloadAction encodes the intended purpose of a guest action request. It is intended to be used as metadata for informational purposes.
func (*WorkloadAction) Descriptor
deprecated
func (*WorkloadAction) Descriptor() ([]byte, []int)
Deprecated: Use WorkloadAction.ProtoReflect.Descriptor instead.
func (*WorkloadAction) GetSapWorkloadAction ¶
func (x *WorkloadAction) GetSapWorkloadAction() SapWorkloadAction
func (*WorkloadAction) GetWorkloadType ¶
func (m *WorkloadAction) GetWorkloadType() isWorkloadAction_WorkloadType
func (*WorkloadAction) ProtoMessage ¶
func (*WorkloadAction) ProtoMessage()
func (*WorkloadAction) ProtoReflect ¶
func (x *WorkloadAction) ProtoReflect() protoreflect.Message
func (*WorkloadAction) Reset ¶
func (x *WorkloadAction) Reset()
func (*WorkloadAction) String ¶
func (x *WorkloadAction) String() string
type WorkloadAction_SapWorkloadAction ¶
type WorkloadAction_SapWorkloadAction struct {
SapWorkloadAction SapWorkloadAction `` /* 175-byte string literal not displayed */
}