storage

package
v0.0.0-...-41cedfc Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: BSD-3-Clause Imports: 3 Imported by: 2

Documentation

Overview

Package storage is for persistent storage and quota estimates, as well as the platform storage architecture.

Index

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.Value) *PromiseStorageEstimate

PromiseStorageEstimateFromJS is casting a js.Value into PromiseStorageEstimate.

func PromiseStorageEstimateFromWrapper

func PromiseStorageEstimateFromWrapper(input core.Wrapper) *PromiseStorageEstimate

PromiseStorageEstimateFromJS is casting from something that holds a js.Value into PromiseStorageEstimate.

func (*PromiseStorageEstimate) Catch

func (*PromiseStorageEstimate) Finally

func (_this *PromiseStorageEstimate) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseStorageEstimate)

func (*PromiseStorageEstimate) JSValue

func (_this *PromiseStorageEstimate) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*PromiseStorageEstimate) Then

type PromiseStorageEstimateOnFulfilled

type PromiseStorageEstimateOnFulfilled js.Func

PromiseStorageEstimateOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

type PromiseStorageEstimateOnFulfilledFunc

type PromiseStorageEstimateOnFulfilledFunc func(value *StorageEstimate)

callback: PromiseTemplateOnFulfilled

func PromiseStorageEstimateOnFulfilledFromJS

func PromiseStorageEstimateOnFulfilledFromJS(_value js.Value) PromiseStorageEstimateOnFulfilledFunc

type PromiseStorageEstimateOnRejected

type PromiseStorageEstimateOnRejected js.Func

PromiseStorageEstimateOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

type PromiseStorageEstimateOnRejectedFunc

type PromiseStorageEstimateOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseStorageEstimateOnRejectedFromJS

func PromiseStorageEstimateOnRejectedFromJS(_value js.Value) PromiseStorageEstimateOnRejectedFunc

type StorageEstimate

type StorageEstimate struct {
	Usage int
	Quota int
}

dictionary: StorageEstimate

func StorageEstimateFromJS

func StorageEstimateFromJS(value js.Value) *StorageEstimate

StorageEstimateFromJS is allocating a new StorageEstimate object and copy all values in the value javascript object.

func (*StorageEstimate) JSValue

func (_this *StorageEstimate) JSValue() js.Value

JSValue is allocating a new javascript 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.Value) *StorageManager

StorageManagerFromJS is casting a js.Value into StorageManager.

func StorageManagerFromWrapper

func StorageManagerFromWrapper(input core.Wrapper) *StorageManager

StorageManagerFromJS is casting from something that holds a js.Value into StorageManager.

func (*StorageManager) Estimate

func (_this *StorageManager) Estimate() (_result *PromiseStorageEstimate)

func (*StorageManager) JSValue

func (_this *StorageManager) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*StorageManager) Persist

func (_this *StorageManager) Persist() (_result *javascript.PromiseBool)

func (*StorageManager) Persisted

func (_this *StorageManager) Persisted() (_result *javascript.PromiseBool)

type Union

type Union struct {
	Value js.Value
}

func UnionFromJS

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue

func (u *Union) JSValue() js.Value

Jump to

Keyboard shortcuts

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