storage

package
v0.157.1 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: MIT Imports: 3 Imported by: 60

Documentation

Overview

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

Generated by the pdlgen command.

Index

Constants

View Source
const (
	CommandGetStorageKey                             = "Storage.getStorageKey"
	CommandClearDataForOrigin                        = "Storage.clearDataForOrigin"
	CommandClearDataForStorageKey                    = "Storage.clearDataForStorageKey"
	CommandGetCookies                                = "Storage.getCookies"
	CommandSetCookies                                = "Storage.setCookies"
	CommandClearCookies                              = "Storage.clearCookies"
	CommandGetUsageAndQuota                          = "Storage.getUsageAndQuota"
	CommandOverrideQuotaForOrigin                    = "Storage.overrideQuotaForOrigin"
	CommandTrackCacheStorageForOrigin                = "Storage.trackCacheStorageForOrigin"
	CommandTrackCacheStorageForStorageKey            = "Storage.trackCacheStorageForStorageKey"
	CommandTrackIndexedDBForOrigin                   = "Storage.trackIndexedDBForOrigin"
	CommandTrackIndexedDBForStorageKey               = "Storage.trackIndexedDBForStorageKey"
	CommandUntrackCacheStorageForOrigin              = "Storage.untrackCacheStorageForOrigin"
	CommandUntrackCacheStorageForStorageKey          = "Storage.untrackCacheStorageForStorageKey"
	CommandUntrackIndexedDBForOrigin                 = "Storage.untrackIndexedDBForOrigin"
	CommandUntrackIndexedDBForStorageKey             = "Storage.untrackIndexedDBForStorageKey"
	CommandGetTrustTokens                            = "Storage.getTrustTokens"
	CommandClearTrustTokens                          = "Storage.clearTrustTokens"
	CommandGetPrivateVerificationTokens              = "Storage.getPrivateVerificationTokens"
	CommandGetPrivateVerificationTokensIssuerConfigs = "Storage.getPrivateVerificationTokensIssuerConfigs"
	CommandClearPrivateVerificationTokens            = "Storage.clearPrivateVerificationTokens"
	CommandDeletePrivateVerificationToken            = "Storage.deletePrivateVerificationToken"
	CommandSetPrivateVerificationTokensTracking      = "Storage.setPrivateVerificationTokensTracking"
	CommandSetStorageBucketTracking                  = "Storage.setStorageBucketTracking"
	CommandDeleteStorageBucket                       = "Storage.deleteStorageBucket"
	CommandRunBounceTrackingMitigations              = "Storage.runBounceTrackingMitigations"
)

Command names.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

type Bucket struct {
	StorageKey SerializedStorageKey `json:"storageKey"`
	Name       string               `json:"name,omitempty,omitzero"` // If not specified, it is the default bucket of the storageKey.
}

Bucket [no description].

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

type BucketInfo

type BucketInfo struct {
	Bucket     *Bucket            `json:"bucket"`
	ID         string             `json:"id"`
	Expiration cdp.TimeSinceEpoch `json:"expiration"`
	Quota      float64            `json:"quota"` // Storage quota (bytes).
	Persistent bool               `json:"persistent"`
	Durability BucketsDurability  `json:"durability"`
}

BucketInfo [no description].

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

type BucketsDurability

type BucketsDurability string

BucketsDurability [no description].

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

const (
	BucketsDurabilityRelaxed BucketsDurability = "relaxed"
	BucketsDurabilityStrict  BucketsDurability = "strict"
)

BucketsDurability values.

func (BucketsDurability) String

func (t BucketsDurability) String() string

String returns the BucketsDurability as string value.

type ClearCookiesParams

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

ClearCookiesParams clears cookies.

func ClearCookies

func ClearCookies() *ClearCookiesParams

ClearCookies clears cookies.

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

parameters:

func (*ClearCookiesParams) Do

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

Do executes Storage.clearCookies against the provided context.

func (ClearCookiesParams) WithBrowserContextID

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

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

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.

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

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

Do executes Storage.clearDataForOrigin against the provided context.

type ClearDataForStorageKeyParams

type ClearDataForStorageKeyParams struct {
	StorageKey   string `json:"storageKey"`   // Storage key.
	StorageTypes string `json:"storageTypes"` // Comma separated list of StorageType to clear.
}

ClearDataForStorageKeyParams clears storage for storage key.

func ClearDataForStorageKey

func ClearDataForStorageKey(storageKey string, storageTypes string) *ClearDataForStorageKeyParams

ClearDataForStorageKey clears storage for storage key.

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

parameters:

storageKey - Storage key.
storageTypes - Comma separated list of StorageType to clear.

func (*ClearDataForStorageKeyParams) Do

Do executes Storage.clearDataForStorageKey against the provided context.

type ClearPrivateVerificationTokensParams

type ClearPrivateVerificationTokensParams struct {
	IssuerOrigin string `json:"issuerOrigin"`
}

ClearPrivateVerificationTokensParams removes all Private Verification Tokens issued by the provided issuerOrigin.

func ClearPrivateVerificationTokens

func ClearPrivateVerificationTokens(issuerOrigin string) *ClearPrivateVerificationTokensParams

ClearPrivateVerificationTokens removes all Private Verification Tokens issued by the provided issuerOrigin.

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

parameters:

issuerOrigin

func (*ClearPrivateVerificationTokensParams) Do

Do executes Storage.clearPrivateVerificationTokens against the provided context.

type ClearTrustTokensParams

type ClearTrustTokensParams struct {
	IssuerOrigin string `json:"issuerOrigin"`
}

ClearTrustTokensParams removes all Trust Tokens issued by the provided issuerOrigin. Leaves other stored data, including the issuer's Redemption Records, intact.

func ClearTrustTokens

func ClearTrustTokens(issuerOrigin string) *ClearTrustTokensParams

ClearTrustTokens removes all Trust Tokens issued by the provided issuerOrigin. Leaves other stored data, including the issuer's Redemption Records, intact.

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

parameters:

issuerOrigin

func (*ClearTrustTokensParams) Do

func (p *ClearTrustTokensParams) Do(ctx context.Context) (didDeleteTokens bool, err error)

Do executes Storage.clearTrustTokens against the provided context.

returns:

didDeleteTokens - True if any tokens were deleted, false otherwise.

type ClearTrustTokensReturns

type ClearTrustTokensReturns struct {
	DidDeleteTokens bool `json:"didDeleteTokens"` // True if any tokens were deleted, false otherwise.
}

ClearTrustTokensReturns return values.

type DeletePrivateVerificationTokenParams

type DeletePrivateVerificationTokenParams struct {
	TokenID string `json:"tokenId"`
}

DeletePrivateVerificationTokenParams removes a specific Private Verification Token by its ID.

func DeletePrivateVerificationToken

func DeletePrivateVerificationToken(tokenID string) *DeletePrivateVerificationTokenParams

DeletePrivateVerificationToken removes a specific Private Verification Token by its ID.

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

parameters:

tokenID

func (*DeletePrivateVerificationTokenParams) Do

Do executes Storage.deletePrivateVerificationToken against the provided context.

type DeleteStorageBucketParams

type DeleteStorageBucketParams struct {
	Bucket *Bucket `json:"bucket"`
}

DeleteStorageBucketParams deletes the Storage Bucket with the given storage key and bucket name.

func DeleteStorageBucket

func DeleteStorageBucket(bucket *Bucket) *DeleteStorageBucketParams

DeleteStorageBucket deletes the Storage Bucket with the given storage key and bucket name.

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

parameters:

bucket

func (*DeleteStorageBucketParams) Do

Do executes Storage.deleteStorageBucket against the provided context.

type EventCacheStorageContentUpdated

type EventCacheStorageContentUpdated struct {
	Origin     string `json:"origin"`     // Origin to update.
	StorageKey string `json:"storageKey"` // Storage key to update.
	BucketID   string `json:"bucketId"`   // Storage bucket 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

type EventCacheStorageListUpdated

type EventCacheStorageListUpdated struct {
	Origin     string `json:"origin"`     // Origin to update.
	StorageKey string `json:"storageKey"` // Storage key to update.
	BucketID   string `json:"bucketId"`   // Storage bucket to update.
}

EventCacheStorageListUpdated a cache has been added/deleted.

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

type EventIndexedDBContentUpdated

type EventIndexedDBContentUpdated struct {
	Origin          string `json:"origin"`          // Origin to update.
	StorageKey      string `json:"storageKey"`      // Storage key to update.
	BucketID        string `json:"bucketId"`        // Storage bucket 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

type EventIndexedDBListUpdated

type EventIndexedDBListUpdated struct {
	Origin     string `json:"origin"`     // Origin to update.
	StorageKey string `json:"storageKey"` // Storage key to update.
	BucketID   string `json:"bucketId"`   // Storage bucket to update.
}

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

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

type EventPrivateVerificationTokensUpdated

type EventPrivateVerificationTokensUpdated struct{}

EventPrivateVerificationTokensUpdated private Verification Tokens have been stored or deleted.

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

type EventStorageBucketCreatedOrUpdated

type EventStorageBucketCreatedOrUpdated struct {
	BucketInfo *BucketInfo `json:"bucketInfo"`
}

EventStorageBucketCreatedOrUpdated [no description].

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

type EventStorageBucketDeleted

type EventStorageBucketDeleted struct {
	BucketID string `json:"bucketId"`
}

EventStorageBucketDeleted [no description].

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

type GetCookiesParams

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

GetCookiesParams returns all browser cookies.

func GetCookies

func GetCookies() *GetCookiesParams

GetCookies returns all browser cookies.

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

parameters:

func (*GetCookiesParams) Do

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

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

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

type GetCookiesReturns

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

GetCookiesReturns return values.

type GetPrivateVerificationTokensIssuerConfigsParams

type GetPrivateVerificationTokensIssuerConfigsParams struct{}

GetPrivateVerificationTokensIssuerConfigsParams returns the configured Private Verification Tokens issuers and their redeemer origins.

func GetPrivateVerificationTokensIssuerConfigs

func GetPrivateVerificationTokensIssuerConfigs() *GetPrivateVerificationTokensIssuerConfigsParams

GetPrivateVerificationTokensIssuerConfigs returns the configured Private Verification Tokens issuers and their redeemer origins.

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

func (*GetPrivateVerificationTokensIssuerConfigsParams) Do

Do executes Storage.getPrivateVerificationTokensIssuerConfigs against the provided context.

returns:

configs

type GetPrivateVerificationTokensIssuerConfigsReturns

type GetPrivateVerificationTokensIssuerConfigsReturns struct {
	Configs []*PrivateVerificationTokensIssuerConfig `json:"configs,omitempty,omitzero"`
}

GetPrivateVerificationTokensIssuerConfigsReturns return values.

type GetPrivateVerificationTokensParams

type GetPrivateVerificationTokensParams struct{}

GetPrivateVerificationTokensParams returns all stored Private Verification Tokens for the current browsing context.

func GetPrivateVerificationTokens

func GetPrivateVerificationTokens() *GetPrivateVerificationTokensParams

GetPrivateVerificationTokens returns all stored Private Verification Tokens for the current browsing context.

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

func (*GetPrivateVerificationTokensParams) Do

Do executes Storage.getPrivateVerificationTokens against the provided context.

returns:

tokens

type GetPrivateVerificationTokensReturns

type GetPrivateVerificationTokensReturns struct {
	Tokens []*PrivateVerificationToken `json:"tokens,omitempty,omitzero"`
}

GetPrivateVerificationTokensReturns return values.

type GetStorageKeyParams

type GetStorageKeyParams struct {
	FrameID cdp.FrameID `json:"frameId,omitempty,omitzero"`
}

GetStorageKeyParams returns storage key for the given frame. If no frame ID is provided, the storage key of the target executing this command is returned.

func GetStorageKey

func GetStorageKey() *GetStorageKeyParams

GetStorageKey returns storage key for the given frame. If no frame ID is provided, the storage key of the target executing this command is returned.

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

parameters:

func (*GetStorageKeyParams) Do

func (p *GetStorageKeyParams) Do(ctx context.Context) (storageKey SerializedStorageKey, err error)

Do executes Storage.getStorageKey against the provided context.

returns:

storageKey

func (GetStorageKeyParams) WithFrameID

func (p GetStorageKeyParams) WithFrameID(frameID cdp.FrameID) *GetStorageKeyParams

WithFrameID [no description].

type GetStorageKeyReturns

type GetStorageKeyReturns struct {
	StorageKey SerializedStorageKey `json:"storageKey,omitempty,omitzero"`
}

GetStorageKeyReturns return values.

type GetTrustTokensParams

type GetTrustTokensParams struct{}

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

func GetTrustTokens

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

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

Do executes Storage.getTrustTokens against the provided context.

returns:

tokens

type GetTrustTokensReturns

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

GetTrustTokensReturns return values.

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.

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

parameters:

origin - Security origin.

func (*GetUsageAndQuotaParams) Do

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

type GetUsageAndQuotaReturns

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

GetUsageAndQuotaReturns return values.

type OverrideQuotaForOriginParams

type OverrideQuotaForOriginParams struct {
	Origin    string  `json:"origin"`                       // Security origin.
	QuotaSize float64 `json:"quotaSize,omitempty,omitzero"` // 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

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

Do executes Storage.overrideQuotaForOrigin against the provided context.

func (OverrideQuotaForOriginParams) WithQuotaSize

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 PrivateVerificationToken

type PrivateVerificationToken struct {
	ID           string             `json:"id"`           // Unique identifier of the token in the database.
	IssuerOrigin string             `json:"issuerOrigin"` // Origin of the token issuer.
	KeyID        int64              `json:"keyId"`        // Public key ID used to issue the token.
	Expiration   cdp.TimeSinceEpoch `json:"expiration"`   // Expiration timestamp in seconds since the epoch.
	CreationTime cdp.TimeSinceEpoch `json:"creationTime"` // Token creation timestamp in seconds since the epoch.
	Version      int64              `json:"version"`      // Token protocol version.
	Token        string             `json:"token"`        // Base64-encoded serialized token.
}

PrivateVerificationToken details of a stored Private Verification Token.

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

type PrivateVerificationTokensIssuerConfig

type PrivateVerificationTokensIssuerConfig struct {
	IssuerOrigin    string   `json:"issuerOrigin"`    // Origin of the token issuer.
	RedeemerOrigins []string `json:"redeemerOrigins"` // Origins authorized to redeem tokens from this issuer.
}

PrivateVerificationTokensIssuerConfig configuration for a Private Verification Tokens issuer.

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

type RunBounceTrackingMitigationsParams

type RunBounceTrackingMitigationsParams struct{}

RunBounceTrackingMitigationsParams deletes state for sites identified as potential bounce trackers, immediately.

func RunBounceTrackingMitigations

func RunBounceTrackingMitigations() *RunBounceTrackingMitigationsParams

RunBounceTrackingMitigations deletes state for sites identified as potential bounce trackers, immediately.

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

func (*RunBounceTrackingMitigationsParams) Do

func (p *RunBounceTrackingMitigationsParams) Do(ctx context.Context) (deletedSites []string, err error)

Do executes Storage.runBounceTrackingMitigations against the provided context.

returns:

deletedSites

type RunBounceTrackingMitigationsReturns

type RunBounceTrackingMitigationsReturns struct {
	DeletedSites []string `json:"deletedSites,omitempty,omitzero"`
}

RunBounceTrackingMitigationsReturns return values.

type SerializedStorageKey

type SerializedStorageKey string

SerializedStorageKey [no description].

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

func (SerializedStorageKey) String

func (t SerializedStorageKey) String() string

String returns the SerializedStorageKey as string value.

type SetCookiesParams

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

SetCookiesParams sets given cookies.

func SetCookies

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

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

Do executes Storage.setCookies against the provided context.

func (SetCookiesParams) WithBrowserContextID

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

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

type SetPrivateVerificationTokensTrackingParams

type SetPrivateVerificationTokensTrackingParams struct {
	Enable bool `json:"enable"`
}

SetPrivateVerificationTokensTrackingParams set tracking for Private Verification Tokens.

func SetPrivateVerificationTokensTracking

func SetPrivateVerificationTokensTracking(enable bool) *SetPrivateVerificationTokensTrackingParams

SetPrivateVerificationTokensTracking set tracking for Private Verification Tokens.

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

parameters:

enable

func (*SetPrivateVerificationTokensTrackingParams) Do

Do executes Storage.setPrivateVerificationTokensTracking against the provided context.

type SetStorageBucketTrackingParams

type SetStorageBucketTrackingParams struct {
	StorageKey string `json:"storageKey"`
	Enable     bool   `json:"enable"`
}

SetStorageBucketTrackingParams set tracking for a storage key's buckets.

func SetStorageBucketTracking

func SetStorageBucketTracking(storageKey string, enable bool) *SetStorageBucketTrackingParams

SetStorageBucketTracking set tracking for a storage key's buckets.

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

parameters:

storageKey
enable

func (*SetStorageBucketTrackingParams) Do

Do executes Storage.setStorageBucketTracking against the provided context.

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.

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

parameters:

origin - Security origin.

func (*TrackCacheStorageForOriginParams) Do

Do executes Storage.trackCacheStorageForOrigin against the provided context.

type TrackCacheStorageForStorageKeyParams

type TrackCacheStorageForStorageKeyParams struct {
	StorageKey string `json:"storageKey"` // Storage key.
}

TrackCacheStorageForStorageKeyParams registers storage key to be notified when an update occurs to its cache storage list.

func TrackCacheStorageForStorageKey

func TrackCacheStorageForStorageKey(storageKey string) *TrackCacheStorageForStorageKeyParams

TrackCacheStorageForStorageKey registers storage key to be notified when an update occurs to its cache storage list.

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

parameters:

storageKey - Storage key.

func (*TrackCacheStorageForStorageKeyParams) Do

Do executes Storage.trackCacheStorageForStorageKey against the provided context.

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.

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

parameters:

origin - Security origin.

func (*TrackIndexedDBForOriginParams) Do

Do executes Storage.trackIndexedDBForOrigin against the provided context.

type TrackIndexedDBForStorageKeyParams

type TrackIndexedDBForStorageKeyParams struct {
	StorageKey string `json:"storageKey"` // Storage key.
}

TrackIndexedDBForStorageKeyParams registers storage key to be notified when an update occurs to its IndexedDB.

func TrackIndexedDBForStorageKey

func TrackIndexedDBForStorageKey(storageKey string) *TrackIndexedDBForStorageKeyParams

TrackIndexedDBForStorageKey registers storage key to be notified when an update occurs to its IndexedDB.

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

parameters:

storageKey - Storage key.

func (*TrackIndexedDBForStorageKeyParams) Do

Do executes Storage.trackIndexedDBForStorageKey against the provided context.

type TrustTokens

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

type Type

type Type string

Type enum of possible storage types.

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

const (
	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"
	TypeStorageBuckets Type = "storage_buckets"
	TypeAll            Type = "all"
	TypeOther          Type = "other"
)

Type values.

func (Type) String

func (t Type) String() string

String returns the Type as string value.

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.

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

parameters:

origin - Security origin.

func (*UntrackCacheStorageForOriginParams) Do

Do executes Storage.untrackCacheStorageForOrigin against the provided context.

type UntrackCacheStorageForStorageKeyParams

type UntrackCacheStorageForStorageKeyParams struct {
	StorageKey string `json:"storageKey"` // Storage key.
}

UntrackCacheStorageForStorageKeyParams unregisters storage key from receiving notifications for cache storage.

func UntrackCacheStorageForStorageKey

func UntrackCacheStorageForStorageKey(storageKey string) *UntrackCacheStorageForStorageKeyParams

UntrackCacheStorageForStorageKey unregisters storage key from receiving notifications for cache storage.

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

parameters:

storageKey - Storage key.

func (*UntrackCacheStorageForStorageKeyParams) Do

Do executes Storage.untrackCacheStorageForStorageKey against the provided context.

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.

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

parameters:

origin - Security origin.

func (*UntrackIndexedDBForOriginParams) Do

Do executes Storage.untrackIndexedDBForOrigin against the provided context.

type UntrackIndexedDBForStorageKeyParams

type UntrackIndexedDBForStorageKeyParams struct {
	StorageKey string `json:"storageKey"` // Storage key.
}

UntrackIndexedDBForStorageKeyParams unregisters storage key from receiving notifications for IndexedDB.

func UntrackIndexedDBForStorageKey

func UntrackIndexedDBForStorageKey(storageKey string) *UntrackIndexedDBForStorageKeyParams

UntrackIndexedDBForStorageKey unregisters storage key from receiving notifications for IndexedDB.

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

parameters:

storageKey - Storage key.

func (*UntrackIndexedDBForStorageKeyParams) Do

Do executes Storage.untrackIndexedDBForStorageKey against the provided context.

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.

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

Jump to

Keyboard shortcuts

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