Documentation ¶
Overview ¶
Package storage is for persistent storage and quota estimates, as well as the platform storage architecture.
Index ¶
- type PromiseStorageEstimate
- func (_this *PromiseStorageEstimate) Catch(onRejected *PromiseStorageEstimateOnRejected) (_result *PromiseStorageEstimate)
- func (_this *PromiseStorageEstimate) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseStorageEstimate)
- func (_this *PromiseStorageEstimate) JSValue() js.Value
- func (_this *PromiseStorageEstimate) Then(onFulfilled *PromiseStorageEstimateOnFulfilled, ...) (_result *PromiseStorageEstimate)
- type PromiseStorageEstimateOnFulfilled
- type PromiseStorageEstimateOnFulfilledFunc
- type PromiseStorageEstimateOnRejected
- type PromiseStorageEstimateOnRejectedFunc
- type StorageEstimate
- type StorageManager
- type Union
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PromiseStorageEstimate ¶
type PromiseStorageEstimate struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: Promise
func PromiseStorageEstimateFromJS ¶
func PromiseStorageEstimateFromJS(value js.Wrapper) *PromiseStorageEstimate
PromiseStorageEstimateFromJS is casting a js.Wrapper into PromiseStorageEstimate.
func (*PromiseStorageEstimate) Catch ¶
func (_this *PromiseStorageEstimate) Catch(onRejected *PromiseStorageEstimateOnRejected) (_result *PromiseStorageEstimate)
func (*PromiseStorageEstimate) Finally ¶
func (_this *PromiseStorageEstimate) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseStorageEstimate)
func (*PromiseStorageEstimate) JSValue ¶
func (_this *PromiseStorageEstimate) JSValue() js.Value
func (*PromiseStorageEstimate) Then ¶
func (_this *PromiseStorageEstimate) Then(onFulfilled *PromiseStorageEstimateOnFulfilled, onRejected *PromiseStorageEstimateOnRejected) (_result *PromiseStorageEstimate)
type PromiseStorageEstimateOnFulfilled ¶
PromiseStorageEstimateOnFulfilled is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseStorageEstimateOnFulfilledToJS ¶
func PromiseStorageEstimateOnFulfilledToJS(callback PromiseStorageEstimateOnFulfilledFunc) *PromiseStorageEstimateOnFulfilled
type PromiseStorageEstimateOnFulfilledFunc ¶
type PromiseStorageEstimateOnFulfilledFunc func(value *StorageEstimate)
callback: PromiseTemplateOnFulfilled
func PromiseStorageEstimateOnFulfilledFromJS ¶
func PromiseStorageEstimateOnFulfilledFromJS(_value js.Value) PromiseStorageEstimateOnFulfilledFunc
type PromiseStorageEstimateOnRejected ¶
PromiseStorageEstimateOnRejected is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseStorageEstimateOnRejectedToJS ¶
func PromiseStorageEstimateOnRejectedToJS(callback PromiseStorageEstimateOnRejectedFunc) *PromiseStorageEstimateOnRejected
type PromiseStorageEstimateOnRejectedFunc ¶
callback: PromiseTemplateOnRejected
func PromiseStorageEstimateOnRejectedFromJS ¶
func PromiseStorageEstimateOnRejectedFromJS(_value js.Value) PromiseStorageEstimateOnRejectedFunc
type StorageEstimate ¶
dictionary: StorageEstimate
func StorageEstimateFromJS ¶
func StorageEstimateFromJS(value js.Wrapper) *StorageEstimate
StorageEstimateFromJS is allocating a new StorageEstimate object and copy all values from input javascript object
func (*StorageEstimate) JSValue ¶
func (_this *StorageEstimate) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type StorageManager ¶
type StorageManager struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: StorageManager
func StorageManagerFromJS ¶
func StorageManagerFromJS(value js.Wrapper) *StorageManager
StorageManagerFromJS is casting a js.Wrapper into StorageManager.
func (*StorageManager) Estimate ¶
func (_this *StorageManager) Estimate() (_result *PromiseStorageEstimate)
func (*StorageManager) JSValue ¶
func (_this *StorageManager) JSValue() js.Value
func (*StorageManager) Persist ¶
func (_this *StorageManager) Persist() (_result *javascript.PromiseBool)
func (*StorageManager) Persisted ¶
func (_this *StorageManager) Persisted() (_result *javascript.PromiseBool)