fileservervssagent

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Syntax UUID
	FileServerVSSAgentSyntaxUUID = &uuid.UUID{TimeLow: 0xa8e0653c, TimeMid: 0x2744, TimeHiAndVersion: 0x4389, ClockSeqHiAndReserved: 0xa6, ClockSeqLow: 0x1d, Node: [6]uint8{0x73, 0x73, 0xdf, 0x8b, 0x22, 0x92}}
	// Syntax ID
	FileServerVSSAgentSyntaxV1_0 = &dcerpc.SyntaxID{IfUUID: FileServerVSSAgentSyntaxUUID, IfVersionMajor: 1, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "fsrvp"
)

Functions

func FileServerVSSAgentServerHandle

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

func NewFileServerVSSAgentServerHandle

func NewFileServerVSSAgentServerHandle(o FileServerVSSAgentServer) dcerpc.ServerHandle

func RegisterFileServerVSSAgentServer

func RegisterFileServerVSSAgentServer(conn dcerpc.Conn, o FileServerVSSAgentServer, opts ...dcerpc.Option)

Types

type AbortShadowCopySetRequest

type AbortShadowCopySetRequest struct {
	// ShadowCopySetId: The GUID of the shadow copy set.
	ShadowCopySetID *dtyp.GUID `idl:"name:ShadowCopySetId" json:"shadow_copy_set_id"`
}

AbortShadowCopySetRequest structure represents the AbortShadowCopySet operation request

func (*AbortShadowCopySetRequest) MarshalNDR

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

func (*AbortShadowCopySetRequest) UnmarshalNDR

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

type AbortShadowCopySetResponse

type AbortShadowCopySetResponse struct {
	// Return: The AbortShadowCopySet return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

AbortShadowCopySetResponse structure represents the AbortShadowCopySet operation response

func (*AbortShadowCopySetResponse) MarshalNDR

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

func (*AbortShadowCopySetResponse) UnmarshalNDR

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

type AddToShadowCopySetRequest

type AddToShadowCopySetRequest struct {
	// ClientShadowCopyId: The GUID for the shadow copy, assigned by the client.<8>
	ClientShadowCopyID *dtyp.GUID `idl:"name:ClientShadowCopyId" json:"client_shadow_copy_id"`
	// ShadowCopySetId: The GUID of the shadow copy set to which ShareName is to be added.
	// This GUID is assigned by the server.
	ShadowCopySetID *dtyp.GUID `idl:"name:ShadowCopySetId" json:"shadow_copy_set_id"`
	// ShareName: The name of the share, in UNC format, for which a shadow copy is required.
	ShareName string `idl:"name:ShareName;string" json:"share_name"`
}

AddToShadowCopySetRequest structure represents the AddToShadowCopySet operation request

func (*AddToShadowCopySetRequest) MarshalNDR

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

func (*AddToShadowCopySetRequest) UnmarshalNDR

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

type AddToShadowCopySetResponse

type AddToShadowCopySetResponse struct {
	// pShadowCopyId: The GUID of the shadow copy associated with the share.
	ShadowCopyID *dtyp.GUID `idl:"name:pShadowCopyId" json:"shadow_copy_id"`
	// Return: The AddToShadowCopySet return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

AddToShadowCopySetResponse structure represents the AddToShadowCopySet operation response

func (*AddToShadowCopySetResponse) MarshalNDR

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

func (*AddToShadowCopySetResponse) UnmarshalNDR

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

type CommitShadowCopySetRequest

type CommitShadowCopySetRequest struct {
	// ShadowCopySetId: The GUID of the shadow copy set, assigned by the server.
	ShadowCopySetID *dtyp.GUID `idl:"name:ShadowCopySetId" json:"shadow_copy_set_id"`
	// TimeOutInMilliseconds: The time in milliseconds that the server MUST wait for the
	// shadow copy commit process.
	TimeoutInMilliseconds uint32 `idl:"name:TimeOutInMilliseconds" json:"timeout_in_milliseconds"`
}

CommitShadowCopySetRequest structure represents the CommitShadowCopySet operation request

func (*CommitShadowCopySetRequest) MarshalNDR

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

func (*CommitShadowCopySetRequest) UnmarshalNDR

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

type CommitShadowCopySetResponse

type CommitShadowCopySetResponse struct {
	// Return: The CommitShadowCopySet return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

CommitShadowCopySetResponse structure represents the CommitShadowCopySet operation response

func (*CommitShadowCopySetResponse) MarshalNDR

func (*CommitShadowCopySetResponse) UnmarshalNDR

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

type DeleteShareMappingRequest

type DeleteShareMappingRequest struct {
	// ShadowCopySetId: The GUID of the shadow copy set.
	ShadowCopySetID *dtyp.GUID `idl:"name:ShadowCopySetId" json:"shadow_copy_set_id"`
	// ShadowCopyId: The GUID of the shadow copy.
	ShadowCopyID *dtyp.GUID `idl:"name:ShadowCopyId" json:"shadow_copy_id"`
	// ShareName: The name of the share for which the share mapping is to be deleted.
	ShareName string `idl:"name:ShareName;string" json:"share_name"`
}

DeleteShareMappingRequest structure represents the DeleteShareMapping operation request

func (*DeleteShareMappingRequest) MarshalNDR

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

func (*DeleteShareMappingRequest) UnmarshalNDR

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

type DeleteShareMappingResponse

type DeleteShareMappingResponse struct {
	// Return: The DeleteShareMapping return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

DeleteShareMappingResponse structure represents the DeleteShareMapping operation response

func (*DeleteShareMappingResponse) MarshalNDR

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

func (*DeleteShareMappingResponse) UnmarshalNDR

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

type ExposeShadowCopySetRequest

type ExposeShadowCopySetRequest struct {
	// ShadowCopySetId: The GUID of the shadow copy set.
	ShadowCopySetID *dtyp.GUID `idl:"name:ShadowCopySetId" json:"shadow_copy_set_id"`
	// TimeOutInMilliseconds:  The maximum time, in milliseconds, for which the server
	// MUST wait for completion of the expose operation.
	TimeoutInMilliseconds uint32 `idl:"name:TimeOutInMilliseconds" json:"timeout_in_milliseconds"`
}

ExposeShadowCopySetRequest structure represents the ExposeShadowCopySet operation request

func (*ExposeShadowCopySetRequest) MarshalNDR

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

func (*ExposeShadowCopySetRequest) UnmarshalNDR

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

type ExposeShadowCopySetResponse

type ExposeShadowCopySetResponse struct {
	// Return: The ExposeShadowCopySet return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

ExposeShadowCopySetResponse structure represents the ExposeShadowCopySet operation response

func (*ExposeShadowCopySetResponse) MarshalNDR

func (*ExposeShadowCopySetResponse) UnmarshalNDR

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

type FileServerVSSAgentClient

type FileServerVSSAgentClient interface {

	// The GetSupportedVersion method is invoked by the client to get the minimum and maximum
	// versions of the protocol that the server supports.
	//
	// Return Values: The method returns one of the values specified in section 2.2.4. The
	// most common error codes are listed below.
	//
	//	+---------------------------+--------------------------------------------------------------------+
	//	|          RETURN           |                                                                    |
	//	|        VALUE/CODE         |                            DESCRIPTION                             |
	//	|                           |                                                                    |
	//	+---------------------------+--------------------------------------------------------------------+
	//	+---------------------------+--------------------------------------------------------------------+
	//	| 0x80070005 E_ACCESSDENIED | The caller does not have the permissions to perform the operation. |
	//	+---------------------------+--------------------------------------------------------------------+
	GetSupportedVersion(context.Context, *GetSupportedVersionRequest, ...dcerpc.CallOption) (*GetSupportedVersionResponse, error)

	// The SetContext method sets the context for the current shadow copy creation process.
	//
	// Return Values: The method returns one of the values as specified in section 2.2.4.
	// The most common error codes are listed below.
	//
	//	+------------------------------------------------+--------------------------------------------------------------------+
	//	|                     RETURN                     |                                                                    |
	//	|                   VALUE/CODE                   |                            DESCRIPTION                             |
	//	|                                                |                                                                    |
	//	+------------------------------------------------+--------------------------------------------------------------------+
	//	+------------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80070005 E_ACCESSDENIED                      | The caller does not have the permissions to perform the operation. |
	//	+------------------------------------------------+--------------------------------------------------------------------+
	//	| 0x8004231B FSRVP_E_UNSUPPORTED_CONTEXT         | The context value specified is invalid.                            |
	//	+------------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80042316 FSRVP_E_SHADOW_COPY_SET_IN_PROGRESS | Creation of another shadow copy set is in progress.                |
	//	+------------------------------------------------+--------------------------------------------------------------------+
	//
	// If the Context parameter contains an invalid value, the server MUST fail the call
	// with FSRVP_E_UNSUPPORTED_CONTEXT.
	SetContext(context.Context, *SetContextRequest, ...dcerpc.CallOption) (*SetContextResponse, error)

	// The StartShadowCopySet method is called by the client to initiate a new shadow copy
	// set for shadow copy creation.<6>
	//
	// Return Values: The method returns one of the values specified in section 2.2.4. The
	// most common error codes are listed in the following table:
	//
	//	+------------------------------------------------+----------------------------------------------------------------------------------+
	//	|                     RETURN                     |                                                                                  |
	//	|                   VALUE/CODE                   |                                   DESCRIPTION                                    |
	//	|                                                |                                                                                  |
	//	+------------------------------------------------+----------------------------------------------------------------------------------+
	//	+------------------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80070005 E_ACCESSDENIED                      | The caller does not have the permissions to perform the operation.               |
	//	+------------------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG                        | One or more arguments are invalid.                                               |
	//	+------------------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80042316 FSRVP_E_SHADOW_COPY_SET_IN_PROGRESS | StartShadowCopySet (Opnum 2) was called while the creation of another shadow     |
	//	|                                                | copy set was in progress.                                                        |
	//	+------------------------------------------------+----------------------------------------------------------------------------------+
	//
	// If ContextSet is FALSE, the server MUST fail the call with FSRVP_E_BAD_STATE.
	//
	// If there is a ShadowCopySet in the GlobalShadowCopySetTable where ShadowCopySet.Status
	// is not equal to "Recovered", the server MUST fail the call with FSRVP_E_SHADOW_COPY_SET_IN_PROGRESS.
	StartShadowCopySet(context.Context, *StartShadowCopySetRequest, ...dcerpc.CallOption) (*StartShadowCopySetResponse, error)

	// The AddToShadowCopySet method adds a share to an existing shadow copy set.
	//
	// Return Values: The method returns one of the values specified in section 2.2.4. The
	// most common error codes are listed in the following table:
	//
	//	+----------------------------------------------+----------------------------------------------------------------------------------+
	//	|                    RETURN                    |                                                                                  |
	//	|                  VALUE/CODE                  |                                   DESCRIPTION                                    |
	//	|                                              |                                                                                  |
	//	+----------------------------------------------+----------------------------------------------------------------------------------+
	//	+----------------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80070005 E_ACCESSDENIED                    | The caller does not have permission to perform the operation.                    |
	//	+----------------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG                      | One or more arguments are invalid.                                               |
	//	+----------------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x8004230C FSRVP_E_NOT_SUPPORTED             | The file store that contains the share to be shadow copied is not supported by   |
	//	|                                              | the server.                                                                      |
	//	+----------------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80042301 FSRVP_E_BAD_STATE                 | The method call is invalid because of the state of the server.                   |
	//	+----------------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x8004230D FSRVP_E_OBJECT_ALREADY_EXISTS     | The object already exists.                                                       |
	//	+----------------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80042501 FSRVP_E_SHADOWCOPYSET_ID_MISMATCH | The provided ShadowCopySetId does not exist.                                     |
	//	+----------------------------------------------+----------------------------------------------------------------------------------+
	AddToShadowCopySet(context.Context, *AddToShadowCopySetRequest, ...dcerpc.CallOption) (*AddToShadowCopySetResponse, error)

	// The CommitShadowCopySet method is invoked by the client to commit a given shadow
	// copy set.
	//
	// Return Values: The method returns one of the values specified in section 2.2.4. The
	// most common error codes are listed below.
	//
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	|                    RETURN                    |                                                                    |
	//	|                  VALUE/CODE                  |                            DESCRIPTION                             |
	//	|                                              |                                                                    |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80070005 E_ACCESSDENIED                    | The caller does not have the permissions to perform the operation. |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG                      | One or more arguments are invalid.                                 |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80042301 FSRVP_E_BAD_STATE                 | The method call is invalid because of the state of the server.     |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80042500 FSSAGENT_E_TIMEOUT                | The wait for the shadow copy commit operation has timed out.       |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0xFFFFFFFF FSRVP_E_WAIT_FAILED               | The wait for shadow copy commit operation has failed.              |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80042501 FSRVP_E_SHADOWCOPYSET_ID_MISMATCH | The provided ShadowCopySetId does not exist.                       |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	CommitShadowCopySet(context.Context, *CommitShadowCopySetRequest, ...dcerpc.CallOption) (*CommitShadowCopySetResponse, error)

	// The ExposeShadowCopySet method exposes all the shadow copies in a shadow copy set
	// as file shares on the file server.
	//
	// Return Values: The method returns one of the values specified in section 2.2.4. The
	// most common error codes are listed in the following table.
	//
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	|                    RETURN                    |                                                                    |
	//	|                  VALUE/CODE                  |                            DESCRIPTION                             |
	//	|                                              |                                                                    |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80070005 E_ACCESSDENIED                    | The caller does not have the permissions to perform the operation. |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG                      | One or more arguments are invalid.                                 |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80042301 FSRVP_E_BAD_STATE                 | The method call is invalid because of the server's state.          |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80042501 FSRVP_E_SHADOWCOPYSET_ID_MISMATCH | The provided ShadowCopySetId does not exist.                       |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	ExposeShadowCopySet(context.Context, *ExposeShadowCopySetRequest, ...dcerpc.CallOption) (*ExposeShadowCopySetResponse, error)

	// The RecoveryCompleteShadowCopySet method is invoked by the client to indicate to
	// the server that the data associated with the file shares in a shadow copy set have
	// been recovered by the VSS writers.
	//
	// Return Values: The method returns one of the values as specified in section 2.2.4.
	// The most common error codes are listed in the following table:
	//
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	|                    RETURN                    |                                                                    |
	//	|                  VALUE/CODE                  |                            DESCRIPTION                             |
	//	|                                              |                                                                    |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x00000000 ZERO                              | The operation completed successfully.                              |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80070005 E_ACCESSDENIED                    | The caller does not have the permissions to perform the operation. |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG                      | One or more arguments are invalid.                                 |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80042301 FSRVP_E_BAD_STATE                 | The method call is invalid because of the server's state.          |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80042501 FSRVP_E_SHADOWCOPYSET_ID_MISMATCH | The provided ShadowCopySetId does not exist.                       |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	RecoveryCompleteShadowCopySet(context.Context, *RecoveryCompleteShadowCopySetRequest, ...dcerpc.CallOption) (*RecoveryCompleteShadowCopySetResponse, error)

	// The AbortShadowCopySet method is invoked by the client to delete a given shadow copy
	// set on the server.
	//
	// Return Values: The method returns one of the values as specified in section 2.2.4.
	// The most common error codes are listed in the following table.
	//
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	|                    RETURN                    |                                                                    |
	//	|                  VALUE/CODE                  |                            DESCRIPTION                             |
	//	|                                              |                                                                    |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80070005 E_ACCESSDENIED                    | The caller does not have the permissions to perform the operation. |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG                      | One or more arguments are invalid.                                 |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80042301 FSRVP_E_BAD_STATE                 | The method call is invalid because of the server's state.          |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80042501 FSRVP_E_SHADOWCOPYSET_ID_MISMATCH | The provided ShadowCopySetId does not exist.                       |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	AbortShadowCopySet(context.Context, *AbortShadowCopySetRequest, ...dcerpc.CallOption) (*AbortShadowCopySetResponse, error)

	// The IsPathSupported method is invoked by the client to query if a given share is
	// supported by the server for shadow copy operations.
	//
	// Return Values: The method returns one of the values as specified in section 2.2.4.
	// The most common error codes are listed in the following table:
	//
	//	+-----------------------------------+----------------------------------------------------------------------------------+
	//	|              RETURN               |                                                                                  |
	//	|            VALUE/CODE             |                                   DESCRIPTION                                    |
	//	|                                   |                                                                                  |
	//	+-----------------------------------+----------------------------------------------------------------------------------+
	//	+-----------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80070005 E_ACCESSDENIED         | The caller does not have the permissions to perform the operation.               |
	//	+-----------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG           | One or more arguments are invalid.                                               |
	//	+-----------------------------------+----------------------------------------------------------------------------------+
	//	| 0x8004230CL FSRVP_E_NOT_SUPPORTED | The file store that contains the share to be shadow copied is not supported by   |
	//	|                                   | the server.                                                                      |
	//	+-----------------------------------+----------------------------------------------------------------------------------+
	IsPathSupported(context.Context, *IsPathSupportedRequest, ...dcerpc.CallOption) (*IsPathSupportedResponse, error)

	// The IsPathShadowCopied method is invoked by the client to query if any shadow copy
	// for a share already exists.
	//
	// Return Values:  The method returns one of the values as specified in section 2.2.4.
	// The most common error codes are listed in the following table.
	//
	//	+---------------------------+--------------------------------------------------------------------+
	//	|          RETURN           |                                                                    |
	//	|        VALUE/CODE         |                            DESCRIPTION                             |
	//	|                           |                                                                    |
	//	+---------------------------+--------------------------------------------------------------------+
	//	+---------------------------+--------------------------------------------------------------------+
	//	| 0x00000000 ZERO           | The operation completed successfully.                              |
	//	+---------------------------+--------------------------------------------------------------------+
	//	| 0x80070005 E_ACCESSDENIED | The caller does not have the permissions to perform the operation. |
	//	+---------------------------+--------------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG   | One or more arguments are invalid.                                 |
	//	+---------------------------+--------------------------------------------------------------------+
	IsPathShadowCopied(context.Context, *IsPathShadowCopiedRequest, ...dcerpc.CallOption) (*IsPathShadowCopiedResponse, error)

	// The GetShareMapping method is invoked by the client to get the shadow copy information
	// on a given file share on the server after the shadow copy of the share has been exposed.
	//
	// Return Values: The method returns one of the values as specified in section 2.2.4.
	// The most common error codes are listed in the following table:
	//
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	|                    RETURN                    |                                                                    |
	//	|                  VALUE/CODE                  |                            DESCRIPTION                             |
	//	|                                              |                                                                    |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80070005 E_ACCESSDENIED                    | The caller does not have the permissions to perform the operation. |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG                      | One or more arguments are invalid.                                 |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80042501 FSRVP_E_SHADOWCOPYSET_ID_MISMATCH | The provided ShadowCopySetId does not exist.                       |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//
	// If the value of Level is invalid, the server MUST fail the call with E_INVALIDARG.
	GetShareMapping(context.Context, *GetShareMappingRequest, ...dcerpc.CallOption) (*GetShareMappingResponse, error)

	// The DeleteShareMapping method deletes the mapping of a share's shadow copy from a
	// shadow copy set.
	//
	// Return Values: The method returns one of the values as specified in section 2.2.4.
	// The most common error codes are listed in the following table:
	//
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	|                    RETURN                    |                                                                    |
	//	|                  VALUE/CODE                  |                            DESCRIPTION                             |
	//	|                                              |                                                                    |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80070005 E_ACCESSDENIED                    | The caller does not have the permissions to perform the operation. |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG                      | One or more arguments are invalid.                                 |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80042308 FSRVP_E_OBJECT_NOT_FOUND          | The specified object does not exist.                               |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80042501 FSRVP_E_SHADOWCOPYSET_ID_MISMATCH | The provided ShadowCopySetId does not exist.                       |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	DeleteShareMapping(context.Context, *DeleteShareMappingRequest, ...dcerpc.CallOption) (*DeleteShareMappingResponse, error)

	// The PrepareShadowCopySet method is invoked by the client to ensure that the server
	// has completed preparation for creating the shadow copy set.
	//
	// Return Values: The method returns one of the values as specified in section 2.2.4.
	// The most common error codes are listed below.
	//
	//	+----------------------------------------------+----------------------------------------------------------------+
	//	|                    RETURN                    |                                                                |
	//	|                  VALUE/CODE                  |                          DESCRIPTION                           |
	//	|                                              |                                                                |
	//	+----------------------------------------------+----------------------------------------------------------------+
	//	+----------------------------------------------+----------------------------------------------------------------+
	//	| 0x80070005 E_ACCESSDENIED                    | The caller does not have permission to perform the operation.  |
	//	+----------------------------------------------+----------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG                      | One or more arguments are invalid.                             |
	//	+----------------------------------------------+----------------------------------------------------------------+
	//	| 0x80042301 FSRVP_E_BAD_STATE                 | The method call is invalid because of the state of the server. |
	//	+----------------------------------------------+----------------------------------------------------------------+
	//	| 0x00000102 FSRVP_E_WAIT_TIMEOUT              | The wait for shadow copy preparation operation has timed out.  |
	//	+----------------------------------------------+----------------------------------------------------------------+
	//	| 0xFFFFFFFF FSRVP_E_WAIT_FAILED               | The wait for shadow copy preparation operation has failed.     |
	//	+----------------------------------------------+----------------------------------------------------------------+
	//	| 0x80042501 FSRVP_E_SHADOWCOPYSET_ID_MISMATCH | The provided ShadowCopySetId does not exist.                   |
	//	+----------------------------------------------+----------------------------------------------------------------+
	PrepareShadowCopySet(context.Context, *PrepareShadowCopySetRequest, ...dcerpc.CallOption) (*PrepareShadowCopySetResponse, error)

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

FileServerVssAgent interface.

func NewFileServerVSSAgentClient

func NewFileServerVSSAgentClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (FileServerVSSAgentClient, error)

type FileServerVSSAgentServer

type FileServerVSSAgentServer interface {

	// The GetSupportedVersion method is invoked by the client to get the minimum and maximum
	// versions of the protocol that the server supports.
	//
	// Return Values: The method returns one of the values specified in section 2.2.4. The
	// most common error codes are listed below.
	//
	//	+---------------------------+--------------------------------------------------------------------+
	//	|          RETURN           |                                                                    |
	//	|        VALUE/CODE         |                            DESCRIPTION                             |
	//	|                           |                                                                    |
	//	+---------------------------+--------------------------------------------------------------------+
	//	+---------------------------+--------------------------------------------------------------------+
	//	| 0x80070005 E_ACCESSDENIED | The caller does not have the permissions to perform the operation. |
	//	+---------------------------+--------------------------------------------------------------------+
	GetSupportedVersion(context.Context, *GetSupportedVersionRequest) (*GetSupportedVersionResponse, error)

	// The SetContext method sets the context for the current shadow copy creation process.
	//
	// Return Values: The method returns one of the values as specified in section 2.2.4.
	// The most common error codes are listed below.
	//
	//	+------------------------------------------------+--------------------------------------------------------------------+
	//	|                     RETURN                     |                                                                    |
	//	|                   VALUE/CODE                   |                            DESCRIPTION                             |
	//	|                                                |                                                                    |
	//	+------------------------------------------------+--------------------------------------------------------------------+
	//	+------------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80070005 E_ACCESSDENIED                      | The caller does not have the permissions to perform the operation. |
	//	+------------------------------------------------+--------------------------------------------------------------------+
	//	| 0x8004231B FSRVP_E_UNSUPPORTED_CONTEXT         | The context value specified is invalid.                            |
	//	+------------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80042316 FSRVP_E_SHADOW_COPY_SET_IN_PROGRESS | Creation of another shadow copy set is in progress.                |
	//	+------------------------------------------------+--------------------------------------------------------------------+
	//
	// If the Context parameter contains an invalid value, the server MUST fail the call
	// with FSRVP_E_UNSUPPORTED_CONTEXT.
	SetContext(context.Context, *SetContextRequest) (*SetContextResponse, error)

	// The StartShadowCopySet method is called by the client to initiate a new shadow copy
	// set for shadow copy creation.<6>
	//
	// Return Values: The method returns one of the values specified in section 2.2.4. The
	// most common error codes are listed in the following table:
	//
	//	+------------------------------------------------+----------------------------------------------------------------------------------+
	//	|                     RETURN                     |                                                                                  |
	//	|                   VALUE/CODE                   |                                   DESCRIPTION                                    |
	//	|                                                |                                                                                  |
	//	+------------------------------------------------+----------------------------------------------------------------------------------+
	//	+------------------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80070005 E_ACCESSDENIED                      | The caller does not have the permissions to perform the operation.               |
	//	+------------------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG                        | One or more arguments are invalid.                                               |
	//	+------------------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80042316 FSRVP_E_SHADOW_COPY_SET_IN_PROGRESS | StartShadowCopySet (Opnum 2) was called while the creation of another shadow     |
	//	|                                                | copy set was in progress.                                                        |
	//	+------------------------------------------------+----------------------------------------------------------------------------------+
	//
	// If ContextSet is FALSE, the server MUST fail the call with FSRVP_E_BAD_STATE.
	//
	// If there is a ShadowCopySet in the GlobalShadowCopySetTable where ShadowCopySet.Status
	// is not equal to "Recovered", the server MUST fail the call with FSRVP_E_SHADOW_COPY_SET_IN_PROGRESS.
	StartShadowCopySet(context.Context, *StartShadowCopySetRequest) (*StartShadowCopySetResponse, error)

	// The AddToShadowCopySet method adds a share to an existing shadow copy set.
	//
	// Return Values: The method returns one of the values specified in section 2.2.4. The
	// most common error codes are listed in the following table:
	//
	//	+----------------------------------------------+----------------------------------------------------------------------------------+
	//	|                    RETURN                    |                                                                                  |
	//	|                  VALUE/CODE                  |                                   DESCRIPTION                                    |
	//	|                                              |                                                                                  |
	//	+----------------------------------------------+----------------------------------------------------------------------------------+
	//	+----------------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80070005 E_ACCESSDENIED                    | The caller does not have permission to perform the operation.                    |
	//	+----------------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG                      | One or more arguments are invalid.                                               |
	//	+----------------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x8004230C FSRVP_E_NOT_SUPPORTED             | The file store that contains the share to be shadow copied is not supported by   |
	//	|                                              | the server.                                                                      |
	//	+----------------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80042301 FSRVP_E_BAD_STATE                 | The method call is invalid because of the state of the server.                   |
	//	+----------------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x8004230D FSRVP_E_OBJECT_ALREADY_EXISTS     | The object already exists.                                                       |
	//	+----------------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80042501 FSRVP_E_SHADOWCOPYSET_ID_MISMATCH | The provided ShadowCopySetId does not exist.                                     |
	//	+----------------------------------------------+----------------------------------------------------------------------------------+
	AddToShadowCopySet(context.Context, *AddToShadowCopySetRequest) (*AddToShadowCopySetResponse, error)

	// The CommitShadowCopySet method is invoked by the client to commit a given shadow
	// copy set.
	//
	// Return Values: The method returns one of the values specified in section 2.2.4. The
	// most common error codes are listed below.
	//
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	|                    RETURN                    |                                                                    |
	//	|                  VALUE/CODE                  |                            DESCRIPTION                             |
	//	|                                              |                                                                    |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80070005 E_ACCESSDENIED                    | The caller does not have the permissions to perform the operation. |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG                      | One or more arguments are invalid.                                 |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80042301 FSRVP_E_BAD_STATE                 | The method call is invalid because of the state of the server.     |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80042500 FSSAGENT_E_TIMEOUT                | The wait for the shadow copy commit operation has timed out.       |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0xFFFFFFFF FSRVP_E_WAIT_FAILED               | The wait for shadow copy commit operation has failed.              |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80042501 FSRVP_E_SHADOWCOPYSET_ID_MISMATCH | The provided ShadowCopySetId does not exist.                       |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	CommitShadowCopySet(context.Context, *CommitShadowCopySetRequest) (*CommitShadowCopySetResponse, error)

	// The ExposeShadowCopySet method exposes all the shadow copies in a shadow copy set
	// as file shares on the file server.
	//
	// Return Values: The method returns one of the values specified in section 2.2.4. The
	// most common error codes are listed in the following table.
	//
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	|                    RETURN                    |                                                                    |
	//	|                  VALUE/CODE                  |                            DESCRIPTION                             |
	//	|                                              |                                                                    |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80070005 E_ACCESSDENIED                    | The caller does not have the permissions to perform the operation. |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG                      | One or more arguments are invalid.                                 |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80042301 FSRVP_E_BAD_STATE                 | The method call is invalid because of the server's state.          |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80042501 FSRVP_E_SHADOWCOPYSET_ID_MISMATCH | The provided ShadowCopySetId does not exist.                       |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	ExposeShadowCopySet(context.Context, *ExposeShadowCopySetRequest) (*ExposeShadowCopySetResponse, error)

	// The RecoveryCompleteShadowCopySet method is invoked by the client to indicate to
	// the server that the data associated with the file shares in a shadow copy set have
	// been recovered by the VSS writers.
	//
	// Return Values: The method returns one of the values as specified in section 2.2.4.
	// The most common error codes are listed in the following table:
	//
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	|                    RETURN                    |                                                                    |
	//	|                  VALUE/CODE                  |                            DESCRIPTION                             |
	//	|                                              |                                                                    |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x00000000 ZERO                              | The operation completed successfully.                              |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80070005 E_ACCESSDENIED                    | The caller does not have the permissions to perform the operation. |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG                      | One or more arguments are invalid.                                 |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80042301 FSRVP_E_BAD_STATE                 | The method call is invalid because of the server's state.          |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80042501 FSRVP_E_SHADOWCOPYSET_ID_MISMATCH | The provided ShadowCopySetId does not exist.                       |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	RecoveryCompleteShadowCopySet(context.Context, *RecoveryCompleteShadowCopySetRequest) (*RecoveryCompleteShadowCopySetResponse, error)

	// The AbortShadowCopySet method is invoked by the client to delete a given shadow copy
	// set on the server.
	//
	// Return Values: The method returns one of the values as specified in section 2.2.4.
	// The most common error codes are listed in the following table.
	//
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	|                    RETURN                    |                                                                    |
	//	|                  VALUE/CODE                  |                            DESCRIPTION                             |
	//	|                                              |                                                                    |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80070005 E_ACCESSDENIED                    | The caller does not have the permissions to perform the operation. |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG                      | One or more arguments are invalid.                                 |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80042301 FSRVP_E_BAD_STATE                 | The method call is invalid because of the server's state.          |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80042501 FSRVP_E_SHADOWCOPYSET_ID_MISMATCH | The provided ShadowCopySetId does not exist.                       |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	AbortShadowCopySet(context.Context, *AbortShadowCopySetRequest) (*AbortShadowCopySetResponse, error)

	// The IsPathSupported method is invoked by the client to query if a given share is
	// supported by the server for shadow copy operations.
	//
	// Return Values: The method returns one of the values as specified in section 2.2.4.
	// The most common error codes are listed in the following table:
	//
	//	+-----------------------------------+----------------------------------------------------------------------------------+
	//	|              RETURN               |                                                                                  |
	//	|            VALUE/CODE             |                                   DESCRIPTION                                    |
	//	|                                   |                                                                                  |
	//	+-----------------------------------+----------------------------------------------------------------------------------+
	//	+-----------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80070005 E_ACCESSDENIED         | The caller does not have the permissions to perform the operation.               |
	//	+-----------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG           | One or more arguments are invalid.                                               |
	//	+-----------------------------------+----------------------------------------------------------------------------------+
	//	| 0x8004230CL FSRVP_E_NOT_SUPPORTED | The file store that contains the share to be shadow copied is not supported by   |
	//	|                                   | the server.                                                                      |
	//	+-----------------------------------+----------------------------------------------------------------------------------+
	IsPathSupported(context.Context, *IsPathSupportedRequest) (*IsPathSupportedResponse, error)

	// The IsPathShadowCopied method is invoked by the client to query if any shadow copy
	// for a share already exists.
	//
	// Return Values:  The method returns one of the values as specified in section 2.2.4.
	// The most common error codes are listed in the following table.
	//
	//	+---------------------------+--------------------------------------------------------------------+
	//	|          RETURN           |                                                                    |
	//	|        VALUE/CODE         |                            DESCRIPTION                             |
	//	|                           |                                                                    |
	//	+---------------------------+--------------------------------------------------------------------+
	//	+---------------------------+--------------------------------------------------------------------+
	//	| 0x00000000 ZERO           | The operation completed successfully.                              |
	//	+---------------------------+--------------------------------------------------------------------+
	//	| 0x80070005 E_ACCESSDENIED | The caller does not have the permissions to perform the operation. |
	//	+---------------------------+--------------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG   | One or more arguments are invalid.                                 |
	//	+---------------------------+--------------------------------------------------------------------+
	IsPathShadowCopied(context.Context, *IsPathShadowCopiedRequest) (*IsPathShadowCopiedResponse, error)

	// The GetShareMapping method is invoked by the client to get the shadow copy information
	// on a given file share on the server after the shadow copy of the share has been exposed.
	//
	// Return Values: The method returns one of the values as specified in section 2.2.4.
	// The most common error codes are listed in the following table:
	//
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	|                    RETURN                    |                                                                    |
	//	|                  VALUE/CODE                  |                            DESCRIPTION                             |
	//	|                                              |                                                                    |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80070005 E_ACCESSDENIED                    | The caller does not have the permissions to perform the operation. |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG                      | One or more arguments are invalid.                                 |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80042501 FSRVP_E_SHADOWCOPYSET_ID_MISMATCH | The provided ShadowCopySetId does not exist.                       |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//
	// If the value of Level is invalid, the server MUST fail the call with E_INVALIDARG.
	GetShareMapping(context.Context, *GetShareMappingRequest) (*GetShareMappingResponse, error)

	// The DeleteShareMapping method deletes the mapping of a share's shadow copy from a
	// shadow copy set.
	//
	// Return Values: The method returns one of the values as specified in section 2.2.4.
	// The most common error codes are listed in the following table:
	//
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	|                    RETURN                    |                                                                    |
	//	|                  VALUE/CODE                  |                            DESCRIPTION                             |
	//	|                                              |                                                                    |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80070005 E_ACCESSDENIED                    | The caller does not have the permissions to perform the operation. |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG                      | One or more arguments are invalid.                                 |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80042308 FSRVP_E_OBJECT_NOT_FOUND          | The specified object does not exist.                               |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	//	| 0x80042501 FSRVP_E_SHADOWCOPYSET_ID_MISMATCH | The provided ShadowCopySetId does not exist.                       |
	//	+----------------------------------------------+--------------------------------------------------------------------+
	DeleteShareMapping(context.Context, *DeleteShareMappingRequest) (*DeleteShareMappingResponse, error)

	// The PrepareShadowCopySet method is invoked by the client to ensure that the server
	// has completed preparation for creating the shadow copy set.
	//
	// Return Values: The method returns one of the values as specified in section 2.2.4.
	// The most common error codes are listed below.
	//
	//	+----------------------------------------------+----------------------------------------------------------------+
	//	|                    RETURN                    |                                                                |
	//	|                  VALUE/CODE                  |                          DESCRIPTION                           |
	//	|                                              |                                                                |
	//	+----------------------------------------------+----------------------------------------------------------------+
	//	+----------------------------------------------+----------------------------------------------------------------+
	//	| 0x80070005 E_ACCESSDENIED                    | The caller does not have permission to perform the operation.  |
	//	+----------------------------------------------+----------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG                      | One or more arguments are invalid.                             |
	//	+----------------------------------------------+----------------------------------------------------------------+
	//	| 0x80042301 FSRVP_E_BAD_STATE                 | The method call is invalid because of the state of the server. |
	//	+----------------------------------------------+----------------------------------------------------------------+
	//	| 0x00000102 FSRVP_E_WAIT_TIMEOUT              | The wait for shadow copy preparation operation has timed out.  |
	//	+----------------------------------------------+----------------------------------------------------------------+
	//	| 0xFFFFFFFF FSRVP_E_WAIT_FAILED               | The wait for shadow copy preparation operation has failed.     |
	//	+----------------------------------------------+----------------------------------------------------------------+
	//	| 0x80042501 FSRVP_E_SHADOWCOPYSET_ID_MISMATCH | The provided ShadowCopySetId does not exist.                   |
	//	+----------------------------------------------+----------------------------------------------------------------+
	PrepareShadowCopySet(context.Context, *PrepareShadowCopySetRequest) (*PrepareShadowCopySetResponse, error)
}

FileServerVssAgent server interface.

type GetShareMappingRequest

type GetShareMappingRequest struct {
	// ShadowCopyId: The GUID of the shadow copy associated with the share.
	ShadowCopyID *dtyp.GUID `idl:"name:ShadowCopyId" json:"shadow_copy_id"`
	// ShadowCopySetId: The GUID of the shadow copy set.
	ShadowCopySetID *dtyp.GUID `idl:"name:ShadowCopySetId" json:"shadow_copy_set_id"`
	// ShareName: The name of the share in UNC format.
	ShareName string `idl:"name:ShareName;string" json:"share_name"`
	// Level: The information level of the share mapping data. This parameter MUST be one
	// of the following values.
	//
	//	+-------+--------------------------+
	//	|       |                          |
	//	| VALUE |         MEANING          |
	//	|       |                          |
	//	+-------+--------------------------+
	//	+-------+--------------------------+
	//	|     1 | FSSAGENT_SHARE_MAPPING_1 |
	//	+-------+--------------------------+
	Level uint32 `idl:"name:Level" json:"level"`
}

GetShareMappingRequest structure represents the GetShareMapping operation request

func (*GetShareMappingRequest) MarshalNDR

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

func (*GetShareMappingRequest) UnmarshalNDR

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

type GetShareMappingResponse

type GetShareMappingResponse struct {
	// ShareMapping: A pointer to an FSSAGENT_SHARE_MAPPING structure, as specified in section
	// 2.2.3.1.
	ShareMapping *ShareMapping `idl:"name:ShareMapping;switch_is:Level" json:"share_mapping"`
	// Return: The GetShareMapping return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

GetShareMappingResponse structure represents the GetShareMapping operation response

func (*GetShareMappingResponse) MarshalNDR

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

func (*GetShareMappingResponse) UnmarshalNDR

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

type GetSupportedVersionRequest

type GetSupportedVersionRequest struct {
}

GetSupportedVersionRequest structure represents the GetSupportedVersion operation request

func (*GetSupportedVersionRequest) MarshalNDR

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

func (*GetSupportedVersionRequest) UnmarshalNDR

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

type GetSupportedVersionResponse

type GetSupportedVersionResponse struct {
	// MinVersion:  The minimum version of the protocol that the server supports.
	MinVersion uint32 `idl:"name:MinVersion" json:"min_version"`
	// MaxVersion:  The maximum version of the protocol that the server supports.
	MaxVersion uint32 `idl:"name:MaxVersion" json:"max_version"`
	// Return: The GetSupportedVersion return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

GetSupportedVersionResponse structure represents the GetSupportedVersion operation response

func (*GetSupportedVersionResponse) MarshalNDR

func (*GetSupportedVersionResponse) UnmarshalNDR

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

type IsPathShadowCopiedRequest

type IsPathShadowCopiedRequest struct {
	// ShareName: The full path of the share in UNC format.
	ShareName string `idl:"name:ShareName;string" json:"share_name"`
}

IsPathShadowCopiedRequest structure represents the IsPathShadowCopied operation request

func (*IsPathShadowCopiedRequest) MarshalNDR

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

func (*IsPathShadowCopiedRequest) UnmarshalNDR

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

type IsPathShadowCopiedResponse

type IsPathShadowCopiedResponse struct {
	// ShadowCopyPresent: This value is set to TRUE if the ShareName specified has a shadow
	// copy; otherwise set to FALSE.
	ShadowCopyPresent bool `idl:"name:ShadowCopyPresent" json:"shadow_copy_present"`
	// ShadowCopyCompatibility: This value indicates whether certain I/O operations on the
	// file store containing the shadow copy are disabled. This MUST be zero or a combination
	// of the values as specified in section 2.2.2.3.
	ShadowCopyCompatibility int32 `idl:"name:ShadowCopyCompatibility" json:"shadow_copy_compatibility"`
	// Return: The IsPathShadowCopied return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

IsPathShadowCopiedResponse structure represents the IsPathShadowCopied operation response

func (*IsPathShadowCopiedResponse) MarshalNDR

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

func (*IsPathShadowCopiedResponse) UnmarshalNDR

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

type IsPathSupportedRequest

type IsPathSupportedRequest struct {
	// ShareName: The full path of the share in UNC format.
	ShareName string `idl:"name:ShareName;string" json:"share_name"`
}

IsPathSupportedRequest structure represents the IsPathSupported operation request

func (*IsPathSupportedRequest) MarshalNDR

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

func (*IsPathSupportedRequest) UnmarshalNDR

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

type IsPathSupportedResponse

type IsPathSupportedResponse struct {
	// SupportedByThisProvider:  A Boolean, when set to TRUE, that indicates that shadow
	// copies of this share are supported by the server.
	SupportedByThisProvider bool `idl:"name:SupportedByThisProvider" json:"supported_by_this_provider"`
	// OwnerMachineName:  The name of the server machine to which the client MUST connect
	// to create shadow copies of the specified ShareName.
	OwnerMachineName string `idl:"name:OwnerMachineName;string" json:"owner_machine_name"`
	// Return: The IsPathSupported return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

IsPathSupportedResponse structure represents the IsPathSupported operation response

func (*IsPathSupportedResponse) MarshalNDR

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

func (*IsPathSupportedResponse) UnmarshalNDR

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

type PrepareShadowCopySetRequest

type PrepareShadowCopySetRequest struct {
	// ShadowCopySetId: The GUID of the shadow copy set, assigned by the server.
	ShadowCopySetID *dtyp.GUID `idl:"name:ShadowCopySetId" json:"shadow_copy_set_id"`
	// TimeOutInMilliseconds: The time in milliseconds for which the server MUST wait for
	// the shadow copy preparation process to complete.
	TimeoutInMilliseconds uint32 `idl:"name:TimeOutInMilliseconds" json:"timeout_in_milliseconds"`
}

PrepareShadowCopySetRequest structure represents the PrepareShadowCopySet operation request

func (*PrepareShadowCopySetRequest) MarshalNDR

func (*PrepareShadowCopySetRequest) UnmarshalNDR

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

type PrepareShadowCopySetResponse

type PrepareShadowCopySetResponse struct {
	// Return: The PrepareShadowCopySet return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

PrepareShadowCopySetResponse structure represents the PrepareShadowCopySet operation response

func (*PrepareShadowCopySetResponse) MarshalNDR

func (*PrepareShadowCopySetResponse) UnmarshalNDR

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

type RecoveryCompleteShadowCopySetRequest

type RecoveryCompleteShadowCopySetRequest struct {
	// ShadowCopySetId: The GUID of the shadow copy set.
	ShadowCopySetID *dtyp.GUID `idl:"name:ShadowCopySetId" json:"shadow_copy_set_id"`
}

RecoveryCompleteShadowCopySetRequest structure represents the RecoveryCompleteShadowCopySet operation request

func (*RecoveryCompleteShadowCopySetRequest) MarshalNDR

func (*RecoveryCompleteShadowCopySetRequest) UnmarshalNDR

type RecoveryCompleteShadowCopySetResponse

type RecoveryCompleteShadowCopySetResponse struct {
	// Return: The RecoveryCompleteShadowCopySet return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

RecoveryCompleteShadowCopySetResponse structure represents the RecoveryCompleteShadowCopySet operation response

func (*RecoveryCompleteShadowCopySetResponse) MarshalNDR

func (*RecoveryCompleteShadowCopySetResponse) UnmarshalNDR

type SetContextRequest

type SetContextRequest struct {
	// Context: The context to be used for the shadow copy operations. It MUST be set to
	// one of the CONTEXT_VALUES specified in section 2.2.2.2.
	Context uint32 `idl:"name:Context" json:"context"`
}

SetContextRequest structure represents the SetContext operation request

func (*SetContextRequest) MarshalNDR

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

func (*SetContextRequest) UnmarshalNDR

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

type SetContextResponse

type SetContextResponse struct {
	// Return: The SetContext return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

SetContextResponse structure represents the SetContext operation response

func (*SetContextResponse) MarshalNDR

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

func (*SetContextResponse) UnmarshalNDR

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

type ShareMapping

type ShareMapping struct {
	// Types that are assignable to Value
	//
	// *ShareMapping_1
	// *ShareMapping_DefaultShareMapping
	Value is_ShareMapping `json:"value"`
}

ShareMapping structure represents FSSAGENT_SHARE_MAPPING RPC union.

The FSSAGENT_SHARE_MAPPING union contains mapping information for a share to its shadow copy based on the level value.

func (*ShareMapping) GetValue

func (o *ShareMapping) GetValue() any

func (*ShareMapping) MarshalUnionNDR

func (o *ShareMapping) MarshalUnionNDR(ctx context.Context, w ndr.Writer, sw uint32) error

func (*ShareMapping) NDRSwitchValue

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

func (*ShareMapping) UnmarshalUnionNDR

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

type ShareMapping1

type ShareMapping1 struct {
	// ShadowCopySetId:  The GUID of the shadow copy set.
	ShadowCopySetID *dtyp.GUID `idl:"name:ShadowCopySetId" json:"shadow_copy_set_id"`
	// ShadowCopyId:  The GUID of the shadow copy.
	ShadowCopyID *dtyp.GUID `idl:"name:ShadowCopyId" json:"shadow_copy_id"`
	// ShareNameUNC:  The name of the share in UNC format.
	ShareNameUNC string `idl:"name:ShareNameUNC;string" json:"share_name_unc"`
	// ShadowCopyShareName:  The name of the share exposing the shadow copy of the base
	// share identified by ShareNameUNC, in UNC format.
	ShadowCopyShareName string `idl:"name:ShadowCopyShareName;string" json:"shadow_copy_share_name"`
	// CreationTimestamp:  The time at which the shadow copy of the share is created. This
	// MUST be a 64-bit integer value containing the number of 100-nanosecond intervals
	// since January 1, 1601 (UTC).
	CreationTimestamp int64 `idl:"name:CreationTimestamp" json:"creation_timestamp"`
}

ShareMapping1 structure represents FSSAGENT_SHARE_MAPPING_1 RPC structure.

This structure contains the mapping information for a file share to its shadow copy.

func (*ShareMapping1) MarshalNDR

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

func (*ShareMapping1) UnmarshalNDR

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

type ShareMapping_1

type ShareMapping_1 struct {
	// ShareMapping1:  A pointer to an FSSAGENT_SHARE_MAPPING_1 structure, as specified
	// in section 2.2.1.1.
	ShareMapping1 *ShareMapping1 `idl:"name:ShareMapping1" json:"share_mapping1"`
}

ShareMapping_1 structure represents FSSAGENT_SHARE_MAPPING RPC union arm.

It has following labels: 1

func (*ShareMapping_1) MarshalNDR

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

func (*ShareMapping_1) UnmarshalNDR

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

type ShareMapping_DefaultShareMapping

type ShareMapping_DefaultShareMapping struct {
}

ShareMapping_DefaultShareMapping structure represents FSSAGENT_SHARE_MAPPING RPC default union arm.

func (*ShareMapping_DefaultShareMapping) MarshalNDR

func (*ShareMapping_DefaultShareMapping) UnmarshalNDR

type StartShadowCopySetRequest

type StartShadowCopySetRequest struct {
	// ClientShadowCopySetId: The GUID assigned by the client for the shadow copy set.<7>
	ClientShadowCopySetID *dtyp.GUID `idl:"name:ClientShadowCopySetId" json:"client_shadow_copy_set_id"`
}

StartShadowCopySetRequest structure represents the StartShadowCopySet operation request

func (*StartShadowCopySetRequest) MarshalNDR

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

func (*StartShadowCopySetRequest) UnmarshalNDR

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

type StartShadowCopySetResponse

type StartShadowCopySetResponse struct {
	// pShadowCopySetId: The GUID of the shadow copy set, assigned by the server.
	ShadowCopySetID *dtyp.GUID `idl:"name:pShadowCopySetId" json:"shadow_copy_set_id"`
	// Return: The StartShadowCopySet return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

StartShadowCopySetResponse structure represents the StartShadowCopySet operation response

func (*StartShadowCopySetResponse) MarshalNDR

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

func (*StartShadowCopySetResponse) UnmarshalNDR

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