Documentation
¶
Index ¶
- Variables
- func FileGroupManagerServerHandle(ctx context.Context, o FileGroupManagerServer, opNum int, r ndr.Reader) (dcerpc.Operation, error)
- func NewFileGroupManagerServerHandle(o FileGroupManagerServer) dcerpc.ServerHandle
- func RegisterFileGroupManagerServer(conn dcerpc.Conn, o FileGroupManagerServer, opts ...dcerpc.Option)
- type CreateFileGroupRequest
- type CreateFileGroupResponse
- type EnumFileGroupsRequest
- type EnumFileGroupsResponse
- type ExportFileGroupsRequest
- type ExportFileGroupsResponse
- type FileGroupManagerClient
- type FileGroupManagerServer
- type GetFileGroupRequest
- type GetFileGroupResponse
- type ImportFileGroupsRequest
- type ImportFileGroupsResponse
Constants ¶
This section is empty.
Variables ¶
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} )
var (
// import guard
GoPackage = "dcom/fsrm"
)
Functions ¶
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 (*CreateFileGroupRequest) UnmarshalNDR ¶
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 (*CreateFileGroupResponse) UnmarshalNDR ¶
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 (*EnumFileGroupsRequest) UnmarshalNDR ¶
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 (*EnumFileGroupsResponse) UnmarshalNDR ¶
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 (*ExportFileGroupsRequest) UnmarshalNDR ¶
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 (*ExportFileGroupsResponse) UnmarshalNDR ¶
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 // IPID sets the object interface identifier. IPID(context.Context, *dcom.IPID) FileGroupManagerClient }
IFsrmFileGroupManager interface.
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 (*GetFileGroupRequest) UnmarshalNDR ¶
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 (*GetFileGroupResponse) UnmarshalNDR ¶
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 (*ImportFileGroupsRequest) UnmarshalNDR ¶
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