cdproto: github.com/chromedp/cdproto/storage Index | Files

package storage

import "github.com/chromedp/cdproto/storage"

Package storage provides the Chrome DevTools Protocol commands, types, and events for the Storage domain.

Generated by the cdproto-gen command.

Index

Package Files

easyjson.go events.go storage.go types.go

Constants

const (
    CommandClearDataForOrigin           = "Storage.clearDataForOrigin"
    CommandGetCookies                   = "Storage.getCookies"
    CommandSetCookies                   = "Storage.setCookies"
    CommandClearCookies                 = "Storage.clearCookies"
    CommandGetUsageAndQuota             = "Storage.getUsageAndQuota"
    CommandOverrideQuotaForOrigin       = "Storage.overrideQuotaForOrigin"
    CommandTrackCacheStorageForOrigin   = "Storage.trackCacheStorageForOrigin"
    CommandTrackIndexedDBForOrigin      = "Storage.trackIndexedDBForOrigin"
    CommandUntrackCacheStorageForOrigin = "Storage.untrackCacheStorageForOrigin"
    CommandUntrackIndexedDBForOrigin    = "Storage.untrackIndexedDBForOrigin"
    CommandGetTrustTokens               = "Storage.getTrustTokens"
)

Command names.

type ClearCookiesParams Uses

type ClearCookiesParams struct {
    BrowserContextID cdp.BrowserContextID `json:"browserContextId,omitempty"` // Browser context to use when called on the browser endpoint.
}

ClearCookiesParams clears cookies.

func ClearCookies Uses

func ClearCookies() *ClearCookiesParams

ClearCookies clears cookies.

See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-clearCookies

parameters:

func (*ClearCookiesParams) Do Uses

func (p *ClearCookiesParams) Do(ctx context.Context) (err error)

Do executes Storage.clearCookies against the provided context.

func (ClearCookiesParams) MarshalEasyJSON Uses

func (v ClearCookiesParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ClearCookiesParams) MarshalJSON Uses

func (v ClearCookiesParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ClearCookiesParams) UnmarshalEasyJSON Uses

func (v *ClearCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ClearCookiesParams) UnmarshalJSON Uses

func (v *ClearCookiesParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (ClearCookiesParams) WithBrowserContextID Uses

func (p ClearCookiesParams) WithBrowserContextID(browserContextID cdp.BrowserContextID) *ClearCookiesParams

WithBrowserContextID browser context to use when called on the browser endpoint.

type ClearDataForOriginParams Uses

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 Uses

func ClearDataForOrigin(origin string, storageTypes string) *ClearDataForOriginParams

ClearDataForOrigin clears storage for origin.

See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-clearDataForOrigin

parameters:

origin - Security origin.
storageTypes - Comma separated list of StorageType to clear.

func (*ClearDataForOriginParams) Do Uses

func (p *ClearDataForOriginParams) Do(ctx context.Context) (err error)

Do executes Storage.clearDataForOrigin against the provided context.

func (ClearDataForOriginParams) MarshalEasyJSON Uses

func (v ClearDataForOriginParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ClearDataForOriginParams) MarshalJSON Uses

func (v ClearDataForOriginParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ClearDataForOriginParams) UnmarshalEasyJSON Uses

func (v *ClearDataForOriginParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ClearDataForOriginParams) UnmarshalJSON Uses

func (v *ClearDataForOriginParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventCacheStorageContentUpdated Uses

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#event-cacheStorageContentUpdated

func (EventCacheStorageContentUpdated) MarshalEasyJSON Uses

func (v EventCacheStorageContentUpdated) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventCacheStorageContentUpdated) MarshalJSON Uses

func (v EventCacheStorageContentUpdated) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventCacheStorageContentUpdated) UnmarshalEasyJSON Uses

func (v *EventCacheStorageContentUpdated) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventCacheStorageContentUpdated) UnmarshalJSON Uses

func (v *EventCacheStorageContentUpdated) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventCacheStorageListUpdated Uses

type EventCacheStorageListUpdated struct {
    Origin string `json:"origin"` // Origin to update.
}

EventCacheStorageListUpdated a cache has been added/deleted.

See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#event-cacheStorageListUpdated

func (EventCacheStorageListUpdated) MarshalEasyJSON Uses

func (v EventCacheStorageListUpdated) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventCacheStorageListUpdated) MarshalJSON Uses

func (v EventCacheStorageListUpdated) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventCacheStorageListUpdated) UnmarshalEasyJSON Uses

func (v *EventCacheStorageListUpdated) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventCacheStorageListUpdated) UnmarshalJSON Uses

func (v *EventCacheStorageListUpdated) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventIndexedDBContentUpdated Uses

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#event-indexedDBContentUpdated

func (EventIndexedDBContentUpdated) MarshalEasyJSON Uses

func (v EventIndexedDBContentUpdated) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventIndexedDBContentUpdated) MarshalJSON Uses

func (v EventIndexedDBContentUpdated) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventIndexedDBContentUpdated) UnmarshalEasyJSON Uses

func (v *EventIndexedDBContentUpdated) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventIndexedDBContentUpdated) UnmarshalJSON Uses

func (v *EventIndexedDBContentUpdated) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventIndexedDBListUpdated Uses

type EventIndexedDBListUpdated struct {
    Origin string `json:"origin"` // Origin to update.
}

EventIndexedDBListUpdated the origin's IndexedDB database list has been modified.

See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#event-indexedDBListUpdated

func (EventIndexedDBListUpdated) MarshalEasyJSON Uses

func (v EventIndexedDBListUpdated) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventIndexedDBListUpdated) MarshalJSON Uses

func (v EventIndexedDBListUpdated) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventIndexedDBListUpdated) UnmarshalEasyJSON Uses

func (v *EventIndexedDBListUpdated) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventIndexedDBListUpdated) UnmarshalJSON Uses

func (v *EventIndexedDBListUpdated) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetCookiesParams Uses

type GetCookiesParams struct {
    BrowserContextID cdp.BrowserContextID `json:"browserContextId,omitempty"` // Browser context to use when called on the browser endpoint.
}

GetCookiesParams returns all browser cookies.

func GetCookies Uses

func GetCookies() *GetCookiesParams

GetCookies returns all browser cookies.

See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-getCookies

parameters:

func (*GetCookiesParams) Do Uses

func (p *GetCookiesParams) Do(ctx context.Context) (cookies []*network.Cookie, err error)

Do executes Storage.getCookies against the provided context.

returns:

cookies - Array of cookie objects.

func (GetCookiesParams) MarshalEasyJSON Uses

func (v GetCookiesParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetCookiesParams) MarshalJSON Uses

func (v GetCookiesParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetCookiesParams) UnmarshalEasyJSON Uses

func (v *GetCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetCookiesParams) UnmarshalJSON Uses

func (v *GetCookiesParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (GetCookiesParams) WithBrowserContextID Uses

func (p GetCookiesParams) WithBrowserContextID(browserContextID cdp.BrowserContextID) *GetCookiesParams

WithBrowserContextID browser context to use when called on the browser endpoint.

type GetCookiesReturns Uses

type GetCookiesReturns struct {
    Cookies []*network.Cookie `json:"cookies,omitempty"` // Array of cookie objects.
}

GetCookiesReturns return values.

func (GetCookiesReturns) MarshalEasyJSON Uses

func (v GetCookiesReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetCookiesReturns) MarshalJSON Uses

func (v GetCookiesReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetCookiesReturns) UnmarshalEasyJSON Uses

func (v *GetCookiesReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetCookiesReturns) UnmarshalJSON Uses

func (v *GetCookiesReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetTrustTokensParams Uses

type GetTrustTokensParams struct{}

GetTrustTokensParams returns the number of stored Trust Tokens per issuer for the current browsing context.

func GetTrustTokens Uses

func GetTrustTokens() *GetTrustTokensParams

GetTrustTokens returns the number of stored Trust Tokens per issuer for the current browsing context.

See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-getTrustTokens

func (*GetTrustTokensParams) Do Uses

func (p *GetTrustTokensParams) Do(ctx context.Context) (tokens []*TrustTokens, err error)

Do executes Storage.getTrustTokens against the provided context.

returns:

tokens

func (GetTrustTokensParams) MarshalEasyJSON Uses

func (v GetTrustTokensParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetTrustTokensParams) MarshalJSON Uses

func (v GetTrustTokensParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetTrustTokensParams) UnmarshalEasyJSON Uses

func (v *GetTrustTokensParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetTrustTokensParams) UnmarshalJSON Uses

func (v *GetTrustTokensParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetTrustTokensReturns Uses

type GetTrustTokensReturns struct {
    Tokens []*TrustTokens `json:"tokens,omitempty"`
}

GetTrustTokensReturns return values.

func (GetTrustTokensReturns) MarshalEasyJSON Uses

func (v GetTrustTokensReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetTrustTokensReturns) MarshalJSON Uses

func (v GetTrustTokensReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetTrustTokensReturns) UnmarshalEasyJSON Uses

func (v *GetTrustTokensReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetTrustTokensReturns) UnmarshalJSON Uses

func (v *GetTrustTokensReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetUsageAndQuotaParams Uses

type GetUsageAndQuotaParams struct {
    Origin string `json:"origin"` // Security origin.
}

GetUsageAndQuotaParams returns usage and quota in bytes.

func GetUsageAndQuota Uses

func GetUsageAndQuota(origin string) *GetUsageAndQuotaParams

GetUsageAndQuota returns usage and quota in bytes.

See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-getUsageAndQuota

parameters:

origin - Security origin.

func (*GetUsageAndQuotaParams) Do Uses

func (p *GetUsageAndQuotaParams) Do(ctx context.Context) (usage float64, quota float64, overrideActive bool, usageBreakdown []*UsageForType, err error)

Do executes Storage.getUsageAndQuota against the provided context.

returns:

usage - Storage usage (bytes).
quota - Storage quota (bytes).
overrideActive - Whether or not the origin has an active storage quota override
usageBreakdown - Storage usage per type (bytes).

func (GetUsageAndQuotaParams) MarshalEasyJSON Uses

func (v GetUsageAndQuotaParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetUsageAndQuotaParams) MarshalJSON Uses

func (v GetUsageAndQuotaParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetUsageAndQuotaParams) UnmarshalEasyJSON Uses

func (v *GetUsageAndQuotaParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetUsageAndQuotaParams) UnmarshalJSON Uses

func (v *GetUsageAndQuotaParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetUsageAndQuotaReturns Uses

type GetUsageAndQuotaReturns struct {
    Usage          float64         `json:"usage,omitempty"`          // Storage usage (bytes).
    Quota          float64         `json:"quota,omitempty"`          // Storage quota (bytes).
    OverrideActive bool            `json:"overrideActive,omitempty"` // Whether or not the origin has an active storage quota override
    UsageBreakdown []*UsageForType `json:"usageBreakdown,omitempty"` // Storage usage per type (bytes).
}

GetUsageAndQuotaReturns return values.

func (GetUsageAndQuotaReturns) MarshalEasyJSON Uses

func (v GetUsageAndQuotaReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetUsageAndQuotaReturns) MarshalJSON Uses

func (v GetUsageAndQuotaReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetUsageAndQuotaReturns) UnmarshalEasyJSON Uses

func (v *GetUsageAndQuotaReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetUsageAndQuotaReturns) UnmarshalJSON Uses

func (v *GetUsageAndQuotaReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type OverrideQuotaForOriginParams Uses

type OverrideQuotaForOriginParams struct {
    Origin    string  `json:"origin"`              // Security origin.
    QuotaSize float64 `json:"quotaSize,omitempty"` // The quota size (in bytes) to override the original quota with. If this is called multiple times, the overridden quota will be equal to the quotaSize provided in the final call. If this is called without specifying a quotaSize, the quota will be reset to the default value for the specified origin. If this is called multiple times with different origins, the override will be maintained for each origin until it is disabled (called without a quotaSize).
}

OverrideQuotaForOriginParams override quota for the specified origin.

func OverrideQuotaForOrigin Uses

func OverrideQuotaForOrigin(origin string) *OverrideQuotaForOriginParams

OverrideQuotaForOrigin override quota for the specified origin.

See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-overrideQuotaForOrigin

parameters:

origin - Security origin.

func (*OverrideQuotaForOriginParams) Do Uses

func (p *OverrideQuotaForOriginParams) Do(ctx context.Context) (err error)

Do executes Storage.overrideQuotaForOrigin against the provided context.

func (OverrideQuotaForOriginParams) MarshalEasyJSON Uses

func (v OverrideQuotaForOriginParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (OverrideQuotaForOriginParams) MarshalJSON Uses

func (v OverrideQuotaForOriginParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*OverrideQuotaForOriginParams) UnmarshalEasyJSON Uses

func (v *OverrideQuotaForOriginParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*OverrideQuotaForOriginParams) UnmarshalJSON Uses

func (v *OverrideQuotaForOriginParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (OverrideQuotaForOriginParams) WithQuotaSize Uses

func (p OverrideQuotaForOriginParams) WithQuotaSize(quotaSize float64) *OverrideQuotaForOriginParams

WithQuotaSize the quota size (in bytes) to override the original quota with. If this is called multiple times, the overridden quota will be equal to the quotaSize provided in the final call. If this is called without specifying a quotaSize, the quota will be reset to the default value for the specified origin. If this is called multiple times with different origins, the override will be maintained for each origin until it is disabled (called without a quotaSize).

type SetCookiesParams Uses

type SetCookiesParams struct {
    Cookies          []*network.CookieParam `json:"cookies"`                    // Cookies to be set.
    BrowserContextID cdp.BrowserContextID   `json:"browserContextId,omitempty"` // Browser context to use when called on the browser endpoint.
}

SetCookiesParams sets given cookies.

func SetCookies Uses

func SetCookies(cookies []*network.CookieParam) *SetCookiesParams

SetCookies sets given cookies.

See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-setCookies

parameters:

cookies - Cookies to be set.

func (*SetCookiesParams) Do Uses

func (p *SetCookiesParams) Do(ctx context.Context) (err error)

Do executes Storage.setCookies against the provided context.

func (SetCookiesParams) MarshalEasyJSON Uses

func (v SetCookiesParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetCookiesParams) MarshalJSON Uses

func (v SetCookiesParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetCookiesParams) UnmarshalEasyJSON Uses

func (v *SetCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetCookiesParams) UnmarshalJSON Uses

func (v *SetCookiesParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (SetCookiesParams) WithBrowserContextID Uses

func (p SetCookiesParams) WithBrowserContextID(browserContextID cdp.BrowserContextID) *SetCookiesParams

WithBrowserContextID browser context to use when called on the browser endpoint.

type TrackCacheStorageForOriginParams Uses

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 Uses

func TrackCacheStorageForOrigin(origin string) *TrackCacheStorageForOriginParams

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

See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-trackCacheStorageForOrigin

parameters:

origin - Security origin.

func (*TrackCacheStorageForOriginParams) Do Uses

func (p *TrackCacheStorageForOriginParams) Do(ctx context.Context) (err error)

Do executes Storage.trackCacheStorageForOrigin against the provided context.

func (TrackCacheStorageForOriginParams) MarshalEasyJSON Uses

func (v TrackCacheStorageForOriginParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (TrackCacheStorageForOriginParams) MarshalJSON Uses

func (v TrackCacheStorageForOriginParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*TrackCacheStorageForOriginParams) UnmarshalEasyJSON Uses

func (v *TrackCacheStorageForOriginParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*TrackCacheStorageForOriginParams) UnmarshalJSON Uses

func (v *TrackCacheStorageForOriginParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type TrackIndexedDBForOriginParams Uses

type TrackIndexedDBForOriginParams struct {
    Origin string `json:"origin"` // Security origin.
}

TrackIndexedDBForOriginParams registers origin to be notified when an update occurs to its IndexedDB.

func TrackIndexedDBForOrigin Uses

func TrackIndexedDBForOrigin(origin string) *TrackIndexedDBForOriginParams

TrackIndexedDBForOrigin registers origin to be notified when an update occurs to its IndexedDB.

See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-trackIndexedDBForOrigin

parameters:

origin - Security origin.

func (*TrackIndexedDBForOriginParams) Do Uses

func (p *TrackIndexedDBForOriginParams) Do(ctx context.Context) (err error)

Do executes Storage.trackIndexedDBForOrigin against the provided context.

func (TrackIndexedDBForOriginParams) MarshalEasyJSON Uses

func (v TrackIndexedDBForOriginParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (TrackIndexedDBForOriginParams) MarshalJSON Uses

func (v TrackIndexedDBForOriginParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*TrackIndexedDBForOriginParams) UnmarshalEasyJSON Uses

func (v *TrackIndexedDBForOriginParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*TrackIndexedDBForOriginParams) UnmarshalJSON Uses

func (v *TrackIndexedDBForOriginParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type TrustTokens Uses

type TrustTokens struct {
    IssuerOrigin string  `json:"issuerOrigin"`
    Count        float64 `json:"count"`
}

TrustTokens pair of issuer origin and number of available (signed, but not used) Trust Tokens from that issuer.

See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#type-TrustTokens

func (TrustTokens) MarshalEasyJSON Uses

func (v TrustTokens) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (TrustTokens) MarshalJSON Uses

func (v TrustTokens) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*TrustTokens) UnmarshalEasyJSON Uses

func (v *TrustTokens) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*TrustTokens) UnmarshalJSON Uses

func (v *TrustTokens) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Type Uses

type Type string

Type enum of possible storage types.

See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#type-StorageType

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 Uses

func (t Type) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (Type) MarshalJSON Uses

func (t Type) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (Type) String Uses

func (t Type) String() string

String returns the Type as string value.

func (*Type) UnmarshalEasyJSON Uses

func (t *Type) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*Type) UnmarshalJSON Uses

func (t *Type) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type UntrackCacheStorageForOriginParams Uses

type UntrackCacheStorageForOriginParams struct {
    Origin string `json:"origin"` // Security origin.
}

UntrackCacheStorageForOriginParams unregisters origin from receiving notifications for cache storage.

func UntrackCacheStorageForOrigin Uses

func UntrackCacheStorageForOrigin(origin string) *UntrackCacheStorageForOriginParams

UntrackCacheStorageForOrigin unregisters origin from receiving notifications for cache storage.

See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-untrackCacheStorageForOrigin

parameters:

origin - Security origin.

func (*UntrackCacheStorageForOriginParams) Do Uses

func (p *UntrackCacheStorageForOriginParams) Do(ctx context.Context) (err error)

Do executes Storage.untrackCacheStorageForOrigin against the provided context.

func (UntrackCacheStorageForOriginParams) MarshalEasyJSON Uses

func (v UntrackCacheStorageForOriginParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (UntrackCacheStorageForOriginParams) MarshalJSON Uses

func (v UntrackCacheStorageForOriginParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*UntrackCacheStorageForOriginParams) UnmarshalEasyJSON Uses

func (v *UntrackCacheStorageForOriginParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*UntrackCacheStorageForOriginParams) UnmarshalJSON Uses

func (v *UntrackCacheStorageForOriginParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type UntrackIndexedDBForOriginParams Uses

type UntrackIndexedDBForOriginParams struct {
    Origin string `json:"origin"` // Security origin.
}

UntrackIndexedDBForOriginParams unregisters origin from receiving notifications for IndexedDB.

func UntrackIndexedDBForOrigin Uses

func UntrackIndexedDBForOrigin(origin string) *UntrackIndexedDBForOriginParams

UntrackIndexedDBForOrigin unregisters origin from receiving notifications for IndexedDB.

See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-untrackIndexedDBForOrigin

parameters:

origin - Security origin.

func (*UntrackIndexedDBForOriginParams) Do Uses

func (p *UntrackIndexedDBForOriginParams) Do(ctx context.Context) (err error)

Do executes Storage.untrackIndexedDBForOrigin against the provided context.

func (UntrackIndexedDBForOriginParams) MarshalEasyJSON Uses

func (v UntrackIndexedDBForOriginParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (UntrackIndexedDBForOriginParams) MarshalJSON Uses

func (v UntrackIndexedDBForOriginParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*UntrackIndexedDBForOriginParams) UnmarshalEasyJSON Uses

func (v *UntrackIndexedDBForOriginParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*UntrackIndexedDBForOriginParams) UnmarshalJSON Uses

func (v *UntrackIndexedDBForOriginParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type UsageForType Uses

type UsageForType struct {
    StorageType Type    `json:"storageType"` // Name of storage type.
    Usage       float64 `json:"usage"`       // Storage usage (bytes).
}

UsageForType usage for a storage type.

See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#type-UsageForType

func (UsageForType) MarshalEasyJSON Uses

func (v UsageForType) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (UsageForType) MarshalJSON Uses

func (v UsageForType) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*UsageForType) UnmarshalEasyJSON Uses

func (v *UsageForType) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*UsageForType) UnmarshalJSON Uses

func (v *UsageForType) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Package storage imports 8 packages (graph) and is imported by 3 packages. Updated 2021-01-27. Refresh now. Tools for package owners.