isafsession

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ISAFSession interface identifier 833e41aa-aff7-4ac3-aac2-9f24c1457bce
	SAFSessionIID = &dcom.IID{Data1: 0x833e41aa, Data2: 0xaff7, Data3: 0x4ac3, Data4: []byte{0xaa, 0xc2, 0x9f, 0x24, 0xc1, 0x45, 0x7b, 0xce}}
	// Syntax UUID
	SAFSessionSyntaxUUID = &uuid.UUID{TimeLow: 0x833e41aa, TimeMid: 0xaff7, TimeHiAndVersion: 0x4ac3, ClockSeqHiAndReserved: 0xaa, ClockSeqLow: 0xc2, Node: [6]uint8{0x9f, 0x24, 0xc1, 0x45, 0x7b, 0xce}}
	// Syntax ID
	SAFSessionSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: SAFSessionSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "dcom/rai"
)

Functions

func NewSAFSessionServerHandle

func NewSAFSessionServerHandle(o SAFSessionServer) dcerpc.ServerHandle

func RegisterSAFSessionServer

func RegisterSAFSessionServer(conn dcerpc.Conn, o SAFSessionServer, opts ...dcerpc.Option)

func SAFSessionServerHandle

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

Types

type GetDomainNameRequest

type GetDomainNameRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
}

GetDomainNameRequest structure represents the DomainName operation request

func (*GetDomainNameRequest) MarshalNDR

func (o *GetDomainNameRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*GetDomainNameRequest) UnmarshalNDR

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

type GetDomainNameResponse

type GetDomainNameResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That  *dcom.ORPCThat `idl:"name:That" json:"that"`
	Value *oaut.String   `idl:"name:pVal" json:"value"`
	// Return: The DomainName return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetDomainNameResponse structure represents the DomainName operation response

func (*GetDomainNameResponse) MarshalNDR

func (o *GetDomainNameResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*GetDomainNameResponse) UnmarshalNDR

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

type GetSessionIDRequest

type GetSessionIDRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
}

GetSessionIDRequest structure represents the SessionID operation request

func (*GetSessionIDRequest) MarshalNDR

func (o *GetSessionIDRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*GetSessionIDRequest) UnmarshalNDR

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

type GetSessionIDResponse

type GetSessionIDResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That  *dcom.ORPCThat `idl:"name:That" json:"that"`
	Value uint32         `idl:"name:pVal" json:"value"`
	// Return: The SessionID return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetSessionIDResponse structure represents the SessionID operation response

func (*GetSessionIDResponse) MarshalNDR

func (o *GetSessionIDResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*GetSessionIDResponse) UnmarshalNDR

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

type GetSessionStateRequest

type GetSessionStateRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
}

GetSessionStateRequest structure represents the SessionState operation request

func (*GetSessionStateRequest) MarshalNDR

func (o *GetSessionStateRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*GetSessionStateRequest) UnmarshalNDR

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

type GetSessionStateResponse

type GetSessionStateResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That  *dcom.ORPCThat       `idl:"name:That" json:"that"`
	Value rai.SessionStateEnum `idl:"name:pVal" json:"value"`
	// Return: The SessionState return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetSessionStateResponse structure represents the SessionState operation response

func (*GetSessionStateResponse) MarshalNDR

func (o *GetSessionStateResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*GetSessionStateResponse) UnmarshalNDR

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

type GetUserNameRequest

type GetUserNameRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
}

GetUserNameRequest structure represents the UserName operation request

func (*GetUserNameRequest) MarshalNDR

func (o *GetUserNameRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*GetUserNameRequest) UnmarshalNDR

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

type GetUserNameResponse

type GetUserNameResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That  *dcom.ORPCThat `idl:"name:That" json:"that"`
	Value *oaut.String   `idl:"name:pVal" json:"value"`
	// Return: The UserName return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetUserNameResponse structure represents the UserName operation response

func (*GetUserNameResponse) MarshalNDR

func (o *GetUserNameResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*GetUserNameResponse) UnmarshalNDR

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

type SAFSessionClient

type SAFSessionClient interface {

	// IDispatch retrieval method.
	Dispatch() idispatch.DispatchClient

	// SessionID operation.
	GetSessionID(context.Context, *GetSessionIDRequest, ...dcerpc.CallOption) (*GetSessionIDResponse, error)

	// SessionID operation.
	SetSessionID(context.Context, *SetSessionIDRequest, ...dcerpc.CallOption) (*SetSessionIDResponse, error)

	// SessionState operation.
	GetSessionState(context.Context, *GetSessionStateRequest, ...dcerpc.CallOption) (*GetSessionStateResponse, error)

	// SessionState operation.
	SetSessionState(context.Context, *SetSessionStateRequest, ...dcerpc.CallOption) (*SetSessionStateResponse, error)

	// DomainName operation.
	GetDomainName(context.Context, *GetDomainNameRequest, ...dcerpc.CallOption) (*GetDomainNameResponse, error)

	// DomainName operation.
	SetDomainName(context.Context, *SetDomainNameRequest, ...dcerpc.CallOption) (*SetDomainNameResponse, error)

	// UserName operation.
	GetUserName(context.Context, *GetUserNameRequest, ...dcerpc.CallOption) (*GetUserNameResponse, error)

	// UserName operation.
	SetUserName(context.Context, *SetUserNameRequest, ...dcerpc.CallOption) (*SetUserNameResponse, error)

	// AlterContext alters the client context.
	AlterContext(context.Context, ...dcerpc.Option) error

	// Conn returns the client connection (unsafe)
	Conn() dcerpc.Conn

	// IPID sets the object interface identifier.
	IPID(context.Context, *dcom.IPID) SAFSessionClient
}

ISAFSession interface.

func NewSAFSessionClient

func NewSAFSessionClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (SAFSessionClient, error)

type SAFSessionServer

type SAFSessionServer interface {

	// IDispatch base class.
	idispatch.DispatchServer

	// SessionID operation.
	GetSessionID(context.Context, *GetSessionIDRequest) (*GetSessionIDResponse, error)

	// SessionID operation.
	SetSessionID(context.Context, *SetSessionIDRequest) (*SetSessionIDResponse, error)

	// SessionState operation.
	GetSessionState(context.Context, *GetSessionStateRequest) (*GetSessionStateResponse, error)

	// SessionState operation.
	SetSessionState(context.Context, *SetSessionStateRequest) (*SetSessionStateResponse, error)

	// DomainName operation.
	GetDomainName(context.Context, *GetDomainNameRequest) (*GetDomainNameResponse, error)

	// DomainName operation.
	SetDomainName(context.Context, *SetDomainNameRequest) (*SetDomainNameResponse, error)

	// UserName operation.
	GetUserName(context.Context, *GetUserNameRequest) (*GetUserNameResponse, error)

	// UserName operation.
	SetUserName(context.Context, *SetUserNameRequest) (*SetUserNameResponse, error)
}

ISAFSession server interface.

type SetDomainNameRequest

type SetDomainNameRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This  *dcom.ORPCThis `idl:"name:This" json:"this"`
	Value *oaut.String   `idl:"name:pVal" json:"value"`
}

SetDomainNameRequest structure represents the DomainName operation request

func (*SetDomainNameRequest) MarshalNDR

func (o *SetDomainNameRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SetDomainNameRequest) UnmarshalNDR

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

type SetDomainNameResponse

type SetDomainNameResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// Return: The DomainName return value.
	Return int32 `idl:"name:Return" json:"return"`
}

SetDomainNameResponse structure represents the DomainName operation response

func (*SetDomainNameResponse) MarshalNDR

func (o *SetDomainNameResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SetDomainNameResponse) UnmarshalNDR

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

type SetSessionIDRequest

type SetSessionIDRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This  *dcom.ORPCThis `idl:"name:This" json:"this"`
	Value uint32         `idl:"name:pVal" json:"value"`
}

SetSessionIDRequest structure represents the SessionID operation request

func (*SetSessionIDRequest) MarshalNDR

func (o *SetSessionIDRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SetSessionIDRequest) UnmarshalNDR

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

type SetSessionIDResponse

type SetSessionIDResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// Return: The SessionID return value.
	Return int32 `idl:"name:Return" json:"return"`
}

SetSessionIDResponse structure represents the SessionID operation response

func (*SetSessionIDResponse) MarshalNDR

func (o *SetSessionIDResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SetSessionIDResponse) UnmarshalNDR

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

type SetSessionStateRequest

type SetSessionStateRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This  *dcom.ORPCThis       `idl:"name:This" json:"this"`
	Value rai.SessionStateEnum `idl:"name:pVal" json:"value"`
}

SetSessionStateRequest structure represents the SessionState operation request

func (*SetSessionStateRequest) MarshalNDR

func (o *SetSessionStateRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SetSessionStateRequest) UnmarshalNDR

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

type SetSessionStateResponse

type SetSessionStateResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// Return: The SessionState return value.
	Return int32 `idl:"name:Return" json:"return"`
}

SetSessionStateResponse structure represents the SessionState operation response

func (*SetSessionStateResponse) MarshalNDR

func (o *SetSessionStateResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SetSessionStateResponse) UnmarshalNDR

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

type SetUserNameRequest

type SetUserNameRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This  *dcom.ORPCThis `idl:"name:This" json:"this"`
	Value *oaut.String   `idl:"name:pVal" json:"value"`
}

SetUserNameRequest structure represents the UserName operation request

func (*SetUserNameRequest) MarshalNDR

func (o *SetUserNameRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SetUserNameRequest) UnmarshalNDR

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

type SetUserNameResponse

type SetUserNameResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// Return: The UserName return value.
	Return int32 `idl:"name:Return" json:"return"`
}

SetUserNameResponse structure represents the UserName operation response

func (*SetUserNameResponse) MarshalNDR

func (o *SetUserNameResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SetUserNameResponse) UnmarshalNDR

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

type UnimplementedSAFSessionServer added in v1.1.5

type UnimplementedSAFSessionServer struct {
	idispatch.UnimplementedDispatchServer
}

Unimplemented ISAFSession

func (UnimplementedSAFSessionServer) GetDomainName added in v1.1.5

func (UnimplementedSAFSessionServer) GetSessionID added in v1.1.5

func (UnimplementedSAFSessionServer) GetSessionState added in v1.1.5

func (UnimplementedSAFSessionServer) GetUserName added in v1.1.5

func (UnimplementedSAFSessionServer) SetDomainName added in v1.1.5

func (UnimplementedSAFSessionServer) SetSessionID added in v1.1.5

func (UnimplementedSAFSessionServer) SetSessionState added in v1.1.5

func (UnimplementedSAFSessionServer) SetUserName added in v1.1.5

Jump to

Keyboard shortcuts

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