Documentation
¶
Index ¶
- Variables
- func DsaopServerHandle(ctx context.Context, o DsaopServer, opNum int, r ndr.Reader) (dcerpc.Operation, error)
- func NewDsaopServerHandle(o DsaopServer) dcerpc.ServerHandle
- func RegisterDsaopServer(conn dcerpc.Conn, o DsaopServer, opts ...dcerpc.Option)
- type DsaopClient
- type DsaopServer
- type ExecuteScriptRequest
- type ExecuteScriptResponse
- type MessageExecuteScriptReply
- func (o *MessageExecuteScriptReply) GetValue() any
- func (o *MessageExecuteScriptReply) MarshalUnionNDR(ctx context.Context, w ndr.Writer, sw uint32) error
- func (o *MessageExecuteScriptReply) NDRSwitchValue(sw uint32) uint32
- func (o *MessageExecuteScriptReply) UnmarshalUnionNDR(ctx context.Context, w ndr.Reader, sw uint32) error
- type MessageExecuteScriptReplyV1
- type MessageExecuteScriptReply_V1
- type MessageExecuteScriptRequest
- func (o *MessageExecuteScriptRequest) GetValue() any
- func (o *MessageExecuteScriptRequest) MarshalUnionNDR(ctx context.Context, w ndr.Writer, sw uint32) error
- func (o *MessageExecuteScriptRequest) NDRSwitchValue(sw uint32) uint32
- func (o *MessageExecuteScriptRequest) UnmarshalUnionNDR(ctx context.Context, w ndr.Reader, sw uint32) error
- type MessageExecuteScriptRequestV1
- type MessageExecuteScriptRequest_V1
- type MessagePrepareScriptReply
- func (o *MessagePrepareScriptReply) GetValue() any
- func (o *MessagePrepareScriptReply) MarshalUnionNDR(ctx context.Context, w ndr.Writer, sw uint32) error
- func (o *MessagePrepareScriptReply) NDRSwitchValue(sw uint32) uint32
- func (o *MessagePrepareScriptReply) UnmarshalUnionNDR(ctx context.Context, w ndr.Reader, sw uint32) error
- type MessagePrepareScriptReplyV1
- type MessagePrepareScriptReply_V1
- type MessagePrepareScriptRequest
- func (o *MessagePrepareScriptRequest) GetValue() any
- func (o *MessagePrepareScriptRequest) MarshalUnionNDR(ctx context.Context, w ndr.Writer, sw uint32) error
- func (o *MessagePrepareScriptRequest) NDRSwitchValue(sw uint32) uint32
- func (o *MessagePrepareScriptRequest) UnmarshalUnionNDR(ctx context.Context, w ndr.Reader, sw uint32) error
- type MessagePrepareScriptRequestV1
- type MessagePrepareScriptRequest_V1
- type PrepareScriptRequest
- type PrepareScriptResponse
- type UnimplementedDsaopServer
Constants ¶
This section is empty.
Variables ¶
var ( // Syntax UUID DsaopSyntaxUUID = &uuid.UUID{TimeLow: 0x7c44d7d4, TimeMid: 0x31d5, TimeHiAndVersion: 0x424c, ClockSeqHiAndReserved: 0xbd, ClockSeqLow: 0x5e, Node: [6]uint8{0x2b, 0x3e, 0x1f, 0x32, 0x3d, 0x22}} // Syntax ID DsaopSyntaxV1_0 = &dcerpc.SyntaxID{IfUUID: DsaopSyntaxUUID, IfVersionMajor: 1, IfVersionMinor: 0} )
var (
// import guard
GoPackage = "drsr"
)
Functions ¶
func DsaopServerHandle ¶
func NewDsaopServerHandle ¶
func NewDsaopServerHandle(o DsaopServer) dcerpc.ServerHandle
func RegisterDsaopServer ¶
func RegisterDsaopServer(conn dcerpc.Conn, o DsaopServer, opts ...dcerpc.Option)
Types ¶
type DsaopClient ¶
type DsaopClient interface { // The IDL_DSAPrepareScript method prepares the DC to run a maintenance script. // // Return Values: 0 if successful, or a Windows error code if a failure occurs. PrepareScript(context.Context, *PrepareScriptRequest, ...dcerpc.CallOption) (*PrepareScriptResponse, error) // The IDL_DSAExecuteScript method executes a maintenance script. // // Return Values: 0 if successful, or a Windows error code if a failure occurs. ExecuteScript(context.Context, *ExecuteScriptRequest, ...dcerpc.CallOption) (*ExecuteScriptResponse, error) // AlterContext alters the client context. AlterContext(context.Context, ...dcerpc.Option) error // Conn returns the client connection (unsafe) Conn() dcerpc.Conn }
dsaop interface.
func NewDsaopClient ¶
type DsaopServer ¶
type DsaopServer interface { // The IDL_DSAPrepareScript method prepares the DC to run a maintenance script. // // Return Values: 0 if successful, or a Windows error code if a failure occurs. PrepareScript(context.Context, *PrepareScriptRequest) (*PrepareScriptResponse, error) // The IDL_DSAExecuteScript method executes a maintenance script. // // Return Values: 0 if successful, or a Windows error code if a failure occurs. ExecuteScript(context.Context, *ExecuteScriptRequest) (*ExecuteScriptResponse, error) }
dsaop server interface.
type ExecuteScriptRequest ¶
type ExecuteScriptRequest struct { // dwInVersion: The version of the request message. InVersion uint32 `idl:"name:dwInVersion" json:"in_version"` // pmsgIn: A pointer to the request message. In *MessageExecuteScriptRequest `idl:"name:pmsgIn;switch_is:dwInVersion;pointer:ref" json:"in"` }
ExecuteScriptRequest structure represents the IDL_DSAExecuteScript operation request
func (*ExecuteScriptRequest) MarshalNDR ¶
func (*ExecuteScriptRequest) UnmarshalNDR ¶
type ExecuteScriptResponse ¶
type ExecuteScriptResponse struct { // pdwOutVersion: A pointer to the version of the response message. OutVersion uint32 `idl:"name:pdwOutVersion;pointer:ref" json:"out_version"` // pmsgOut: A pointer to the response message. Out *MessageExecuteScriptReply `idl:"name:pmsgOut;switch_is:*pdwOutVersion;pointer:ref" json:"out"` // Return: The IDL_DSAExecuteScript return value. Return uint32 `idl:"name:Return" json:"return"` }
ExecuteScriptResponse structure represents the IDL_DSAExecuteScript operation response
func (*ExecuteScriptResponse) MarshalNDR ¶
func (*ExecuteScriptResponse) UnmarshalNDR ¶
type MessageExecuteScriptReply ¶
type MessageExecuteScriptReply struct { // Types that are assignable to Value // // *MessageExecuteScriptReply_V1 Value is_MessageExecuteScriptReply `json:"value"` }
MessageExecuteScriptReply structure represents DSA_MSG_EXECUTE_SCRIPT_REPLY RPC union.
The DSA_MSG_EXECUTE_SCRIPT_REPLY union defines the response messages received from the IDL_DSAExecuteScript method.
func (*MessageExecuteScriptReply) GetValue ¶
func (o *MessageExecuteScriptReply) GetValue() any
func (*MessageExecuteScriptReply) MarshalUnionNDR ¶
func (*MessageExecuteScriptReply) NDRSwitchValue ¶
func (o *MessageExecuteScriptReply) NDRSwitchValue(sw uint32) uint32
func (*MessageExecuteScriptReply) UnmarshalUnionNDR ¶
type MessageExecuteScriptReplyV1 ¶
type MessageExecuteScriptReplyV1 struct { // dwOperationStatus: 0 if successful, or a Windows error code if a fatal error occurred. OperationStatus uint32 `idl:"name:dwOperationStatus" json:"operation_status"` // pwErrMessage: Null if successful, or a description of the error if a fatal error // occurred. ErrorMessage string `idl:"name:pwErrMessage;string" json:"error_message"` }
MessageExecuteScriptReplyV1 structure represents DSA_MSG_EXECUTE_SCRIPT_REPLY_V1 RPC structure.
The DSA_MSG_EXECUTE_SCRIPT_REPLY_V1 structure defines a response message received from the IDL_DSAExecuteScript method.
func (*MessageExecuteScriptReplyV1) MarshalNDR ¶
func (*MessageExecuteScriptReplyV1) UnmarshalNDR ¶
type MessageExecuteScriptReply_V1 ¶
type MessageExecuteScriptReply_V1 struct { // V1: The version 1 request. V1 *MessageExecuteScriptReplyV1 `idl:"name:V1" json:"v1"` }
MessageExecuteScriptReply_V1 structure represents DSA_MSG_EXECUTE_SCRIPT_REPLY RPC union arm.
It has following labels: 1
func (*MessageExecuteScriptReply_V1) MarshalNDR ¶
func (*MessageExecuteScriptReply_V1) UnmarshalNDR ¶
type MessageExecuteScriptRequest ¶
type MessageExecuteScriptRequest struct { // Types that are assignable to Value // // *MessageExecuteScriptRequest_V1 Value is_MessageExecuteScriptRequest `json:"value"` }
MessageExecuteScriptRequest structure represents DSA_MSG_EXECUTE_SCRIPT_REQ RPC union.
The DSA_MSG_EXECUTE_SCRIPT_REQ union defines the request messages sent to the IDL_DSAExecuteScript method.
func (*MessageExecuteScriptRequest) GetValue ¶
func (o *MessageExecuteScriptRequest) GetValue() any
func (*MessageExecuteScriptRequest) MarshalUnionNDR ¶
func (*MessageExecuteScriptRequest) NDRSwitchValue ¶
func (o *MessageExecuteScriptRequest) NDRSwitchValue(sw uint32) uint32
func (*MessageExecuteScriptRequest) UnmarshalUnionNDR ¶
type MessageExecuteScriptRequestV1 ¶
type MessageExecuteScriptRequestV1 struct { // Flags: Unused. MUST be 0 and ignored. Flags uint32 `idl:"name:Flags" json:"flags"` // cbPassword: The count, in bytes, of the pbPassword array. PasswordLength uint32 `idl:"name:cbPassword" json:"password_length"` // pbPassword: The password. Password []byte `idl:"name:pbPassword;size_is:(cbPassword)" json:"password"` }
MessageExecuteScriptRequestV1 structure represents DSA_MSG_EXECUTE_SCRIPT_REQ_V1 RPC structure.
The DSA_MSG_EXECUTE_SCRIPT_REQ_V1 structure defines a request message sent to the IDL_DSAExecuteScript method.
func (*MessageExecuteScriptRequestV1) MarshalNDR ¶
func (*MessageExecuteScriptRequestV1) UnmarshalNDR ¶
type MessageExecuteScriptRequest_V1 ¶
type MessageExecuteScriptRequest_V1 struct { // V1: The version 1 request. V1 *MessageExecuteScriptRequestV1 `idl:"name:V1" json:"v1"` }
MessageExecuteScriptRequest_V1 structure represents DSA_MSG_EXECUTE_SCRIPT_REQ RPC union arm.
It has following labels: 1
func (*MessageExecuteScriptRequest_V1) MarshalNDR ¶
func (*MessageExecuteScriptRequest_V1) UnmarshalNDR ¶
type MessagePrepareScriptReply ¶
type MessagePrepareScriptReply struct { // Types that are assignable to Value // // *MessagePrepareScriptReply_V1 Value is_MessagePrepareScriptReply `json:"value"` }
MessagePrepareScriptReply structure represents DSA_MSG_PREPARE_SCRIPT_REPLY RPC union.
The DSA_MSG_PREPARE_SCRIPT_REPLY union defines the response messages received from the IDL_DSAPrepareScript method.
func (*MessagePrepareScriptReply) GetValue ¶
func (o *MessagePrepareScriptReply) GetValue() any
func (*MessagePrepareScriptReply) MarshalUnionNDR ¶
func (*MessagePrepareScriptReply) NDRSwitchValue ¶
func (o *MessagePrepareScriptReply) NDRSwitchValue(sw uint32) uint32
func (*MessagePrepareScriptReply) UnmarshalUnionNDR ¶
type MessagePrepareScriptReplyV1 ¶
type MessagePrepareScriptReplyV1 struct { // dwOperationStatus: 0 if successful, or a Windows error code if a fatal error occurred. OperationStatus uint32 `idl:"name:dwOperationStatus" json:"operation_status"` // pwErrMessage: Null if successful, or a description of an error if a fatal error // occurred. ErrorMessage string `idl:"name:pwErrMessage;string" json:"error_message"` // cbPassword: The count, in bytes, of the pbPassword array. PasswordLength uint32 `idl:"name:cbPassword" json:"password_length"` // pbPassword: The password. Password []byte `idl:"name:pbPassword;size_is:(cbPassword)" json:"password"` // cbHashBody: The count, in bytes, of the pbHashBody array. HashBodyLength uint32 `idl:"name:cbHashBody" json:"hash_body_length"` // pbHashBody: The hash of the script value. HashBody []byte `idl:"name:pbHashBody;size_is:(cbHashBody)" json:"hash_body"` // cbHashSignature: The count, in bytes, of the pbHashSignature array. HashSignatureLength uint32 `idl:"name:cbHashSignature" json:"hash_signature_length"` // pbHashSignature: The script signature. HashSignature []byte `idl:"name:pbHashSignature;size_is:(cbHashSignature)" json:"hash_signature"` }
MessagePrepareScriptReplyV1 structure represents DSA_MSG_PREPARE_SCRIPT_REPLY_V1 RPC structure.
The DSA_MSG_PREPARE_SCRIPT_REPLY_V1 structure defines a response message received from the IDL_DSAPrepareScript method.
func (*MessagePrepareScriptReplyV1) MarshalNDR ¶
func (*MessagePrepareScriptReplyV1) UnmarshalNDR ¶
type MessagePrepareScriptReply_V1 ¶
type MessagePrepareScriptReply_V1 struct { // V1: The version 1 response. V1 *MessagePrepareScriptReplyV1 `idl:"name:V1" json:"v1"` }
MessagePrepareScriptReply_V1 structure represents DSA_MSG_PREPARE_SCRIPT_REPLY RPC union arm.
It has following labels: 1
func (*MessagePrepareScriptReply_V1) MarshalNDR ¶
func (*MessagePrepareScriptReply_V1) UnmarshalNDR ¶
type MessagePrepareScriptRequest ¶
type MessagePrepareScriptRequest struct { // Types that are assignable to Value // // *MessagePrepareScriptRequest_V1 Value is_MessagePrepareScriptRequest `json:"value"` }
MessagePrepareScriptRequest structure represents DSA_MSG_PREPARE_SCRIPT_REQ RPC union.
The DSA_MSG_PREPARE_SCRIPT_REQ union defines the request messages sent to the IDL_DSAPrepareScript method.
func (*MessagePrepareScriptRequest) GetValue ¶
func (o *MessagePrepareScriptRequest) GetValue() any
func (*MessagePrepareScriptRequest) MarshalUnionNDR ¶
func (*MessagePrepareScriptRequest) NDRSwitchValue ¶
func (o *MessagePrepareScriptRequest) NDRSwitchValue(sw uint32) uint32
func (*MessagePrepareScriptRequest) UnmarshalUnionNDR ¶
type MessagePrepareScriptRequestV1 ¶
type MessagePrepareScriptRequestV1 struct {
// contains filtered or unexported fields
}
MessagePrepareScriptRequestV1 structure represents DSA_MSG_PREPARE_SCRIPT_REQ_V1 RPC structure.
The DSA_MSG_PREPARE_SCRIPT_REQ_V1 structure defines a request message sent to the IDL_DSAPrepareScript method.
func (*MessagePrepareScriptRequestV1) MarshalNDR ¶
func (*MessagePrepareScriptRequestV1) UnmarshalNDR ¶
type MessagePrepareScriptRequest_V1 ¶
type MessagePrepareScriptRequest_V1 struct { // V1: The version 1 request. V1 *MessagePrepareScriptRequestV1 `idl:"name:V1" json:"v1"` }
MessagePrepareScriptRequest_V1 structure represents DSA_MSG_PREPARE_SCRIPT_REQ RPC union arm.
It has following labels: 1
func (*MessagePrepareScriptRequest_V1) MarshalNDR ¶
func (*MessagePrepareScriptRequest_V1) UnmarshalNDR ¶
type PrepareScriptRequest ¶
type PrepareScriptRequest struct { // dwInVersion: The version of the request message. InVersion uint32 `idl:"name:dwInVersion" json:"in_version"` // pmsgIn: A pointer to the request message. In *MessagePrepareScriptRequest `idl:"name:pmsgIn;switch_is:dwInVersion;pointer:ref" json:"in"` }
PrepareScriptRequest structure represents the IDL_DSAPrepareScript operation request
func (*PrepareScriptRequest) MarshalNDR ¶
func (*PrepareScriptRequest) UnmarshalNDR ¶
type PrepareScriptResponse ¶
type PrepareScriptResponse struct { // pdwOutVersion: A pointer to the version of the response message. OutVersion uint32 `idl:"name:pdwOutVersion;pointer:ref" json:"out_version"` // pmsgOut: A pointer to the response message. Out *MessagePrepareScriptReply `idl:"name:pmsgOut;switch_is:*pdwOutVersion;pointer:ref" json:"out"` // Return: The IDL_DSAPrepareScript return value. Return uint32 `idl:"name:Return" json:"return"` }
PrepareScriptResponse structure represents the IDL_DSAPrepareScript operation response
func (*PrepareScriptResponse) MarshalNDR ¶
func (*PrepareScriptResponse) UnmarshalNDR ¶
type UnimplementedDsaopServer ¶ added in v1.1.5
type UnimplementedDsaopServer struct { }
Unimplemented dsaop
func (UnimplementedDsaopServer) ExecuteScript ¶ added in v1.1.5
func (UnimplementedDsaopServer) ExecuteScript(context.Context, *ExecuteScriptRequest) (*ExecuteScriptResponse, error)
func (UnimplementedDsaopServer) PrepareScript ¶ added in v1.1.5
func (UnimplementedDsaopServer) PrepareScript(context.Context, *PrepareScriptRequest) (*PrepareScriptResponse, error)