Documentation ¶
Index ¶
- Variables
- func NewQuotaServerHandle(o QuotaServer) dcerpc.ServerHandle
- func QuotaServerHandle(ctx context.Context, o QuotaServer, opNum int, r ndr.Reader) (dcerpc.Operation, error)
- func RegisterQuotaServer(conn dcerpc.Conn, o QuotaServer, opts ...dcerpc.Option)
- type GetQuotaPeakUsageRequest
- type GetQuotaPeakUsageResponse
- type GetQuotaPeakUsageTimeRequest
- type GetQuotaPeakUsageTimeResponse
- type GetQuotaUsedRequest
- type GetQuotaUsedResponse
- type QuotaClient
- type QuotaServer
- type RefreshUsagePropertiesRequest
- type RefreshUsagePropertiesResponse
- type ResetPeakUsageRequest
- type ResetPeakUsageResponse
Constants ¶
This section is empty.
Variables ¶
var ( // IFsrmQuota interface identifier 377f739d-9647-4b8e-97d2-5ffce6d759cd QuotaIID = &dcom.IID{Data1: 0x377f739d, Data2: 0x9647, Data3: 0x4b8e, Data4: []byte{0x97, 0xd2, 0x5f, 0xfc, 0xe6, 0xd7, 0x59, 0xcd}} // Syntax UUID QuotaSyntaxUUID = &uuid.UUID{TimeLow: 0x377f739d, TimeMid: 0x9647, TimeHiAndVersion: 0x4b8e, ClockSeqHiAndReserved: 0x97, ClockSeqLow: 0xd2, Node: [6]uint8{0x5f, 0xfc, 0xe6, 0xd7, 0x59, 0xcd}} // Syntax ID QuotaSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: QuotaSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0} )
var (
// import guard
GoPackage = "dcom/fsrm"
)
Functions ¶
func NewQuotaServerHandle ¶
func NewQuotaServerHandle(o QuotaServer) dcerpc.ServerHandle
func QuotaServerHandle ¶
func RegisterQuotaServer ¶
func RegisterQuotaServer(conn dcerpc.Conn, o QuotaServer, opts ...dcerpc.Option)
Types ¶
type GetQuotaPeakUsageRequest ¶
type GetQuotaPeakUsageRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` }
GetQuotaPeakUsageRequest structure represents the QuotaPeakUsage operation request
func (*GetQuotaPeakUsageRequest) MarshalNDR ¶
func (*GetQuotaPeakUsageRequest) UnmarshalNDR ¶
type GetQuotaPeakUsageResponse ¶
type GetQuotaPeakUsageResponse struct { // That: ORPCTHAT structure that is used to return ORPC extension data to the client. That *dcom.ORPCThat `idl:"name:That" json:"that"` // peakUsage: Pointer to a variable that upon completion contains the peak quota usage // of this quota. PeakUsage *oaut.Variant `idl:"name:peakUsage" json:"peak_usage"` // Return: The QuotaPeakUsage return value. Return int32 `idl:"name:Return" json:"return"` }
GetQuotaPeakUsageResponse structure represents the QuotaPeakUsage operation response
func (*GetQuotaPeakUsageResponse) MarshalNDR ¶
func (*GetQuotaPeakUsageResponse) UnmarshalNDR ¶
type GetQuotaPeakUsageTimeRequest ¶
type GetQuotaPeakUsageTimeRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` }
GetQuotaPeakUsageTimeRequest structure represents the QuotaPeakUsageTime operation request
func (*GetQuotaPeakUsageTimeRequest) MarshalNDR ¶
func (*GetQuotaPeakUsageTimeRequest) UnmarshalNDR ¶
type GetQuotaPeakUsageTimeResponse ¶
type GetQuotaPeakUsageTimeResponse struct { // That: ORPCTHAT structure that is used to return ORPC extension data to the client. That *dcom.ORPCThat `idl:"name:That" json:"that"` // peakUsageDateTime: Pointer to a variable that upon completion contains peak quota // usage time stamp of this quota. PeakUsageDateTime float64 `idl:"name:peakUsageDateTime" json:"peak_usage_date_time"` // Return: The QuotaPeakUsageTime return value. Return int32 `idl:"name:Return" json:"return"` }
GetQuotaPeakUsageTimeResponse structure represents the QuotaPeakUsageTime operation response
func (*GetQuotaPeakUsageTimeResponse) MarshalNDR ¶
func (*GetQuotaPeakUsageTimeResponse) UnmarshalNDR ¶
type GetQuotaUsedRequest ¶
type GetQuotaUsedRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` }
GetQuotaUsedRequest structure represents the QuotaUsed operation request
func (*GetQuotaUsedRequest) MarshalNDR ¶
func (*GetQuotaUsedRequest) UnmarshalNDR ¶
type GetQuotaUsedResponse ¶
type GetQuotaUsedResponse struct { // That: ORPCTHAT structure that is used to return ORPC extension data to the client. That *dcom.ORPCThat `idl:"name:That" json:"that"` // used: Pointer to a variable, which upon completion, contains the quota usage for // this quota. Used *oaut.Variant `idl:"name:used" json:"used"` // Return: The QuotaUsed return value. Return int32 `idl:"name:Return" json:"return"` }
GetQuotaUsedResponse structure represents the QuotaUsed operation response
func (*GetQuotaUsedResponse) MarshalNDR ¶
func (*GetQuotaUsedResponse) UnmarshalNDR ¶
type QuotaClient ¶
type QuotaClient interface { // IFsrmQuotaObject retrieval method. QuotaObject() ifsrmquotaobject.QuotaObjectClient // The QuotaUsed (get) method returns the current, read-only quota usage for this quota. // // Return Values: The method MUST return zero on success, or a nonzero error code on // failure. // // +-------------------------+-----------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +-------------------------+-----------------------------+ // +-------------------------+-----------------------------+ // | 0x80070057 E_INVALIDARG | The used parameter is NULL. | // +-------------------------+-----------------------------+ GetQuotaUsed(context.Context, *GetQuotaUsedRequest, ...dcerpc.CallOption) (*GetQuotaUsedResponse, error) // The QuotaPeakUsage (get) method returns the peak quota usage of this quota. // // Return Values: The method MUST return zero on success, or a nonzero error code on // failure. // // +-------------------------+----------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +-------------------------+----------------------------------+ // +-------------------------+----------------------------------+ // | 0x80070057 E_INVALIDARG | The peakUsage parameter is NULL. | // +-------------------------+----------------------------------+ GetQuotaPeakUsage(context.Context, *GetQuotaPeakUsageRequest, ...dcerpc.CallOption) (*GetQuotaPeakUsageResponse, error) // The QuotaPeakUsageTime (get) method returns the peak quota usage time stamp of this // quota. // // Return Values: The method MUST return zero on success, or a nonzero error code on // failure. // // +-------------------------+------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +-------------------------+------------------------------------------+ // +-------------------------+------------------------------------------+ // | 0x80070057 E_INVALIDARG | The peakUsageDateTime parameter is NULL. | // +-------------------------+------------------------------------------+ GetQuotaPeakUsageTime(context.Context, *GetQuotaPeakUsageTimeRequest, ...dcerpc.CallOption) (*GetQuotaPeakUsageTimeResponse, error) // The ResetPeakUsage method resets the peak quota usage of this quota to zero and returns // S_OK upon successful completion. // // This method has no parameters. // // Return Values: The method MUST return zero on success, or a nonzero error code on // failure. // // There are no parameters for this method. ResetPeakUsage(context.Context, *ResetPeakUsageRequest, ...dcerpc.CallOption) (*ResetPeakUsageResponse, error) // The RefreshUsageProperties method refreshes the quota usage information for the caller's // copy of the object. // // This method has no parameters. // // 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. | // +-----------------------------+-----------------------------------------+ // // There are no parameters for this method. // // If no Persisted Directory Quota exists that has the same Directory Quota.Folder path // property as Non-Persisted Directory Quota Instance, the server MUST return FSRM_E_NOT_FOUND. // // Otherwise, the server MUST reset the quota usage, quota peak usage, and quota peak // usage time of the Non-Persisted Directory Quota Instance to the current values stored // in the corresponding properties of the Persisted Directory Quota that has the same // Directory Quota.Folder path property as this Non-Persisted Directory Quota Instance. RefreshUsageProperties(context.Context, *RefreshUsagePropertiesRequest, ...dcerpc.CallOption) (*RefreshUsagePropertiesResponse, 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) QuotaClient }
IFsrmQuota interface.
func NewQuotaClient ¶
type QuotaServer ¶
type QuotaServer interface { // IFsrmQuotaObject base class. ifsrmquotaobject.QuotaObjectServer // The QuotaUsed (get) method returns the current, read-only quota usage for this quota. // // Return Values: The method MUST return zero on success, or a nonzero error code on // failure. // // +-------------------------+-----------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +-------------------------+-----------------------------+ // +-------------------------+-----------------------------+ // | 0x80070057 E_INVALIDARG | The used parameter is NULL. | // +-------------------------+-----------------------------+ GetQuotaUsed(context.Context, *GetQuotaUsedRequest) (*GetQuotaUsedResponse, error) // The QuotaPeakUsage (get) method returns the peak quota usage of this quota. // // Return Values: The method MUST return zero on success, or a nonzero error code on // failure. // // +-------------------------+----------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +-------------------------+----------------------------------+ // +-------------------------+----------------------------------+ // | 0x80070057 E_INVALIDARG | The peakUsage parameter is NULL. | // +-------------------------+----------------------------------+ GetQuotaPeakUsage(context.Context, *GetQuotaPeakUsageRequest) (*GetQuotaPeakUsageResponse, error) // The QuotaPeakUsageTime (get) method returns the peak quota usage time stamp of this // quota. // // Return Values: The method MUST return zero on success, or a nonzero error code on // failure. // // +-------------------------+------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +-------------------------+------------------------------------------+ // +-------------------------+------------------------------------------+ // | 0x80070057 E_INVALIDARG | The peakUsageDateTime parameter is NULL. | // +-------------------------+------------------------------------------+ GetQuotaPeakUsageTime(context.Context, *GetQuotaPeakUsageTimeRequest) (*GetQuotaPeakUsageTimeResponse, error) // The ResetPeakUsage method resets the peak quota usage of this quota to zero and returns // S_OK upon successful completion. // // This method has no parameters. // // Return Values: The method MUST return zero on success, or a nonzero error code on // failure. // // There are no parameters for this method. ResetPeakUsage(context.Context, *ResetPeakUsageRequest) (*ResetPeakUsageResponse, error) // The RefreshUsageProperties method refreshes the quota usage information for the caller's // copy of the object. // // This method has no parameters. // // 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. | // +-----------------------------+-----------------------------------------+ // // There are no parameters for this method. // // If no Persisted Directory Quota exists that has the same Directory Quota.Folder path // property as Non-Persisted Directory Quota Instance, the server MUST return FSRM_E_NOT_FOUND. // // Otherwise, the server MUST reset the quota usage, quota peak usage, and quota peak // usage time of the Non-Persisted Directory Quota Instance to the current values stored // in the corresponding properties of the Persisted Directory Quota that has the same // Directory Quota.Folder path property as this Non-Persisted Directory Quota Instance. RefreshUsageProperties(context.Context, *RefreshUsagePropertiesRequest) (*RefreshUsagePropertiesResponse, error) }
IFsrmQuota server interface.
type RefreshUsagePropertiesRequest ¶
type RefreshUsagePropertiesRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` }
RefreshUsagePropertiesRequest structure represents the RefreshUsageProperties operation request
func (*RefreshUsagePropertiesRequest) MarshalNDR ¶
func (*RefreshUsagePropertiesRequest) UnmarshalNDR ¶
type RefreshUsagePropertiesResponse ¶
type RefreshUsagePropertiesResponse 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 RefreshUsageProperties return value. Return int32 `idl:"name:Return" json:"return"` }
RefreshUsagePropertiesResponse structure represents the RefreshUsageProperties operation response
func (*RefreshUsagePropertiesResponse) MarshalNDR ¶
func (*RefreshUsagePropertiesResponse) UnmarshalNDR ¶
type ResetPeakUsageRequest ¶
type ResetPeakUsageRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` }
ResetPeakUsageRequest structure represents the ResetPeakUsage operation request
func (*ResetPeakUsageRequest) MarshalNDR ¶
func (*ResetPeakUsageRequest) UnmarshalNDR ¶
type ResetPeakUsageResponse ¶
type ResetPeakUsageResponse 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 ResetPeakUsage return value. Return int32 `idl:"name:Return" json:"return"` }
ResetPeakUsageResponse structure represents the ResetPeakUsage operation response