ivdsdisk2

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// IVdsDisk2 interface identifier 40f73c8b-687d-4a13-8d96-3d7f2e683936
	Disk2IID = &dcom.IID{Data1: 0x40f73c8b, Data2: 0x687d, Data3: 0x4a13, Data4: []byte{0x8d, 0x96, 0x3d, 0x7f, 0x2e, 0x68, 0x39, 0x36}}
	// Syntax UUID
	Disk2SyntaxUUID = &uuid.UUID{TimeLow: 0x40f73c8b, TimeMid: 0x687d, TimeHiAndVersion: 0x4a13, ClockSeqHiAndReserved: 0x8d, ClockSeqLow: 0x96, Node: [6]uint8{0x3d, 0x7f, 0x2e, 0x68, 0x39, 0x36}}
	// Syntax ID
	Disk2SyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: Disk2SyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "dcom/vds"
)

Functions

func Disk2ServerHandle

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

func NewDisk2ServerHandle

func NewDisk2ServerHandle(o Disk2Server) dcerpc.ServerHandle

func RegisterDisk2Server

func RegisterDisk2Server(conn dcerpc.Conn, o Disk2Server, opts ...dcerpc.Option)

Types

type Disk2Client

type Disk2Client interface {

	// IUnknown retrieval method.
	Unknown() iunknown.UnknownClient

	// The SetSANMode method sets the SAN mode of a disk to either offline or online. A
	// disk that is offline exposes no volume devices for partitions or volumes with extents
	// on that disk. A disk can be REAONLY or READWRITE independent of the offline or online
	// setting.
	//
	// Return Values: The method MUST return zero or a non-error HRESULT (as specified in
	// [MS-ERREF]) to indicate success, or return an implementation-specific nonzero error
	// code to indicate failure. For the HRESULT values predefined by the Virtual Disk Service
	// Remote Protocol, see section 2.2.3.
	//
	// ERROR_SUCCESS (0x00000000)
	SetSANMode(context.Context, *SetSANModeRequest, ...dcerpc.CallOption) (*SetSANModeResponse, error)

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

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

IVdsDisk2 interface.

func NewDisk2Client

func NewDisk2Client(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (Disk2Client, error)

type Disk2Server

type Disk2Server interface {

	// IUnknown base class.
	iunknown.UnknownServer

	// The SetSANMode method sets the SAN mode of a disk to either offline or online. A
	// disk that is offline exposes no volume devices for partitions or volumes with extents
	// on that disk. A disk can be REAONLY or READWRITE independent of the offline or online
	// setting.
	//
	// Return Values: The method MUST return zero or a non-error HRESULT (as specified in
	// [MS-ERREF]) to indicate success, or return an implementation-specific nonzero error
	// code to indicate failure. For the HRESULT values predefined by the Virtual Disk Service
	// Remote Protocol, see section 2.2.3.
	//
	// ERROR_SUCCESS (0x00000000)
	SetSANMode(context.Context, *SetSANModeRequest) (*SetSANModeResponse, error)
}

IVdsDisk2 server interface.

type SetSANModeRequest

type SetSANModeRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// bEnable: A Boolean value that indicates whether to set the disk to either online
	// or offline.
	Enable int32 `idl:"name:bEnable" json:"enable"`
}

SetSANModeRequest structure represents the SetSANMode operation request

func (*SetSANModeRequest) MarshalNDR

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

func (*SetSANModeRequest) UnmarshalNDR

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

type SetSANModeResponse

type SetSANModeResponse 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 SetSANMode return value.
	Return int32 `idl:"name:Return" json:"return"`
}

SetSANModeResponse structure represents the SetSANMode operation response

func (*SetSANModeResponse) MarshalNDR

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

func (*SetSANModeResponse) UnmarshalNDR

func (o *SetSANModeResponse) 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