webapi: github.com/gowebapi/webapi/storage Index | Files

package storage

import "github.com/gowebapi/webapi/storage"

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

Index

Package Files

doc.go storage.go

type PromiseStorageEstimate Uses

type PromiseStorageEstimate struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: Promise

func PromiseStorageEstimateFromJS Uses

func PromiseStorageEstimateFromJS(value js.Wrapper) *PromiseStorageEstimate

PromiseStorageEstimateFromJS is casting a js.Wrapper into PromiseStorageEstimate.

func (*PromiseStorageEstimate) Catch Uses

func (_this *PromiseStorageEstimate) Catch(onRejected *PromiseStorageEstimateOnRejected) (_result *PromiseStorageEstimate)

func (*PromiseStorageEstimate) Finally Uses

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

func (*PromiseStorageEstimate) JSValue Uses

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

func (*PromiseStorageEstimate) Then Uses

func (_this *PromiseStorageEstimate) Then(onFulfilled *PromiseStorageEstimateOnFulfilled, onRejected *PromiseStorageEstimateOnRejected) (_result *PromiseStorageEstimate)

type PromiseStorageEstimateOnFulfilled Uses

type PromiseStorageEstimateOnFulfilled js.Func

PromiseStorageEstimateOnFulfilled is a javascript function type.

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

func PromiseStorageEstimateOnFulfilledToJS Uses

func PromiseStorageEstimateOnFulfilledToJS(callback PromiseStorageEstimateOnFulfilledFunc) *PromiseStorageEstimateOnFulfilled

type PromiseStorageEstimateOnFulfilledFunc Uses

type PromiseStorageEstimateOnFulfilledFunc func(value *StorageEstimate)

callback: PromiseTemplateOnFulfilled

func PromiseStorageEstimateOnFulfilledFromJS Uses

func PromiseStorageEstimateOnFulfilledFromJS(_value js.Value) PromiseStorageEstimateOnFulfilledFunc

type PromiseStorageEstimateOnRejected Uses

type PromiseStorageEstimateOnRejected js.Func

PromiseStorageEstimateOnRejected is a javascript function type.

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

func PromiseStorageEstimateOnRejectedToJS Uses

func PromiseStorageEstimateOnRejectedToJS(callback PromiseStorageEstimateOnRejectedFunc) *PromiseStorageEstimateOnRejected

type PromiseStorageEstimateOnRejectedFunc Uses

type PromiseStorageEstimateOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseStorageEstimateOnRejectedFromJS Uses

func PromiseStorageEstimateOnRejectedFromJS(_value js.Value) PromiseStorageEstimateOnRejectedFunc

type StorageEstimate Uses

type StorageEstimate struct {
    Usage int
    Quota int
}

dictionary: StorageEstimate

func StorageEstimateFromJS Uses

func StorageEstimateFromJS(value js.Wrapper) *StorageEstimate

StorageEstimateFromJS is allocating a new StorageEstimate object and copy all values from input javascript object

func (*StorageEstimate) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type StorageManager Uses

type StorageManager struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: StorageManager

func StorageManagerFromJS Uses

func StorageManagerFromJS(value js.Wrapper) *StorageManager

StorageManagerFromJS is casting a js.Wrapper into StorageManager.

func (*StorageManager) Estimate Uses

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

func (*StorageManager) JSValue Uses

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

func (*StorageManager) Persist Uses

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

func (*StorageManager) Persisted Uses

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

type Union Uses

type Union struct {
    Value js.Value
}

func UnionFromJS Uses

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue Uses

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

Package storage imports 2 packages (graph) and is imported by 2 packages. Updated 2019-09-16. Refresh now. Tools for package owners.