dsaop

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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}
)
View Source
var (
	// import guard
	GoPackage = "drsr"
)

Functions

func DsaopServerHandle

func DsaopServerHandle(ctx context.Context, o DsaopServer, opNum int, r ndr.Reader) (dcerpc.Operation, error)

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
}

dsaop interface.

func NewDsaopClient

func NewDsaopClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (DsaopClient, error)

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 (o *ExecuteScriptRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ExecuteScriptRequest) UnmarshalNDR

func (o *ExecuteScriptRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

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 (o *ExecuteScriptResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ExecuteScriptResponse) UnmarshalNDR

func (o *ExecuteScriptResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

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 (o *MessageExecuteScriptReply) MarshalUnionNDR(ctx context.Context, w ndr.Writer, sw uint32) error

func (*MessageExecuteScriptReply) NDRSwitchValue

func (o *MessageExecuteScriptReply) NDRSwitchValue(sw uint32) uint32

func (*MessageExecuteScriptReply) UnmarshalUnionNDR

func (o *MessageExecuteScriptReply) UnmarshalUnionNDR(ctx context.Context, w ndr.Reader, sw uint32) error

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

func (o *MessageExecuteScriptReplyV1) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

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

func (o *MessageExecuteScriptReply_V1) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

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 (o *MessageExecuteScriptRequest) MarshalUnionNDR(ctx context.Context, w ndr.Writer, sw uint32) error

func (*MessageExecuteScriptRequest) NDRSwitchValue

func (o *MessageExecuteScriptRequest) NDRSwitchValue(sw uint32) uint32

func (*MessageExecuteScriptRequest) UnmarshalUnionNDR

func (o *MessageExecuteScriptRequest) UnmarshalUnionNDR(ctx context.Context, w ndr.Reader, sw uint32) error

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

func (o *MessageExecuteScriptRequestV1) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

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 (o *MessagePrepareScriptReply) MarshalUnionNDR(ctx context.Context, w ndr.Writer, sw uint32) error

func (*MessagePrepareScriptReply) NDRSwitchValue

func (o *MessagePrepareScriptReply) NDRSwitchValue(sw uint32) uint32

func (*MessagePrepareScriptReply) UnmarshalUnionNDR

func (o *MessagePrepareScriptReply) UnmarshalUnionNDR(ctx context.Context, w ndr.Reader, sw uint32) error

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

func (o *MessagePrepareScriptReplyV1) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

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

func (o *MessagePrepareScriptReply_V1) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

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 (o *MessagePrepareScriptRequest) MarshalUnionNDR(ctx context.Context, w ndr.Writer, sw uint32) error

func (*MessagePrepareScriptRequest) NDRSwitchValue

func (o *MessagePrepareScriptRequest) NDRSwitchValue(sw uint32) uint32

func (*MessagePrepareScriptRequest) UnmarshalUnionNDR

func (o *MessagePrepareScriptRequest) UnmarshalUnionNDR(ctx context.Context, w ndr.Reader, sw uint32) error

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

func (o *MessagePrepareScriptRequestV1) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

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 (o *PrepareScriptRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*PrepareScriptRequest) UnmarshalNDR

func (o *PrepareScriptRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

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 (o *PrepareScriptResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*PrepareScriptResponse) UnmarshalNDR

func (o *PrepareScriptResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL