Documentation ¶
Index ¶
- Variables
- func NewQuotaManagerServerHandle(o QuotaManagerServer) dcerpc.ServerHandle
- func QuotaManagerServerHandle(ctx context.Context, o QuotaManagerServer, opNum int, r ndr.Reader) (dcerpc.Operation, error)
- func RegisterQuotaManagerServer(conn dcerpc.Conn, o QuotaManagerServer, opts ...dcerpc.Option)
- type CreateAutoApplyQuotaRequest
- type CreateAutoApplyQuotaResponse
- type CreateQuotaCollectionRequest
- type CreateQuotaCollectionResponse
- type CreateQuotaRequest
- type CreateQuotaResponse
- type EnumAutoApplyQuotasRequest
- type EnumAutoApplyQuotasResponse
- type EnumEffectiveQuotasRequest
- type EnumEffectiveQuotasResponse
- type EnumQuotasRequest
- type EnumQuotasResponse
- type GetActionVariableDescriptionsRequest
- type GetActionVariableDescriptionsResponse
- type GetActionVariablesRequest
- type GetActionVariablesResponse
- type GetAutoApplyQuotaRequest
- type GetAutoApplyQuotaResponse
- type GetQuotaRequest
- type GetQuotaResponse
- type GetRestrictiveQuotaRequest
- type GetRestrictiveQuotaResponse
- type QuotaManagerClient
- type QuotaManagerServer
- type ScanRequest
- type ScanResponse
Constants ¶
This section is empty.
Variables ¶
var ( // IFsrmQuotaManager interface identifier 8bb68c7d-19d8-4ffb-809e-be4fc1734014 QuotaManagerIID = &dcom.IID{Data1: 0x8bb68c7d, Data2: 0x19d8, Data3: 0x4ffb, Data4: []byte{0x80, 0x9e, 0xbe, 0x4f, 0xc1, 0x73, 0x40, 0x14}} // Syntax UUID QuotaManagerSyntaxUUID = &uuid.UUID{TimeLow: 0x8bb68c7d, TimeMid: 0x19d8, TimeHiAndVersion: 0x4ffb, ClockSeqHiAndReserved: 0x80, ClockSeqLow: 0x9e, Node: [6]uint8{0xbe, 0x4f, 0xc1, 0x73, 0x40, 0x14}} // Syntax ID QuotaManagerSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: QuotaManagerSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0} )
var (
// import guard
GoPackage = "dcom/fsrm"
)
Functions ¶
func NewQuotaManagerServerHandle ¶
func NewQuotaManagerServerHandle(o QuotaManagerServer) dcerpc.ServerHandle
func RegisterQuotaManagerServer ¶
func RegisterQuotaManagerServer(conn dcerpc.Conn, o QuotaManagerServer, opts ...dcerpc.Option)
Types ¶
type CreateAutoApplyQuotaRequest ¶
type CreateAutoApplyQuotaRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` // quotaTemplateName: Contains the Name property of the directory quota template from // which to derive the auto apply quota. The maximum length of this string MUST be 4,000 // characters. QuotaTemplateName *oaut.String `idl:"name:quotaTemplateName" json:"quota_template_name"` // path: Contains the path of the local directory for the auto apply quota. The maximum // length of this string MUST be 260 characters. Path *oaut.String `idl:"name:path" json:"path"` }
CreateAutoApplyQuotaRequest structure represents the CreateAutoApplyQuota operation request
func (*CreateAutoApplyQuotaRequest) MarshalNDR ¶
func (*CreateAutoApplyQuotaRequest) UnmarshalNDR ¶
type CreateAutoApplyQuotaResponse ¶
type CreateAutoApplyQuotaResponse struct { // That: ORPCTHAT structure that is used to return ORPC extension data to the client. That *dcom.ORPCThat `idl:"name:That" json:"that"` // quota: Pointer to an IFsrmAutoApplyQuota interface pointer (section 3.2.4.2.17) that // upon completion points to the newly created Non-Persisted Auto Apply Quota Instance. // To have the Non-Persisted Auto Apply Quota Instance added to the server's List of // Persisted Auto Apply Quota Instances (section 3.2.1.2), the caller MUST call Commit // (section 3.2.4.2.17.1). Quota *fsrm.AutoApplyQuota `idl:"name:quota" json:"quota"` // Return: The CreateAutoApplyQuota return value. Return int32 `idl:"name:Return" json:"return"` }
CreateAutoApplyQuotaResponse structure represents the CreateAutoApplyQuota operation response
func (*CreateAutoApplyQuotaResponse) MarshalNDR ¶
func (*CreateAutoApplyQuotaResponse) UnmarshalNDR ¶
type CreateQuotaCollectionRequest ¶
type CreateQuotaCollectionRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` }
CreateQuotaCollectionRequest structure represents the CreateQuotaCollection operation request
func (*CreateQuotaCollectionRequest) MarshalNDR ¶
func (*CreateQuotaCollectionRequest) UnmarshalNDR ¶
type CreateQuotaCollectionResponse ¶
type CreateQuotaCollectionResponse struct { // That: ORPCTHAT structure that is used to return ORPC extension data to the client. That *dcom.ORPCThat `idl:"name:That" json:"that"` // collection: Pointer to an IFsrmCommittableCollection interface pointer (section 3.2.4.2.3) // that upon completion points to an empty IFsrmCommittableCollection specific to quota // objects. A caller MUST release the collection received when it is done with it. Collection *fsrm.CommittableCollection `idl:"name:collection" json:"collection"` // Return: The CreateQuotaCollection return value. Return int32 `idl:"name:Return" json:"return"` }
CreateQuotaCollectionResponse structure represents the CreateQuotaCollection operation response
func (*CreateQuotaCollectionResponse) MarshalNDR ¶
func (*CreateQuotaCollectionResponse) UnmarshalNDR ¶
type CreateQuotaRequest ¶
type CreateQuotaRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` // path: Contains the path of the local directory for the directory quota. The maximum // length of this string MUST be 260 characters. Path *oaut.String `idl:"name:path" json:"path"` }
CreateQuotaRequest structure represents the CreateQuota operation request
func (*CreateQuotaRequest) MarshalNDR ¶
func (*CreateQuotaRequest) UnmarshalNDR ¶
type CreateQuotaResponse ¶
type CreateQuotaResponse struct { // That: ORPCTHAT structure that is used to return ORPC extension data to the client. That *dcom.ORPCThat `idl:"name:That" json:"that"` // quota: Pointer to an IFsrmQuota interface pointer (section 3.2.4.2.16) that upon // completion points to the newly created Non-Persisted Directory Quota Instance. To // have the Non-Persisted Directory Quota Instance added to the server's List of Persisted // Directory Quota Instances (section 3.2.4.2.16.1), the caller MUST call Commit (section // 3.2.4.2.10.5). Quota *fsrm.Quota `idl:"name:quota" json:"quota"` // Return: The CreateQuota return value. Return int32 `idl:"name:Return" json:"return"` }
CreateQuotaResponse structure represents the CreateQuota operation response
func (*CreateQuotaResponse) MarshalNDR ¶
func (*CreateQuotaResponse) UnmarshalNDR ¶
type EnumAutoApplyQuotasRequest ¶
type EnumAutoApplyQuotasRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` // path: Contains the path indicating the search location for quota enumeration. Path *oaut.String `idl:"name:path" json:"path"` // options: Contains the FsrmEnumOptions (section 2.2.1.2.5) to use when enumerating // the quotas. Options fsrm.EnumOptions `idl:"name:options" json:"options"` }
EnumAutoApplyQuotasRequest structure represents the EnumAutoApplyQuotas operation request
func (*EnumAutoApplyQuotasRequest) MarshalNDR ¶
func (*EnumAutoApplyQuotasRequest) UnmarshalNDR ¶
type EnumAutoApplyQuotasResponse ¶
type EnumAutoApplyQuotasResponse struct { // That: ORPCTHAT structure that is used to return ORPC extension data to the client. That *dcom.ORPCThat `idl:"name:That" json:"that"` // quotas: Pointer to an IFsrmCommittableCollection interface pointer (section 3.2.4.2.3) // that upon completion contains pointers to auto apply quotas belonging to the specified // path based on the wildcard specified in path. The caller MUST release the collection // when it is done with it. Quotas *fsrm.CommittableCollection `idl:"name:quotas" json:"quotas"` // Return: The EnumAutoApplyQuotas return value. Return int32 `idl:"name:Return" json:"return"` }
EnumAutoApplyQuotasResponse structure represents the EnumAutoApplyQuotas operation response
func (*EnumAutoApplyQuotasResponse) MarshalNDR ¶
func (*EnumAutoApplyQuotasResponse) UnmarshalNDR ¶
type EnumEffectiveQuotasRequest ¶
type EnumEffectiveQuotasRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` // path: Contains the path to return for the quotas. The maximum length of this string // MUST be 260 characters. Path *oaut.String `idl:"name:path" json:"path"` // options: Contains the FsrmEnumOptions (section 2.2.1.2.5) to use when enumerating // the quotas. Options fsrm.EnumOptions `idl:"name:options" json:"options"` }
EnumEffectiveQuotasRequest structure represents the EnumEffectiveQuotas operation request
func (*EnumEffectiveQuotasRequest) MarshalNDR ¶
func (*EnumEffectiveQuotasRequest) UnmarshalNDR ¶
type EnumEffectiveQuotasResponse ¶
type EnumEffectiveQuotasResponse struct { // That: ORPCTHAT structure that is used to return ORPC extension data to the client. That *dcom.ORPCThat `idl:"name:That" json:"that"` // quotas: Pointer to an IFsrmCommittableCollection interface pointer (section 3.2.4.2.3) // that upon completion contains pointers to every directory quota that affects the // specified path. The caller MUST release the collection when it is done with it. Quotas *fsrm.CommittableCollection `idl:"name:quotas" json:"quotas"` // Return: The EnumEffectiveQuotas return value. Return int32 `idl:"name:Return" json:"return"` }
EnumEffectiveQuotasResponse structure represents the EnumEffectiveQuotas operation response
func (*EnumEffectiveQuotasResponse) MarshalNDR ¶
func (*EnumEffectiveQuotasResponse) UnmarshalNDR ¶
type EnumQuotasRequest ¶
type EnumQuotasRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` // path: Contains the path indicating the search location for quota numeration. Path *oaut.String `idl:"name:path" json:"path"` // options: Contains the FsrmEnumOptions (section 2.2.1.2.5) to use when enumerating // the quotas. Options fsrm.EnumOptions `idl:"name:options" json:"options"` }
EnumQuotasRequest structure represents the EnumQuotas operation request
func (*EnumQuotasRequest) MarshalNDR ¶
func (*EnumQuotasRequest) UnmarshalNDR ¶
type EnumQuotasResponse ¶
type EnumQuotasResponse struct { // That: ORPCTHAT structure that is used to return ORPC extension data to the client. That *dcom.ORPCThat `idl:"name:That" json:"that"` // quotas: Pointer to an IFsrmCommittableCollection interface pointer (section 3.2.4.2.3) // that upon completion contains pointers to directory quotas belonging to the path // specified based on the wildcard characters specified in the path. The caller MUST // release the collection when it is done with it. Quotas *fsrm.CommittableCollection `idl:"name:quotas" json:"quotas"` // Return: The EnumQuotas return value. Return int32 `idl:"name:Return" json:"return"` }
EnumQuotasResponse structure represents the EnumQuotas operation response
func (*EnumQuotasResponse) MarshalNDR ¶
func (*EnumQuotasResponse) UnmarshalNDR ¶
type GetActionVariableDescriptionsRequest ¶
type GetActionVariableDescriptionsRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` }
GetActionVariableDescriptionsRequest structure represents the ActionVariableDescriptions operation request
func (*GetActionVariableDescriptionsRequest) MarshalNDR ¶
func (*GetActionVariableDescriptionsRequest) UnmarshalNDR ¶
type GetActionVariableDescriptionsResponse ¶
type GetActionVariableDescriptionsResponse struct { // That: ORPCTHAT structure that is used to return ORPC extension data to the client. That *dcom.ORPCThat `idl:"name:That" json:"that"` Descriptions *oaut.SafeArray `idl:"name:descriptions" json:"descriptions"` // Return: The ActionVariableDescriptions return value. Return int32 `idl:"name:Return" json:"return"` }
GetActionVariableDescriptionsResponse structure represents the ActionVariableDescriptions operation response
func (*GetActionVariableDescriptionsResponse) MarshalNDR ¶
func (*GetActionVariableDescriptionsResponse) UnmarshalNDR ¶
type GetActionVariablesRequest ¶
type GetActionVariablesRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` }
GetActionVariablesRequest structure represents the ActionVariables operation request
func (*GetActionVariablesRequest) MarshalNDR ¶
func (*GetActionVariablesRequest) UnmarshalNDR ¶
type GetActionVariablesResponse ¶
type GetActionVariablesResponse struct { // That: ORPCTHAT structure that is used to return ORPC extension data to the client. That *dcom.ORPCThat `idl:"name:That" json:"that"` Variables *oaut.SafeArray `idl:"name:variables" json:"variables"` // Return: The ActionVariables return value. Return int32 `idl:"name:Return" json:"return"` }
GetActionVariablesResponse structure represents the ActionVariables operation response
func (*GetActionVariablesResponse) MarshalNDR ¶
func (*GetActionVariablesResponse) UnmarshalNDR ¶
type GetAutoApplyQuotaRequest ¶
type GetAutoApplyQuotaRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` // path: Contains the path to the requested auto apply quota. Path *oaut.String `idl:"name:path" json:"path"` }
GetAutoApplyQuotaRequest structure represents the GetAutoApplyQuota operation request
func (*GetAutoApplyQuotaRequest) MarshalNDR ¶
func (*GetAutoApplyQuotaRequest) UnmarshalNDR ¶
type GetAutoApplyQuotaResponse ¶
type GetAutoApplyQuotaResponse struct { // That: ORPCTHAT structure that is used to return ORPC extension data to the client. That *dcom.ORPCThat `idl:"name:That" json:"that"` // quota: Pointer to an IFsrmAutoApplyQuota interface pointer (section 3.2.4.2.17) that // upon completion points to the auto apply quota for the specified path. The caller // MUST release the quota when it is done with it. Quota *fsrm.AutoApplyQuota `idl:"name:quota" json:"quota"` // Return: The GetAutoApplyQuota return value. Return int32 `idl:"name:Return" json:"return"` }
GetAutoApplyQuotaResponse structure represents the GetAutoApplyQuota operation response
func (*GetAutoApplyQuotaResponse) MarshalNDR ¶
func (*GetAutoApplyQuotaResponse) UnmarshalNDR ¶
type GetQuotaRequest ¶
type GetQuotaRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` // path: Contains the path to the requested directory quota. Path *oaut.String `idl:"name:path" json:"path"` }
GetQuotaRequest structure represents the GetQuota operation request
func (*GetQuotaRequest) MarshalNDR ¶
func (*GetQuotaRequest) UnmarshalNDR ¶
type GetQuotaResponse ¶
type GetQuotaResponse struct { // That: ORPCTHAT structure that is used to return ORPC extension data to the client. That *dcom.ORPCThat `idl:"name:That" json:"that"` // quota: Pointer to an IFsrmQuota interface pointer (section 3.2.4.2.16) that upon // completion points to the directory quota for the specified path. The caller MUST // release the quota when it is done with it. Quota *fsrm.Quota `idl:"name:quota" json:"quota"` // Return: The GetQuota return value. Return int32 `idl:"name:Return" json:"return"` }
GetQuotaResponse structure represents the GetQuota operation response
func (*GetQuotaResponse) MarshalNDR ¶
func (*GetQuotaResponse) UnmarshalNDR ¶
type GetRestrictiveQuotaRequest ¶
type GetRestrictiveQuotaRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` // path: Contains the path to return for the restrictive quota. The maximum length of // this string MUST be 260 characters. Path *oaut.String `idl:"name:path" json:"path"` }
GetRestrictiveQuotaRequest structure represents the GetRestrictiveQuota operation request
func (*GetRestrictiveQuotaRequest) MarshalNDR ¶
func (*GetRestrictiveQuotaRequest) UnmarshalNDR ¶
type GetRestrictiveQuotaResponse ¶
type GetRestrictiveQuotaResponse struct { // That: ORPCTHAT structure that is used to return ORPC extension data to the client. That *dcom.ORPCThat `idl:"name:That" json:"that"` // quota: Pointer to an IFsrmQuota interface pointer (section 3.2.4.2.16) that upon // completion points to the most restrictive quota for the specified path. The caller // MUST release the quota when it is done with it. Quota *fsrm.Quota `idl:"name:quota" json:"quota"` // Return: The GetRestrictiveQuota return value. Return int32 `idl:"name:Return" json:"return"` }
GetRestrictiveQuotaResponse structure represents the GetRestrictiveQuota operation response
func (*GetRestrictiveQuotaResponse) MarshalNDR ¶
func (*GetRestrictiveQuotaResponse) UnmarshalNDR ¶
type QuotaManagerClient ¶
type QuotaManagerClient interface { // IDispatch retrieval method. Dispatch() idispatch.DispatchClient // ActionVariables operation. GetActionVariables(context.Context, *GetActionVariablesRequest, ...dcerpc.CallOption) (*GetActionVariablesResponse, error) // ActionVariableDescriptions operation. GetActionVariableDescriptions(context.Context, *GetActionVariableDescriptionsRequest, ...dcerpc.CallOption) (*GetActionVariableDescriptionsResponse, error) // The CreateQuota method creates a blank Non-Persisted Directory Quota Instance (section // 3.2.1.2.1.2) for the specified path. // // Return Values: The method MUST return zero on success, or a nonzero error code on // failure. // // +----------------------------------+--------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +----------------------------------+--------------------------------------------------+ // +----------------------------------+--------------------------------------------------+ // | 0x80045303 FSRM_E_ALREADY_EXISTS | The quota for the specified path already exists. | // +----------------------------------+--------------------------------------------------+ // | 0x80070057 E_INVALIDARG | One of the quota parameters is NULL. | // +----------------------------------+--------------------------------------------------+ CreateQuota(context.Context, *CreateQuotaRequest, ...dcerpc.CallOption) (*CreateQuotaResponse, error) // The CreateAutoApplyQuota method creates a Non-Persisted Auto Apply Quota Instance // (section 3.2.1.2.2.2) for the specified path. // // 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 auto apply quota could not be found. | // +----------------------------------+-------------------------------------------------------------+ // | 0x80045303 FSRM_E_ALREADY_EXISTS | The auto apply quota for the specified path already exists. | // +----------------------------------+-------------------------------------------------------------+ // | 0x80070057 E_INVALIDARG | One of the quota parameters is NULL. | // +----------------------------------+-------------------------------------------------------------+ CreateAutoApplyQuota(context.Context, *CreateAutoApplyQuotaRequest, ...dcerpc.CallOption) (*CreateAutoApplyQuotaResponse, error) // The GetQuota method returns the directory quota from the List of Persisted Directory // Quotas (section 3.2.1.2) for the specified path. // // 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 quota could not be found. | // +----------------------------------+----------------------------------------------------------------------------------+ // | 0x80045304 FSRM_E_PATH_NOT_FOUND | The quota for the specified path could not be found. | // +----------------------------------+----------------------------------------------------------------------------------+ // | 0x80045306 FSRM_E_INVALID_PATH | The content of the path parameter exceeds the maximum length of 4,000 | // | | characters. | // +----------------------------------+----------------------------------------------------------------------------------+ // | 0x80070057 E_INVALIDARG | This code is returned for the following reasons: The path parameter is NULL. The | // | | quota parameter is NULL. | // +----------------------------------+----------------------------------------------------------------------------------+ GetQuota(context.Context, *GetQuotaRequest, ...dcerpc.CallOption) (*GetQuotaResponse, error) // The GetAutoApplyQuota method returns the auto apply quota from the List of Persisted // Auto Apply Quotas (section 3.2.1.2) for the specified path. // // 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 auto apply quota could not be found. | // +----------------------------------+----------------------------------------------------------------------------------+ // | 0x80045304 FSRM_E_PATH_NOT_FOUND | The auto apply quota for the specified path could not be found. | // +----------------------------------+----------------------------------------------------------------------------------+ // | 0x80045306 FSRM_E_INVALID_PATH | The content of the path parameter exceeds the maximum length of 260 characters. | // +----------------------------------+----------------------------------------------------------------------------------+ // | 0x80070057 E_INVALIDARG | This code is returned for the following reasons: The path parameter is NULL. The | // | | quota parameter is NULL. | // +----------------------------------+----------------------------------------------------------------------------------+ GetAutoApplyQuota(context.Context, *GetAutoApplyQuotaRequest, ...dcerpc.CallOption) (*GetAutoApplyQuotaResponse, error) // The GetRestrictiveQuota method returns the directory quota from the List of Persisted // Directory Quotas (section 3.2.1.2) with the lowest quota limit for the specified // path. // // 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 quota could not be found. | // +----------------------------------+----------------------------------------------------------------------------------+ // | 0x80045304 FSRM_E_PATH_NOT_FOUND | The restrictive quota for the specified path could not be found. | // +----------------------------------+----------------------------------------------------------------------------------+ // | 0x80045306 FSRM_E_INVALID_PATH | The content of the path parameter exceeds the maximum length of 260 characters. | // +----------------------------------+----------------------------------------------------------------------------------+ // | 0x80070057 E_INVALIDARG | This code is returned for the following reasons: The path parameter is NULL. The | // | | quota parameter is NULL. | // +----------------------------------+----------------------------------------------------------------------------------+ GetRestrictiveQuota(context.Context, *GetRestrictiveQuotaRequest, ...dcerpc.CallOption) (*GetRestrictiveQuotaResponse, error) // The EnumQuotas method returns all the directory quotas from the List of Persisted // Directory Quotas (section 3.2.1.2) that fall under the specified path. // // Return Values: The method MUST return zero on success, or a nonzero error code on // failure. // // +---------------------------------+----------------------------------------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +---------------------------------+----------------------------------------------------------------------------------+ // +---------------------------------+----------------------------------------------------------------------------------+ // | 0x80070057 E_INVALIDARG | The quotas parameter is NULL. | // +---------------------------------+----------------------------------------------------------------------------------+ // | 0x80045311 FSRM_E_NOT_SUPPORTED | The options parameter contains invalid FsrmEnumOptions (section 2.2.1.2.5) | // | | values. | // +---------------------------------+----------------------------------------------------------------------------------+ EnumQuotas(context.Context, *EnumQuotasRequest, ...dcerpc.CallOption) (*EnumQuotasResponse, error) // The EnumAutoApplyQuotas method returns all the auto apply quotas from the List of // Persisted Auto Apply Quotas (section 3.2.1.2) that fall under the specified path. // // Return Values: The method MUST return zero on success, or a nonzero error code on // failure. // // +---------------------------------+----------------------------------------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +---------------------------------+----------------------------------------------------------------------------------+ // +---------------------------------+----------------------------------------------------------------------------------+ // | 0x80070057 E_INVALIDARG | The quotas parameter is NULL. | // +---------------------------------+----------------------------------------------------------------------------------+ // | 0x80045311 FSRM_E_NOT_SUPPORTED | The options parameter contains invalid FsrmEnumOptions (section 2.2.1.2.5) | // | | values. | // +---------------------------------+----------------------------------------------------------------------------------+ EnumAutoApplyQuotas(context.Context, *EnumAutoApplyQuotasRequest, ...dcerpc.CallOption) (*EnumAutoApplyQuotasResponse, error) // The EnumEffectiveQuotas method returns all the directory quotas from the List of // Persisted Directory Quotas (section 3.2.1.2) that affect the specified path. // // Return Values: The method MUST return zero on success, or a nonzero error code on // failure. // // +---------------------------------+----------------------------------------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +---------------------------------+----------------------------------------------------------------------------------+ // +---------------------------------+----------------------------------------------------------------------------------+ // | 0x80070057 E_INVALIDARG | The quotas parameter is NULL. | // +---------------------------------+----------------------------------------------------------------------------------+ // | 0x80045311 FSRM_E_NOT_SUPPORTED | The options parameter contains invalid FsrmEnumOptions (section 2.2.1.2.5) | // | | values. | // +---------------------------------+----------------------------------------------------------------------------------+ EnumEffectiveQuotas(context.Context, *EnumEffectiveQuotasRequest, ...dcerpc.CallOption) (*EnumEffectiveQuotasResponse, error) // The Scan method starts a quota scan on the specified path. // // 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 | A quota for the specified path could not be found. | // +--------------------------------+----------------------------------------------------------------------------------+ // | 0x80045306 FSRM_E_INVALID_PATH | The content of the strPath parameter exceeds the maximum length of 260 | // | | characters. | // +--------------------------------+----------------------------------------------------------------------------------+ // | 0x80070057 E_INVALIDARG | The strPath parameter is NULL or empty. | // +--------------------------------+----------------------------------------------------------------------------------+ Scan(context.Context, *ScanRequest, ...dcerpc.CallOption) (*ScanResponse, error) // The CreateQuotaCollection method creates an empty collection for callers to add quotas // to. // // Return Values: The method MUST return zero on success, or a nonzero error code on // failure. // // +-------------------------+-----------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +-------------------------+-----------------------------------+ // +-------------------------+-----------------------------------+ // | 0x80070057 E_INVALIDARG | The collection parameter is NULL. | // +-------------------------+-----------------------------------+ CreateQuotaCollection(context.Context, *CreateQuotaCollectionRequest, ...dcerpc.CallOption) (*CreateQuotaCollectionResponse, error) // AlterContext alters the client context. AlterContext(context.Context, ...dcerpc.Option) error // Conn returns the client connection (unsafe) Conn() dcerpc.Conn // IPID sets the object interface identifier. IPID(context.Context, *dcom.IPID) QuotaManagerClient }
IFsrmQuotaManager interface.
func NewQuotaManagerClient ¶
type QuotaManagerServer ¶
type QuotaManagerServer interface { // IDispatch base class. idispatch.DispatchServer // ActionVariables operation. GetActionVariables(context.Context, *GetActionVariablesRequest) (*GetActionVariablesResponse, error) // ActionVariableDescriptions operation. GetActionVariableDescriptions(context.Context, *GetActionVariableDescriptionsRequest) (*GetActionVariableDescriptionsResponse, error) // The CreateQuota method creates a blank Non-Persisted Directory Quota Instance (section // 3.2.1.2.1.2) for the specified path. // // Return Values: The method MUST return zero on success, or a nonzero error code on // failure. // // +----------------------------------+--------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +----------------------------------+--------------------------------------------------+ // +----------------------------------+--------------------------------------------------+ // | 0x80045303 FSRM_E_ALREADY_EXISTS | The quota for the specified path already exists. | // +----------------------------------+--------------------------------------------------+ // | 0x80070057 E_INVALIDARG | One of the quota parameters is NULL. | // +----------------------------------+--------------------------------------------------+ CreateQuota(context.Context, *CreateQuotaRequest) (*CreateQuotaResponse, error) // The CreateAutoApplyQuota method creates a Non-Persisted Auto Apply Quota Instance // (section 3.2.1.2.2.2) for the specified path. // // 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 auto apply quota could not be found. | // +----------------------------------+-------------------------------------------------------------+ // | 0x80045303 FSRM_E_ALREADY_EXISTS | The auto apply quota for the specified path already exists. | // +----------------------------------+-------------------------------------------------------------+ // | 0x80070057 E_INVALIDARG | One of the quota parameters is NULL. | // +----------------------------------+-------------------------------------------------------------+ CreateAutoApplyQuota(context.Context, *CreateAutoApplyQuotaRequest) (*CreateAutoApplyQuotaResponse, error) // The GetQuota method returns the directory quota from the List of Persisted Directory // Quotas (section 3.2.1.2) for the specified path. // // 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 quota could not be found. | // +----------------------------------+----------------------------------------------------------------------------------+ // | 0x80045304 FSRM_E_PATH_NOT_FOUND | The quota for the specified path could not be found. | // +----------------------------------+----------------------------------------------------------------------------------+ // | 0x80045306 FSRM_E_INVALID_PATH | The content of the path parameter exceeds the maximum length of 4,000 | // | | characters. | // +----------------------------------+----------------------------------------------------------------------------------+ // | 0x80070057 E_INVALIDARG | This code is returned for the following reasons: The path parameter is NULL. The | // | | quota parameter is NULL. | // +----------------------------------+----------------------------------------------------------------------------------+ GetQuota(context.Context, *GetQuotaRequest) (*GetQuotaResponse, error) // The GetAutoApplyQuota method returns the auto apply quota from the List of Persisted // Auto Apply Quotas (section 3.2.1.2) for the specified path. // // 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 auto apply quota could not be found. | // +----------------------------------+----------------------------------------------------------------------------------+ // | 0x80045304 FSRM_E_PATH_NOT_FOUND | The auto apply quota for the specified path could not be found. | // +----------------------------------+----------------------------------------------------------------------------------+ // | 0x80045306 FSRM_E_INVALID_PATH | The content of the path parameter exceeds the maximum length of 260 characters. | // +----------------------------------+----------------------------------------------------------------------------------+ // | 0x80070057 E_INVALIDARG | This code is returned for the following reasons: The path parameter is NULL. The | // | | quota parameter is NULL. | // +----------------------------------+----------------------------------------------------------------------------------+ GetAutoApplyQuota(context.Context, *GetAutoApplyQuotaRequest) (*GetAutoApplyQuotaResponse, error) // The GetRestrictiveQuota method returns the directory quota from the List of Persisted // Directory Quotas (section 3.2.1.2) with the lowest quota limit for the specified // path. // // 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 quota could not be found. | // +----------------------------------+----------------------------------------------------------------------------------+ // | 0x80045304 FSRM_E_PATH_NOT_FOUND | The restrictive quota for the specified path could not be found. | // +----------------------------------+----------------------------------------------------------------------------------+ // | 0x80045306 FSRM_E_INVALID_PATH | The content of the path parameter exceeds the maximum length of 260 characters. | // +----------------------------------+----------------------------------------------------------------------------------+ // | 0x80070057 E_INVALIDARG | This code is returned for the following reasons: The path parameter is NULL. The | // | | quota parameter is NULL. | // +----------------------------------+----------------------------------------------------------------------------------+ GetRestrictiveQuota(context.Context, *GetRestrictiveQuotaRequest) (*GetRestrictiveQuotaResponse, error) // The EnumQuotas method returns all the directory quotas from the List of Persisted // Directory Quotas (section 3.2.1.2) that fall under the specified path. // // Return Values: The method MUST return zero on success, or a nonzero error code on // failure. // // +---------------------------------+----------------------------------------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +---------------------------------+----------------------------------------------------------------------------------+ // +---------------------------------+----------------------------------------------------------------------------------+ // | 0x80070057 E_INVALIDARG | The quotas parameter is NULL. | // +---------------------------------+----------------------------------------------------------------------------------+ // | 0x80045311 FSRM_E_NOT_SUPPORTED | The options parameter contains invalid FsrmEnumOptions (section 2.2.1.2.5) | // | | values. | // +---------------------------------+----------------------------------------------------------------------------------+ EnumQuotas(context.Context, *EnumQuotasRequest) (*EnumQuotasResponse, error) // The EnumAutoApplyQuotas method returns all the auto apply quotas from the List of // Persisted Auto Apply Quotas (section 3.2.1.2) that fall under the specified path. // // Return Values: The method MUST return zero on success, or a nonzero error code on // failure. // // +---------------------------------+----------------------------------------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +---------------------------------+----------------------------------------------------------------------------------+ // +---------------------------------+----------------------------------------------------------------------------------+ // | 0x80070057 E_INVALIDARG | The quotas parameter is NULL. | // +---------------------------------+----------------------------------------------------------------------------------+ // | 0x80045311 FSRM_E_NOT_SUPPORTED | The options parameter contains invalid FsrmEnumOptions (section 2.2.1.2.5) | // | | values. | // +---------------------------------+----------------------------------------------------------------------------------+ EnumAutoApplyQuotas(context.Context, *EnumAutoApplyQuotasRequest) (*EnumAutoApplyQuotasResponse, error) // The EnumEffectiveQuotas method returns all the directory quotas from the List of // Persisted Directory Quotas (section 3.2.1.2) that affect the specified path. // // Return Values: The method MUST return zero on success, or a nonzero error code on // failure. // // +---------------------------------+----------------------------------------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +---------------------------------+----------------------------------------------------------------------------------+ // +---------------------------------+----------------------------------------------------------------------------------+ // | 0x80070057 E_INVALIDARG | The quotas parameter is NULL. | // +---------------------------------+----------------------------------------------------------------------------------+ // | 0x80045311 FSRM_E_NOT_SUPPORTED | The options parameter contains invalid FsrmEnumOptions (section 2.2.1.2.5) | // | | values. | // +---------------------------------+----------------------------------------------------------------------------------+ EnumEffectiveQuotas(context.Context, *EnumEffectiveQuotasRequest) (*EnumEffectiveQuotasResponse, error) // The Scan method starts a quota scan on the specified path. // // 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 | A quota for the specified path could not be found. | // +--------------------------------+----------------------------------------------------------------------------------+ // | 0x80045306 FSRM_E_INVALID_PATH | The content of the strPath parameter exceeds the maximum length of 260 | // | | characters. | // +--------------------------------+----------------------------------------------------------------------------------+ // | 0x80070057 E_INVALIDARG | The strPath parameter is NULL or empty. | // +--------------------------------+----------------------------------------------------------------------------------+ Scan(context.Context, *ScanRequest) (*ScanResponse, error) // The CreateQuotaCollection method creates an empty collection for callers to add quotas // to. // // Return Values: The method MUST return zero on success, or a nonzero error code on // failure. // // +-------------------------+-----------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +-------------------------+-----------------------------------+ // +-------------------------+-----------------------------------+ // | 0x80070057 E_INVALIDARG | The collection parameter is NULL. | // +-------------------------+-----------------------------------+ CreateQuotaCollection(context.Context, *CreateQuotaCollectionRequest) (*CreateQuotaCollectionResponse, error) }
IFsrmQuotaManager server interface.
type ScanRequest ¶
type ScanRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` // strPath: Contains the path at which to start the quota scan. The maximum length of // this string MUST be 260 characters. Path *oaut.String `idl:"name:strPath" json:"path"` }
ScanRequest structure represents the Scan operation request
func (*ScanRequest) MarshalNDR ¶
func (*ScanRequest) UnmarshalNDR ¶
type ScanResponse ¶
type ScanResponse struct { // That: ORPCTHAT structure that is used to return ORPC extension data to the client. That *dcom.ORPCThat `idl:"name:That" json:"that"` // Return: The Scan return value. Return int32 `idl:"name:Return" json:"return"` }
ScanResponse structure represents the Scan operation response