storage

package
v0.0.0-...-aded332 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2020 License: BSD-3-Clause Imports: 2 Imported by: 0

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

PromiseStorageEstimateFromJS is casting a js.Wrapper 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

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.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)

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