ifsrmquota

package
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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}
)
View Source
var (
	// import guard
	GoPackage = "dcom/fsrm"
)

Functions

func NewQuotaServerHandle

func NewQuotaServerHandle(o QuotaServer) dcerpc.ServerHandle

func QuotaServerHandle

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

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 (o *GetQuotaPeakUsageRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*GetQuotaPeakUsageRequest) UnmarshalNDR

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

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 (o *GetQuotaPeakUsageResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*GetQuotaPeakUsageResponse) UnmarshalNDR

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

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

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

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

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

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 (o *GetQuotaUsedRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*GetQuotaUsedRequest) UnmarshalNDR

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

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 (o *GetQuotaUsedResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*GetQuotaUsedResponse) UnmarshalNDR

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

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

func NewQuotaClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (QuotaClient, error)

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

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

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 (o *ResetPeakUsageRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ResetPeakUsageRequest) UnmarshalNDR

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

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

func (*ResetPeakUsageResponse) MarshalNDR

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

func (*ResetPeakUsageResponse) UnmarshalNDR

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

type UnimplementedQuotaServer added in v1.1.5

type UnimplementedQuotaServer struct {
	ifsrmquotaobject.UnimplementedQuotaObjectServer
}

Unimplemented IFsrmQuota

func (UnimplementedQuotaServer) GetQuotaPeakUsage added in v1.1.5

func (UnimplementedQuotaServer) GetQuotaPeakUsageTime added in v1.1.5

func (UnimplementedQuotaServer) GetQuotaUsed added in v1.1.5

func (UnimplementedQuotaServer) RefreshUsageProperties added in v1.1.5

func (UnimplementedQuotaServer) ResetPeakUsage added in v1.1.5

Jump to

Keyboard shortcuts

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