storage

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const CacheStorageContentUpdatedEvent = "Storage.cacheStorageContentUpdated"

A cache's contents have been modified.

View Source
const CacheStorageListUpdatedEvent = "Storage.cacheStorageListUpdated"

A cache has been added/deleted.

View Source
const ClearDataForOrigin = "Storage.clearDataForOrigin"

Clears storage for origin.

View Source
const GetUsageAndQuota = "Storage.getUsageAndQuota"

Returns usage and quota in bytes.

View Source
const IndexedDBContentUpdatedEvent = "Storage.indexedDBContentUpdated"

The origin's IndexedDB object store has been modified.

View Source
const IndexedDBListUpdatedEvent = "Storage.indexedDBListUpdated"

The origin's IndexedDB database list has been modified.

View Source
const TrackCacheStorageForOrigin = "Storage.trackCacheStorageForOrigin"

Registers origin to be notified when an update occurs to its cache storage list.

View Source
const TrackIndexedDBForOrigin = "Storage.trackIndexedDBForOrigin"

Registers origin to be notified when an update occurs to its IndexedDB.

View Source
const UntrackCacheStorageForOrigin = "Storage.untrackCacheStorageForOrigin"

Unregisters origin from receiving notifications for cache storage.

View Source
const UntrackIndexedDBForOrigin = "Storage.untrackIndexedDBForOrigin"

Unregisters origin from receiving notifications for IndexedDB.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheStorageContentUpdatedParams

type CacheStorageContentUpdatedParams struct {

	// Origin to update.
	Origin string
	// Name of cache in origin.
	CacheName string
}

type CacheStorageListUpdatedParams

type CacheStorageListUpdatedParams struct {

	// Origin to update.
	Origin string
}

type ClearDataForOriginParams

type ClearDataForOriginParams struct {

	// Security origin.
	Origin string `json:"origin"`

	// Comma separated list of StorageType to clear.
	StorageTypes string `json:"storageTypes"`
}

type ClearDataForOriginResult

type ClearDataForOriginResult struct {
}

type GetUsageAndQuotaParams

type GetUsageAndQuotaParams struct {

	// Security origin.
	Origin string `json:"origin"`
}

type GetUsageAndQuotaResult

type GetUsageAndQuotaResult struct {

	// Storage usage (bytes).
	Usage float64 `json:"usage"`
	// Storage quota (bytes).
	Quota float64 `json:"quota"`
	// Storage usage per type (bytes).
	UsageBreakdown []*UsageForType `json:"usageBreakdown"`
}

type IndexedDBContentUpdatedParams

type IndexedDBContentUpdatedParams struct {

	// Origin to update.
	Origin string
	// Database to update.
	DatabaseName string
	// ObjectStore to update.
	ObjectStoreName string
}

type IndexedDBListUpdatedParams

type IndexedDBListUpdatedParams struct {

	// Origin to update.
	Origin string
}

type StorageType

type StorageType string

Enum of possible storage types.

type TrackCacheStorageForOriginParams

type TrackCacheStorageForOriginParams struct {

	// Security origin.
	Origin string `json:"origin"`
}

type TrackCacheStorageForOriginResult

type TrackCacheStorageForOriginResult struct {
}

type TrackIndexedDBForOriginParams

type TrackIndexedDBForOriginParams struct {

	// Security origin.
	Origin string `json:"origin"`
}

type TrackIndexedDBForOriginResult

type TrackIndexedDBForOriginResult struct {
}

type UntrackCacheStorageForOriginParams

type UntrackCacheStorageForOriginParams struct {

	// Security origin.
	Origin string `json:"origin"`
}

type UntrackCacheStorageForOriginResult

type UntrackCacheStorageForOriginResult struct {
}

type UntrackIndexedDBForOriginParams

type UntrackIndexedDBForOriginParams struct {

	// Security origin.
	Origin string `json:"origin"`
}

type UntrackIndexedDBForOriginResult

type UntrackIndexedDBForOriginResult struct {
}

type UsageForType

type UsageForType struct {

	// Name of storage type.
	StorageType StorageType `json:"storageType"`

	// Storage usage (bytes).
	Usage float64 `json:"usage"`
}

Usage for a storage type.

Jump to

Keyboard shortcuts

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