Documentation ¶
Overview ¶
Package storage provides the Chrome DevTools Protocol commands, types, and events for the Storage domain.
Generated by the cdproto-gen command.
Index ¶
- Constants
- type ClearDataForOriginParams
- func (p *ClearDataForOriginParams) Do(ctxt context.Context, h cdp.Executor) (err error)
- func (v ClearDataForOriginParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v ClearDataForOriginParams) MarshalJSON() ([]byte, error)
- func (v *ClearDataForOriginParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *ClearDataForOriginParams) UnmarshalJSON(data []byte) error
- type EventCacheStorageContentUpdated
- type EventCacheStorageListUpdated
- type EventIndexedDBContentUpdated
- type EventIndexedDBListUpdated
- type GetUsageAndQuotaParams
- func (p *GetUsageAndQuotaParams) Do(ctxt context.Context, h cdp.Executor) (usage float64, quota float64, usageBreakdown []*UsageForType, err error)
- func (v GetUsageAndQuotaParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetUsageAndQuotaParams) MarshalJSON() ([]byte, error)
- func (v *GetUsageAndQuotaParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetUsageAndQuotaParams) UnmarshalJSON(data []byte) error
- type GetUsageAndQuotaReturns
- type TrackCacheStorageForOriginParams
- func (p *TrackCacheStorageForOriginParams) Do(ctxt context.Context, h cdp.Executor) (err error)
- func (v TrackCacheStorageForOriginParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v TrackCacheStorageForOriginParams) MarshalJSON() ([]byte, error)
- func (v *TrackCacheStorageForOriginParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *TrackCacheStorageForOriginParams) UnmarshalJSON(data []byte) error
- type TrackIndexedDBForOriginParams
- func (p *TrackIndexedDBForOriginParams) Do(ctxt context.Context, h cdp.Executor) (err error)
- func (v TrackIndexedDBForOriginParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v TrackIndexedDBForOriginParams) MarshalJSON() ([]byte, error)
- func (v *TrackIndexedDBForOriginParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *TrackIndexedDBForOriginParams) UnmarshalJSON(data []byte) error
- type Type
- type UntrackCacheStorageForOriginParams
- func (p *UntrackCacheStorageForOriginParams) Do(ctxt context.Context, h cdp.Executor) (err error)
- func (v UntrackCacheStorageForOriginParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v UntrackCacheStorageForOriginParams) MarshalJSON() ([]byte, error)
- func (v *UntrackCacheStorageForOriginParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *UntrackCacheStorageForOriginParams) UnmarshalJSON(data []byte) error
- type UntrackIndexedDBForOriginParams
- func (p *UntrackIndexedDBForOriginParams) Do(ctxt context.Context, h cdp.Executor) (err error)
- func (v UntrackIndexedDBForOriginParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v UntrackIndexedDBForOriginParams) MarshalJSON() ([]byte, error)
- func (v *UntrackIndexedDBForOriginParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *UntrackIndexedDBForOriginParams) UnmarshalJSON(data []byte) error
- type UsageForType
Constants ¶
const ( CommandClearDataForOrigin = "Storage.clearDataForOrigin" CommandGetUsageAndQuota = "Storage.getUsageAndQuota" CommandTrackCacheStorageForOrigin = "Storage.trackCacheStorageForOrigin" CommandTrackIndexedDBForOrigin = "Storage.trackIndexedDBForOrigin" CommandUntrackCacheStorageForOrigin = "Storage.untrackCacheStorageForOrigin" CommandUntrackIndexedDBForOrigin = "Storage.untrackIndexedDBForOrigin" )
Command names.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClearDataForOriginParams ¶
type ClearDataForOriginParams struct { Origin string `json:"origin"` // Security origin. StorageTypes string `json:"storageTypes"` // Comma separated list of StorageType to clear. }
ClearDataForOriginParams clears storage for origin.
func ClearDataForOrigin ¶
func ClearDataForOrigin(origin string, storageTypes string) *ClearDataForOriginParams
ClearDataForOrigin clears storage for origin.
parameters:
origin - Security origin. storageTypes - Comma separated list of StorageType to clear.
func (*ClearDataForOriginParams) Do ¶
Do executes Storage.clearDataForOrigin against the provided context.
func (ClearDataForOriginParams) MarshalEasyJSON ¶
func (v ClearDataForOriginParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ClearDataForOriginParams) MarshalJSON ¶
func (v ClearDataForOriginParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ClearDataForOriginParams) UnmarshalEasyJSON ¶
func (v *ClearDataForOriginParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ClearDataForOriginParams) UnmarshalJSON ¶
func (v *ClearDataForOriginParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventCacheStorageContentUpdated ¶
type EventCacheStorageContentUpdated struct { Origin string `json:"origin"` // Origin to update. CacheName string `json:"cacheName"` // Name of cache in origin. }
EventCacheStorageContentUpdated a cache's contents have been modified.
func (EventCacheStorageContentUpdated) MarshalEasyJSON ¶
func (v EventCacheStorageContentUpdated) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventCacheStorageContentUpdated) MarshalJSON ¶
func (v EventCacheStorageContentUpdated) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventCacheStorageContentUpdated) UnmarshalEasyJSON ¶
func (v *EventCacheStorageContentUpdated) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventCacheStorageContentUpdated) UnmarshalJSON ¶
func (v *EventCacheStorageContentUpdated) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventCacheStorageListUpdated ¶
type EventCacheStorageListUpdated struct {
Origin string `json:"origin"` // Origin to update.
}
EventCacheStorageListUpdated a cache has been added/deleted.
func (EventCacheStorageListUpdated) MarshalEasyJSON ¶
func (v EventCacheStorageListUpdated) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventCacheStorageListUpdated) MarshalJSON ¶
func (v EventCacheStorageListUpdated) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventCacheStorageListUpdated) UnmarshalEasyJSON ¶
func (v *EventCacheStorageListUpdated) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventCacheStorageListUpdated) UnmarshalJSON ¶
func (v *EventCacheStorageListUpdated) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventIndexedDBContentUpdated ¶
type EventIndexedDBContentUpdated struct { Origin string `json:"origin"` // Origin to update. DatabaseName string `json:"databaseName"` // Database to update. ObjectStoreName string `json:"objectStoreName"` // ObjectStore to update. }
EventIndexedDBContentUpdated the origin's IndexedDB object store has been modified.
func (EventIndexedDBContentUpdated) MarshalEasyJSON ¶
func (v EventIndexedDBContentUpdated) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventIndexedDBContentUpdated) MarshalJSON ¶
func (v EventIndexedDBContentUpdated) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventIndexedDBContentUpdated) UnmarshalEasyJSON ¶
func (v *EventIndexedDBContentUpdated) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventIndexedDBContentUpdated) UnmarshalJSON ¶
func (v *EventIndexedDBContentUpdated) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventIndexedDBListUpdated ¶
type EventIndexedDBListUpdated struct {
Origin string `json:"origin"` // Origin to update.
}
EventIndexedDBListUpdated the origin's IndexedDB database list has been modified.
func (EventIndexedDBListUpdated) MarshalEasyJSON ¶
func (v EventIndexedDBListUpdated) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventIndexedDBListUpdated) MarshalJSON ¶
func (v EventIndexedDBListUpdated) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventIndexedDBListUpdated) UnmarshalEasyJSON ¶
func (v *EventIndexedDBListUpdated) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventIndexedDBListUpdated) UnmarshalJSON ¶
func (v *EventIndexedDBListUpdated) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetUsageAndQuotaParams ¶
type GetUsageAndQuotaParams struct {
Origin string `json:"origin"` // Security origin.
}
GetUsageAndQuotaParams returns usage and quota in bytes.
func GetUsageAndQuota ¶
func GetUsageAndQuota(origin string) *GetUsageAndQuotaParams
GetUsageAndQuota returns usage and quota in bytes.
parameters:
origin - Security origin.
func (*GetUsageAndQuotaParams) Do ¶
func (p *GetUsageAndQuotaParams) Do(ctxt context.Context, h cdp.Executor) (usage float64, quota float64, usageBreakdown []*UsageForType, err error)
Do executes Storage.getUsageAndQuota against the provided context.
returns:
usage - Storage usage (bytes). quota - Storage quota (bytes). usageBreakdown - Storage usage per type (bytes).
func (GetUsageAndQuotaParams) MarshalEasyJSON ¶
func (v GetUsageAndQuotaParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetUsageAndQuotaParams) MarshalJSON ¶
func (v GetUsageAndQuotaParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetUsageAndQuotaParams) UnmarshalEasyJSON ¶
func (v *GetUsageAndQuotaParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetUsageAndQuotaParams) UnmarshalJSON ¶
func (v *GetUsageAndQuotaParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetUsageAndQuotaReturns ¶
type GetUsageAndQuotaReturns struct { Usage float64 `json:"usage,omitempty"` // Storage usage (bytes). Quota float64 `json:"quota,omitempty"` // Storage quota (bytes). UsageBreakdown []*UsageForType `json:"usageBreakdown,omitempty"` // Storage usage per type (bytes). }
GetUsageAndQuotaReturns return values.
func (GetUsageAndQuotaReturns) MarshalEasyJSON ¶
func (v GetUsageAndQuotaReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetUsageAndQuotaReturns) MarshalJSON ¶
func (v GetUsageAndQuotaReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetUsageAndQuotaReturns) UnmarshalEasyJSON ¶
func (v *GetUsageAndQuotaReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetUsageAndQuotaReturns) UnmarshalJSON ¶
func (v *GetUsageAndQuotaReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type TrackCacheStorageForOriginParams ¶
type TrackCacheStorageForOriginParams struct {
Origin string `json:"origin"` // Security origin.
}
TrackCacheStorageForOriginParams registers origin to be notified when an update occurs to its cache storage list.
func TrackCacheStorageForOrigin ¶
func TrackCacheStorageForOrigin(origin string) *TrackCacheStorageForOriginParams
TrackCacheStorageForOrigin registers origin to be notified when an update occurs to its cache storage list.
parameters:
origin - Security origin.
func (*TrackCacheStorageForOriginParams) Do ¶
Do executes Storage.trackCacheStorageForOrigin against the provided context.
func (TrackCacheStorageForOriginParams) MarshalEasyJSON ¶
func (v TrackCacheStorageForOriginParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (TrackCacheStorageForOriginParams) MarshalJSON ¶
func (v TrackCacheStorageForOriginParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*TrackCacheStorageForOriginParams) UnmarshalEasyJSON ¶
func (v *TrackCacheStorageForOriginParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*TrackCacheStorageForOriginParams) UnmarshalJSON ¶
func (v *TrackCacheStorageForOriginParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type TrackIndexedDBForOriginParams ¶
type TrackIndexedDBForOriginParams struct {
Origin string `json:"origin"` // Security origin.
}
TrackIndexedDBForOriginParams registers origin to be notified when an update occurs to its IndexedDB.
func TrackIndexedDBForOrigin ¶
func TrackIndexedDBForOrigin(origin string) *TrackIndexedDBForOriginParams
TrackIndexedDBForOrigin registers origin to be notified when an update occurs to its IndexedDB.
parameters:
origin - Security origin.
func (*TrackIndexedDBForOriginParams) Do ¶
Do executes Storage.trackIndexedDBForOrigin against the provided context.
func (TrackIndexedDBForOriginParams) MarshalEasyJSON ¶
func (v TrackIndexedDBForOriginParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (TrackIndexedDBForOriginParams) MarshalJSON ¶
func (v TrackIndexedDBForOriginParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*TrackIndexedDBForOriginParams) UnmarshalEasyJSON ¶
func (v *TrackIndexedDBForOriginParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*TrackIndexedDBForOriginParams) UnmarshalJSON ¶
func (v *TrackIndexedDBForOriginParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Type ¶
type Type string
Type enum of possible storage types.
const ( TypeAppcache Type = "appcache" TypeCookies Type = "cookies" TypeFileSystems Type = "file_systems" TypeIndexeddb Type = "indexeddb" TypeLocalStorage Type = "local_storage" TypeShaderCache Type = "shader_cache" TypeWebsql Type = "websql" TypeServiceWorkers Type = "service_workers" TypeCacheStorage Type = "cache_storage" TypeAll Type = "all" TypeOther Type = "other" )
Type values.
func (Type) MarshalEasyJSON ¶
MarshalEasyJSON satisfies easyjson.Marshaler.
func (Type) MarshalJSON ¶
MarshalJSON satisfies json.Marshaler.
func (*Type) UnmarshalEasyJSON ¶
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*Type) UnmarshalJSON ¶
UnmarshalJSON satisfies json.Unmarshaler.
type UntrackCacheStorageForOriginParams ¶
type UntrackCacheStorageForOriginParams struct {
Origin string `json:"origin"` // Security origin.
}
UntrackCacheStorageForOriginParams unregisters origin from receiving notifications for cache storage.
func UntrackCacheStorageForOrigin ¶
func UntrackCacheStorageForOrigin(origin string) *UntrackCacheStorageForOriginParams
UntrackCacheStorageForOrigin unregisters origin from receiving notifications for cache storage.
parameters:
origin - Security origin.
func (*UntrackCacheStorageForOriginParams) Do ¶
Do executes Storage.untrackCacheStorageForOrigin against the provided context.
func (UntrackCacheStorageForOriginParams) MarshalEasyJSON ¶
func (v UntrackCacheStorageForOriginParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (UntrackCacheStorageForOriginParams) MarshalJSON ¶
func (v UntrackCacheStorageForOriginParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*UntrackCacheStorageForOriginParams) UnmarshalEasyJSON ¶
func (v *UntrackCacheStorageForOriginParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*UntrackCacheStorageForOriginParams) UnmarshalJSON ¶
func (v *UntrackCacheStorageForOriginParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type UntrackIndexedDBForOriginParams ¶
type UntrackIndexedDBForOriginParams struct {
Origin string `json:"origin"` // Security origin.
}
UntrackIndexedDBForOriginParams unregisters origin from receiving notifications for IndexedDB.
func UntrackIndexedDBForOrigin ¶
func UntrackIndexedDBForOrigin(origin string) *UntrackIndexedDBForOriginParams
UntrackIndexedDBForOrigin unregisters origin from receiving notifications for IndexedDB.
parameters:
origin - Security origin.
func (*UntrackIndexedDBForOriginParams) Do ¶
Do executes Storage.untrackIndexedDBForOrigin against the provided context.
func (UntrackIndexedDBForOriginParams) MarshalEasyJSON ¶
func (v UntrackIndexedDBForOriginParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (UntrackIndexedDBForOriginParams) MarshalJSON ¶
func (v UntrackIndexedDBForOriginParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*UntrackIndexedDBForOriginParams) UnmarshalEasyJSON ¶
func (v *UntrackIndexedDBForOriginParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*UntrackIndexedDBForOriginParams) UnmarshalJSON ¶
func (v *UntrackIndexedDBForOriginParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type UsageForType ¶
type UsageForType struct { StorageType Type `json:"storageType"` // Name of storage type. Usage float64 `json:"usage"` // Storage usage (bytes). }
UsageForType usage for a storage type.
func (UsageForType) MarshalEasyJSON ¶
func (v UsageForType) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (UsageForType) MarshalJSON ¶
func (v UsageForType) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*UsageForType) UnmarshalEasyJSON ¶
func (v *UsageForType) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*UsageForType) UnmarshalJSON ¶
func (v *UsageForType) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface