ifsrmfilegroupmanager

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 (
	// IFsrmFileGroupManager interface identifier 426677d5-018c-485c-8a51-20b86d00bdc4
	FileGroupManagerIID = &dcom.IID{Data1: 0x426677d5, Data2: 0x018c, Data3: 0x485c, Data4: []byte{0x8a, 0x51, 0x20, 0xb8, 0x6d, 0x00, 0xbd, 0xc4}}
	// Syntax UUID
	FileGroupManagerSyntaxUUID = &uuid.UUID{TimeLow: 0x426677d5, TimeMid: 0x18c, TimeHiAndVersion: 0x485c, ClockSeqHiAndReserved: 0x8a, ClockSeqLow: 0x51, Node: [6]uint8{0x20, 0xb8, 0x6d, 0x0, 0xbd, 0xc4}}
	// Syntax ID
	FileGroupManagerSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: FileGroupManagerSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "dcom/fsrm"
)

Functions

func FileGroupManagerServerHandle

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

func NewFileGroupManagerServerHandle

func NewFileGroupManagerServerHandle(o FileGroupManagerServer) dcerpc.ServerHandle

func RegisterFileGroupManagerServer

func RegisterFileGroupManagerServer(conn dcerpc.Conn, o FileGroupManagerServer, opts ...dcerpc.Option)

Types

type CreateFileGroupRequest

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

CreateFileGroupRequest structure represents the CreateFileGroup operation request

func (*CreateFileGroupRequest) MarshalNDR

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

func (*CreateFileGroupRequest) UnmarshalNDR

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

type CreateFileGroupResponse

type CreateFileGroupResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// fileGroup: Pointer to an IFsrmFileGroup interface pointer (section 3.2.4.2.23) that
	// upon completion points to a blank file group. To have the server add the file group
	// to its List of Persisted File Groups (section 3.2.1.3), the caller MUST call Commit
	// (section 3.2.4.2.23.1) on the file group. The caller MUST release the file group
	// received when it is done with it.
	FileGroup *fsrm.FileGroup `idl:"name:fileGroup" json:"file_group"`
	// Return: The CreateFileGroup return value.
	Return int32 `idl:"name:Return" json:"return"`
}

CreateFileGroupResponse structure represents the CreateFileGroup operation response

func (*CreateFileGroupResponse) MarshalNDR

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

func (*CreateFileGroupResponse) UnmarshalNDR

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

type EnumFileGroupsRequest

type EnumFileGroupsRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// options: Contains the FsrmEnumOptions (section 2.2.1.2.5) to use when enumerating
	// the filegroups.
	Options fsrm.EnumOptions `idl:"name:options" json:"options"`
}

EnumFileGroupsRequest structure represents the EnumFileGroups operation request

func (*EnumFileGroupsRequest) MarshalNDR

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

func (*EnumFileGroupsRequest) UnmarshalNDR

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

type EnumFileGroupsResponse

type EnumFileGroupsResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// fileGroups: Pointer to an IFsrmCommittableCollection interface pointer (section 3.2.4.2.3)
	// that upon completion SHOULD contain a pointer to every file group on the server.
	// The caller MUST release the collection when it is done with it.
	FileGroups *fsrm.CommittableCollection `idl:"name:fileGroups" json:"file_groups"`
	// Return: The EnumFileGroups return value.
	Return int32 `idl:"name:Return" json:"return"`
}

EnumFileGroupsResponse structure represents the EnumFileGroups operation response

func (*EnumFileGroupsResponse) MarshalNDR

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

func (*EnumFileGroupsResponse) UnmarshalNDR

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

type ExportFileGroupsRequest

type ExportFileGroupsRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// fileGroupNamesArray: Pointer to a SAFEARRAY that contains the names of file groups
	// to export.
	FileGroupNamesArray *oaut.Variant `idl:"name:fileGroupNamesArray" json:"file_group_names_array"`
}

ExportFileGroupsRequest structure represents the ExportFileGroups operation request

func (*ExportFileGroupsRequest) MarshalNDR

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

func (*ExportFileGroupsRequest) UnmarshalNDR

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

type ExportFileGroupsResponse

type ExportFileGroupsResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// serializedFileGroups: Pointer to a variable that upon completion contains the XML
	// string representation of all the specified file groups.
	SerializedFileGroups *oaut.String `idl:"name:serializedFileGroups" json:"serialized_file_groups"`
	// Return: The ExportFileGroups return value.
	Return int32 `idl:"name:Return" json:"return"`
}

ExportFileGroupsResponse structure represents the ExportFileGroups operation response

func (*ExportFileGroupsResponse) MarshalNDR

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

func (*ExportFileGroupsResponse) UnmarshalNDR

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

type FileGroupManagerClient

type FileGroupManagerClient interface {

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

	// The CreateFileGroup method creates a blank Non-Persisted File Group Instance (section
	// 3.2.1.3.4.2).
	//
	// Return Values: The method MUST return zero on success, or a nonzero error code on
	// failure.
	//
	//	+-------------------------+----------------------------------+
	//	|         RETURN          |                                  |
	//	|       VALUE/CODE        |           DESCRIPTION            |
	//	|                         |                                  |
	//	+-------------------------+----------------------------------+
	//	+-------------------------+----------------------------------+
	//	| 0x80070057 E_INVALIDARG | The fileGroup parameter is NULL. |
	//	+-------------------------+----------------------------------+
	CreateFileGroup(context.Context, *CreateFileGroupRequest, ...dcerpc.CallOption) (*CreateFileGroupResponse, error)

	// The GetFileGroup method returns a pointer to the file group with the specified Name
	// property from the List of Persisted File Groups (section 3.2.1.3).
	//
	// Return Values: The method MUST return zero on success, or a nonzero error code on
	// failure.
	//
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	|             RETURN             |                                                                                  |
	//	|           VALUE/CODE           |                                   DESCRIPTION                                    |
	//	|                                |                                                                                  |
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80045301 FSRM_E_NOT_FOUND    | The specified file group could not be found.                                     |
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80045308 FSRM_E_INVALID_NAME | The specified name is not valid.                                                 |
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	| 0x8004530D FSRM_E_OUT_OF_RANGE | The content of the name parameter exceeds the maximum length of 4,000            |
	//	|                                | characters.                                                                      |
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG        | The fileGroup parameter is NULL.                                                 |
	//	+--------------------------------+----------------------------------------------------------------------------------+
	GetFileGroup(context.Context, *GetFileGroupRequest, ...dcerpc.CallOption) (*GetFileGroupResponse, error)

	// The EnumFileGroups method returns all the file groups from the List of Persisted
	// File Groups (section 3.2.1.3) of the server.
	//
	// Return Values: The method MUST return zero on success, or a nonzero error code on
	// failure.
	//
	//	+---------------------------------+-----------------------------------------------------------------+
	//	|             RETURN              |                                                                 |
	//	|           VALUE/CODE            |                           DESCRIPTION                           |
	//	|                                 |                                                                 |
	//	+---------------------------------+-----------------------------------------------------------------+
	//	+---------------------------------+-----------------------------------------------------------------+
	//	| 0x80045311 FSRM_E_NOT_SUPPORTED | This options parameter contains invalid FsrmEnumOptions values. |
	//	+---------------------------------+-----------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG         | The fileGroups parameter is NULL.                               |
	//	+---------------------------------+-----------------------------------------------------------------+
	EnumFileGroups(context.Context, *EnumFileGroupsRequest, ...dcerpc.CallOption) (*EnumFileGroupsResponse, error)

	// The ExportFileGroups method exports an XML string representation of the File Server
	// Resource Manager Protocol file groups from the List of Persisted File Groups (section
	// 3.2.1.3).
	//
	// Return Values: The method MUST return zero on success, or a nonzero error code on
	// failure.
	//
	//	+-----------------------------+----------------------------------------------------------------------------------+
	//	|           RETURN            |                                                                                  |
	//	|         VALUE/CODE          |                                   DESCRIPTION                                    |
	//	|                             |                                                                                  |
	//	+-----------------------------+----------------------------------------------------------------------------------+
	//	+-----------------------------+----------------------------------------------------------------------------------+
	//	| 0x80045301 FSRM_E_NOT_FOUND | The specified file group could not be found.                                     |
	//	+-----------------------------+----------------------------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG     | This code is returned for the following reasons: The serializedFileGroups        |
	//	|                             | parameter is NULL. The fileGroupNamesArray parameter is not a variant array of   |
	//	|                             | BSTRs.                                                                           |
	//	+-----------------------------+----------------------------------------------------------------------------------+
	ExportFileGroups(context.Context, *ExportFileGroupsRequest, ...dcerpc.CallOption) (*ExportFileGroupsResponse, error)

	// The ImportFileGroups method imports file groups from the XML string of file groups.
	//
	// Return Values: The method MUST return zero on success, or a nonzero error code on
	// failure.
	//
	//	+------------------------------------------+----------------------------------------------------------------------------------+
	//	|                  RETURN                  |                                                                                  |
	//	|                VALUE/CODE                |                                   DESCRIPTION                                    |
	//	|                                          |                                                                                  |
	//	+------------------------------------------+----------------------------------------------------------------------------------+
	//	+------------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80045301 FSRM_E_NOT_FOUND              | This specified file group could not be found.                                    |
	//	+------------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x8004530B FSRM_E_INVALID_IMPORT_VERSION | The version of the imported objects is not valid.                                |
	//	+------------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG                  | This code is returned for the following reasons: The serializedFileGroups        |
	//	|                                          | parameter is NULL. The fileGroups parameter is NULL. The fileGroupNamesArray     |
	//	|                                          | parameter is not a variant array of BSTRs.                                       |
	//	+------------------------------------------+----------------------------------------------------------------------------------+
	ImportFileGroups(context.Context, *ImportFileGroupsRequest, ...dcerpc.CallOption) (*ImportFileGroupsResponse, 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) FileGroupManagerClient
}

IFsrmFileGroupManager interface.

func NewFileGroupManagerClient

func NewFileGroupManagerClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (FileGroupManagerClient, error)

type FileGroupManagerServer

type FileGroupManagerServer interface {

	// IDispatch base class.
	idispatch.DispatchServer

	// The CreateFileGroup method creates a blank Non-Persisted File Group Instance (section
	// 3.2.1.3.4.2).
	//
	// Return Values: The method MUST return zero on success, or a nonzero error code on
	// failure.
	//
	//	+-------------------------+----------------------------------+
	//	|         RETURN          |                                  |
	//	|       VALUE/CODE        |           DESCRIPTION            |
	//	|                         |                                  |
	//	+-------------------------+----------------------------------+
	//	+-------------------------+----------------------------------+
	//	| 0x80070057 E_INVALIDARG | The fileGroup parameter is NULL. |
	//	+-------------------------+----------------------------------+
	CreateFileGroup(context.Context, *CreateFileGroupRequest) (*CreateFileGroupResponse, error)

	// The GetFileGroup method returns a pointer to the file group with the specified Name
	// property from the List of Persisted File Groups (section 3.2.1.3).
	//
	// Return Values: The method MUST return zero on success, or a nonzero error code on
	// failure.
	//
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	|             RETURN             |                                                                                  |
	//	|           VALUE/CODE           |                                   DESCRIPTION                                    |
	//	|                                |                                                                                  |
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80045301 FSRM_E_NOT_FOUND    | The specified file group could not be found.                                     |
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80045308 FSRM_E_INVALID_NAME | The specified name is not valid.                                                 |
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	| 0x8004530D FSRM_E_OUT_OF_RANGE | The content of the name parameter exceeds the maximum length of 4,000            |
	//	|                                | characters.                                                                      |
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG        | The fileGroup parameter is NULL.                                                 |
	//	+--------------------------------+----------------------------------------------------------------------------------+
	GetFileGroup(context.Context, *GetFileGroupRequest) (*GetFileGroupResponse, error)

	// The EnumFileGroups method returns all the file groups from the List of Persisted
	// File Groups (section 3.2.1.3) of the server.
	//
	// Return Values: The method MUST return zero on success, or a nonzero error code on
	// failure.
	//
	//	+---------------------------------+-----------------------------------------------------------------+
	//	|             RETURN              |                                                                 |
	//	|           VALUE/CODE            |                           DESCRIPTION                           |
	//	|                                 |                                                                 |
	//	+---------------------------------+-----------------------------------------------------------------+
	//	+---------------------------------+-----------------------------------------------------------------+
	//	| 0x80045311 FSRM_E_NOT_SUPPORTED | This options parameter contains invalid FsrmEnumOptions values. |
	//	+---------------------------------+-----------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG         | The fileGroups parameter is NULL.                               |
	//	+---------------------------------+-----------------------------------------------------------------+
	EnumFileGroups(context.Context, *EnumFileGroupsRequest) (*EnumFileGroupsResponse, error)

	// The ExportFileGroups method exports an XML string representation of the File Server
	// Resource Manager Protocol file groups from the List of Persisted File Groups (section
	// 3.2.1.3).
	//
	// Return Values: The method MUST return zero on success, or a nonzero error code on
	// failure.
	//
	//	+-----------------------------+----------------------------------------------------------------------------------+
	//	|           RETURN            |                                                                                  |
	//	|         VALUE/CODE          |                                   DESCRIPTION                                    |
	//	|                             |                                                                                  |
	//	+-----------------------------+----------------------------------------------------------------------------------+
	//	+-----------------------------+----------------------------------------------------------------------------------+
	//	| 0x80045301 FSRM_E_NOT_FOUND | The specified file group could not be found.                                     |
	//	+-----------------------------+----------------------------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG     | This code is returned for the following reasons: The serializedFileGroups        |
	//	|                             | parameter is NULL. The fileGroupNamesArray parameter is not a variant array of   |
	//	|                             | BSTRs.                                                                           |
	//	+-----------------------------+----------------------------------------------------------------------------------+
	ExportFileGroups(context.Context, *ExportFileGroupsRequest) (*ExportFileGroupsResponse, error)

	// The ImportFileGroups method imports file groups from the XML string of file groups.
	//
	// Return Values: The method MUST return zero on success, or a nonzero error code on
	// failure.
	//
	//	+------------------------------------------+----------------------------------------------------------------------------------+
	//	|                  RETURN                  |                                                                                  |
	//	|                VALUE/CODE                |                                   DESCRIPTION                                    |
	//	|                                          |                                                                                  |
	//	+------------------------------------------+----------------------------------------------------------------------------------+
	//	+------------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80045301 FSRM_E_NOT_FOUND              | This specified file group could not be found.                                    |
	//	+------------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x8004530B FSRM_E_INVALID_IMPORT_VERSION | The version of the imported objects is not valid.                                |
	//	+------------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG                  | This code is returned for the following reasons: The serializedFileGroups        |
	//	|                                          | parameter is NULL. The fileGroups parameter is NULL. The fileGroupNamesArray     |
	//	|                                          | parameter is not a variant array of BSTRs.                                       |
	//	+------------------------------------------+----------------------------------------------------------------------------------+
	ImportFileGroups(context.Context, *ImportFileGroupsRequest) (*ImportFileGroupsResponse, error)
}

IFsrmFileGroupManager server interface.

type GetFileGroupRequest

type GetFileGroupRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// name: Contains the Name of the file group to return. The maximum length of this string
	// MUST be 4,000 characters.
	Name *oaut.String `idl:"name:name" json:"name"`
}

GetFileGroupRequest structure represents the GetFileGroup operation request

func (*GetFileGroupRequest) MarshalNDR

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

func (*GetFileGroupRequest) UnmarshalNDR

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

type GetFileGroupResponse

type GetFileGroupResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// fileGroup: Pointer to an IFsrmFileGroup interface pointer (section 3.2.4.2.23) that
	// upon completion points to the file group with the specified Name property. The caller
	// MUST release the file group when it is done with it.
	FileGroup *fsrm.FileGroup `idl:"name:fileGroup" json:"file_group"`
	// Return: The GetFileGroup return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetFileGroupResponse structure represents the GetFileGroup operation response

func (*GetFileGroupResponse) MarshalNDR

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

func (*GetFileGroupResponse) UnmarshalNDR

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

type ImportFileGroupsRequest

type ImportFileGroupsRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// serializedFileGroups: Contains the XML string representation of a list of file groups.
	// There is no maximum length for this string.
	SerializedFileGroups *oaut.String `idl:"name:serializedFileGroups" json:"serialized_file_groups"`
	// fileGroupNamesArray: Pointer to a SAFEARRAY that contains the names of file groups
	// to import.
	FileGroupNamesArray *oaut.Variant `idl:"name:fileGroupNamesArray" json:"file_group_names_array"`
}

ImportFileGroupsRequest structure represents the ImportFileGroups operation request

func (*ImportFileGroupsRequest) MarshalNDR

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

func (*ImportFileGroupsRequest) UnmarshalNDR

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

type ImportFileGroupsResponse

type ImportFileGroupsResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// fileGroups: Pointer to an IFsrmCommittableCollection interface pointer (section 3.2.4.2.3)
	// that upon completion contains an IFsrmFileGroup interface pointer (section 3.2.4.2.23)
	// for each of the imported file groups. The caller MUST release the collection when
	// it is done with it.
	FileGroups *fsrm.CommittableCollection `idl:"name:fileGroups" json:"file_groups"`
	// Return: The ImportFileGroups return value.
	Return int32 `idl:"name:Return" json:"return"`
}

ImportFileGroupsResponse structure represents the ImportFileGroups operation response

func (*ImportFileGroupsResponse) MarshalNDR

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

func (*ImportFileGroupsResponse) UnmarshalNDR

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

type UnimplementedFileGroupManagerServer added in v1.1.5

type UnimplementedFileGroupManagerServer struct {
	idispatch.UnimplementedDispatchServer
}

Unimplemented IFsrmFileGroupManager

func (UnimplementedFileGroupManagerServer) CreateFileGroup added in v1.1.5

func (UnimplementedFileGroupManagerServer) EnumFileGroups added in v1.1.5

func (UnimplementedFileGroupManagerServer) ExportFileGroups added in v1.1.5

func (UnimplementedFileGroupManagerServer) GetFileGroup added in v1.1.5

func (UnimplementedFileGroupManagerServer) ImportFileGroups added in v1.1.5

Jump to

Keyboard shortcuts

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