Documentation
¶
Overview ¶
Package storage provides the Chrome DevTools Protocol commands, types, and events for the Storage domain.
Generated by the pdlgen command.
Index ¶
- Constants
- Variables
- type Bucket
- type BucketInfo
- type BucketsDurability
- type ClearCookiesParams
- type ClearDataForOriginParams
- type ClearDataForStorageKeyParams
- type ClearPrivateVerificationTokensParams
- type ClearTrustTokensParams
- type ClearTrustTokensResult
- type DeletePrivateVerificationTokenParams
- type DeleteStorageBucketParams
- type EventCacheStorageContentUpdated
- type EventCacheStorageListUpdated
- type EventIndexedDBContentUpdated
- type EventIndexedDBListUpdated
- type EventPrivateVerificationTokensUpdated
- type EventStorageBucketCreatedOrUpdated
- type EventStorageBucketDeleted
- type GetCookiesParams
- type GetCookiesResult
- type GetPrivateVerificationTokensIssuerConfigsResult
- type GetPrivateVerificationTokensResult
- type GetStorageKeyParams
- type GetStorageKeyResult
- type GetTrustTokensResult
- type GetUsageAndQuotaParams
- type GetUsageAndQuotaResult
- type OverrideQuotaForOriginParams
- type PrivateVerificationToken
- type PrivateVerificationTokensIssuerConfig
- type RunBounceTrackingMitigationsResult
- type SerializedStorageKey
- type SetCookiesParams
- type SetPrivateVerificationTokensTrackingParams
- type SetStorageBucketTrackingParams
- type TrackCacheStorageForOriginParams
- type TrackCacheStorageForStorageKeyParams
- type TrackIndexedDBForOriginParams
- type TrackIndexedDBForStorageKeyParams
- type TrustTokens
- type Type
- type UntrackCacheStorageForOriginParams
- type UntrackCacheStorageForStorageKeyParams
- type UntrackIndexedDBForOriginParams
- type UntrackIndexedDBForStorageKeyParams
- type UsageForType
Constants ¶
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 ¶
var CacheStorageContentUpdated = cdp.Event[EventCacheStorageContentUpdated]{Method: "Storage.cacheStorageContentUpdated"}
CacheStorageContentUpdated a cache's contents have been modified.
See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#event-cacheStorageContentUpdated
var CacheStorageListUpdated = cdp.Event[EventCacheStorageListUpdated]{Method: "Storage.cacheStorageListUpdated"}
CacheStorageListUpdated a cache has been added/deleted.
See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#event-cacheStorageListUpdated
var ClearCookies = cdp.Command[ClearCookiesParams, cdp.Empty]{Method: CommandClearCookies}
ClearCookies clears cookies.
See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-clearCookies
var ClearDataForOrigin = cdp.Command[ClearDataForOriginParams, cdp.Empty]{Method: CommandClearDataForOrigin}
ClearDataForOrigin clears storage for origin.
See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-clearDataForOrigin
var ClearDataForStorageKey = cdp.Command[ClearDataForStorageKeyParams, cdp.Empty]{Method: CommandClearDataForStorageKey}
ClearDataForStorageKey clears storage for storage key.
See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-clearDataForStorageKey
var ClearPrivateVerificationTokens = cdp.Command[ClearPrivateVerificationTokensParams, cdp.Empty]{Method: CommandClearPrivateVerificationTokens}
ClearPrivateVerificationTokens removes all Private Verification Tokens issued by the provided issuerOrigin.
See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-clearPrivateVerificationTokens
var ClearTrustTokens = cdp.Command[ClearTrustTokensParams, ClearTrustTokensResult]{Method: CommandClearTrustTokens}
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
var DeletePrivateVerificationToken = cdp.Command[DeletePrivateVerificationTokenParams, cdp.Empty]{Method: CommandDeletePrivateVerificationToken}
DeletePrivateVerificationToken removes a specific Private Verification Token by its ID.
See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-deletePrivateVerificationToken
var DeleteStorageBucket = cdp.Command[DeleteStorageBucketParams, cdp.Empty]{Method: CommandDeleteStorageBucket}
DeleteStorageBucket deletes the Storage Bucket with the given storage key and bucket name.
See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-deleteStorageBucket
var GetCookies = cdp.Command[GetCookiesParams, GetCookiesResult]{Method: CommandGetCookies}
GetCookies returns all browser cookies.
See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-getCookies
var GetPrivateVerificationTokens = cdp.Command[cdp.Empty, GetPrivateVerificationTokensResult]{Method: CommandGetPrivateVerificationTokens}
GetPrivateVerificationTokens returns all stored Private Verification Tokens for the current browsing context.
See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-getPrivateVerificationTokens
var GetPrivateVerificationTokensIssuerConfigs = cdp.Command[cdp.Empty, GetPrivateVerificationTokensIssuerConfigsResult]{Method: CommandGetPrivateVerificationTokensIssuerConfigs}
GetPrivateVerificationTokensIssuerConfigs returns the configured Private Verification Tokens issuers and their redeemer origins.
var GetStorageKey = cdp.Command[GetStorageKeyParams, GetStorageKeyResult]{Method: CommandGetStorageKey}
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
var GetTrustTokens = cdp.Command[cdp.Empty, GetTrustTokensResult]{Method: CommandGetTrustTokens}
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
var GetUsageAndQuota = cdp.Command[GetUsageAndQuotaParams, GetUsageAndQuotaResult]{Method: CommandGetUsageAndQuota}
GetUsageAndQuota returns usage and quota in bytes.
See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-getUsageAndQuota
var IndexedDBContentUpdated = cdp.Event[EventIndexedDBContentUpdated]{Method: "Storage.indexedDBContentUpdated"}
IndexedDBContentUpdated the origin's IndexedDB object store has been modified.
See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#event-indexedDBContentUpdated
var IndexedDBListUpdated = cdp.Event[EventIndexedDBListUpdated]{Method: "Storage.indexedDBListUpdated"}
IndexedDBListUpdated the origin's IndexedDB database list has been modified.
See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#event-indexedDBListUpdated
var OverrideQuotaForOrigin = cdp.Command[OverrideQuotaForOriginParams, cdp.Empty]{Method: CommandOverrideQuotaForOrigin}
OverrideQuotaForOrigin override quota for the specified origin.
See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-overrideQuotaForOrigin
var PrivateVerificationTokensUpdated = cdp.Event[EventPrivateVerificationTokensUpdated]{Method: "Storage.privateVerificationTokensUpdated"}
PrivateVerificationTokensUpdated private Verification Tokens have been stored or deleted.
var RunBounceTrackingMitigations = cdp.Command[cdp.Empty, RunBounceTrackingMitigationsResult]{Method: CommandRunBounceTrackingMitigations}
RunBounceTrackingMitigations deletes state for sites identified as potential bounce trackers, immediately.
See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-runBounceTrackingMitigations
var SetCookies = cdp.Command[SetCookiesParams, cdp.Empty]{Method: CommandSetCookies}
SetCookies sets given cookies.
See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-setCookies
var SetPrivateVerificationTokensTracking = cdp.Command[SetPrivateVerificationTokensTrackingParams, cdp.Empty]{Method: CommandSetPrivateVerificationTokensTracking}
SetPrivateVerificationTokensTracking set tracking for Private Verification Tokens.
var SetStorageBucketTracking = cdp.Command[SetStorageBucketTrackingParams, cdp.Empty]{Method: CommandSetStorageBucketTracking}
SetStorageBucketTracking set tracking for a storage key's buckets.
See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-setStorageBucketTracking
var StorageBucketCreatedOrUpdated = cdp.Event[EventStorageBucketCreatedOrUpdated]{Method: "Storage.storageBucketCreatedOrUpdated"}
StorageBucketCreatedOrUpdated [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#event-storageBucketCreatedOrUpdated
var StorageBucketDeleted = cdp.Event[EventStorageBucketDeleted]{Method: "Storage.storageBucketDeleted"}
StorageBucketDeleted [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#event-storageBucketDeleted
var TrackCacheStorageForOrigin = cdp.Command[TrackCacheStorageForOriginParams, cdp.Empty]{Method: CommandTrackCacheStorageForOrigin}
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
var TrackCacheStorageForStorageKey = cdp.Command[TrackCacheStorageForStorageKeyParams, cdp.Empty]{Method: CommandTrackCacheStorageForStorageKey}
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
var TrackIndexedDBForOrigin = cdp.Command[TrackIndexedDBForOriginParams, cdp.Empty]{Method: CommandTrackIndexedDBForOrigin}
TrackIndexedDBForOrigin registers origin to be notified when an update occurs to its IndexedDB.
See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-trackIndexedDBForOrigin
var TrackIndexedDBForStorageKey = cdp.Command[TrackIndexedDBForStorageKeyParams, cdp.Empty]{Method: CommandTrackIndexedDBForStorageKey}
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
var UntrackCacheStorageForOrigin = cdp.Command[UntrackCacheStorageForOriginParams, cdp.Empty]{Method: CommandUntrackCacheStorageForOrigin}
UntrackCacheStorageForOrigin unregisters origin from receiving notifications for cache storage.
See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-untrackCacheStorageForOrigin
var UntrackCacheStorageForStorageKey = cdp.Command[UntrackCacheStorageForStorageKeyParams, cdp.Empty]{Method: CommandUntrackCacheStorageForStorageKey}
UntrackCacheStorageForStorageKey unregisters storage key from receiving notifications for cache storage.
var UntrackIndexedDBForOrigin = cdp.Command[UntrackIndexedDBForOriginParams, cdp.Empty]{Method: CommandUntrackIndexedDBForOrigin}
UntrackIndexedDBForOrigin unregisters origin from receiving notifications for IndexedDB.
See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-untrackIndexedDBForOrigin
var UntrackIndexedDBForStorageKey = cdp.Command[UntrackIndexedDBForStorageKeyParams, cdp.Empty]{Method: CommandUntrackIndexedDBForStorageKey}
UntrackIndexedDBForStorageKey unregisters storage key from receiving notifications for IndexedDB.
See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-untrackIndexedDBForStorageKey
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 are the parameters of the command Storage.clearCookies.
type ClearDataForOriginParams ¶
type ClearDataForOriginParams struct {
Origin string `json:"origin"` // Security origin.
StorageTypes string `json:"storageTypes"` // Comma separated list of StorageType to clear.
}
ClearDataForOriginParams are the parameters of the command Storage.clearDataForOrigin.
type ClearDataForStorageKeyParams ¶
type ClearDataForStorageKeyParams struct {
StorageKey string `json:"storageKey"` // Storage key.
StorageTypes string `json:"storageTypes"` // Comma separated list of StorageType to clear.
}
ClearDataForStorageKeyParams are the parameters of the command Storage.clearDataForStorageKey.
type ClearPrivateVerificationTokensParams ¶
type ClearPrivateVerificationTokensParams struct {
IssuerOrigin string `json:"issuerOrigin"`
}
ClearPrivateVerificationTokensParams are the parameters of the command Storage.clearPrivateVerificationTokens.
type ClearTrustTokensParams ¶
type ClearTrustTokensParams struct {
IssuerOrigin string `json:"issuerOrigin"`
}
ClearTrustTokensParams are the parameters of the command Storage.clearTrustTokens.
type ClearTrustTokensResult ¶ added in v0.157.3
type ClearTrustTokensResult struct {
DidDeleteTokens bool `json:"didDeleteTokens"` // True if any tokens were deleted, false otherwise.
}
ClearTrustTokensResult is the result of the command Storage.clearTrustTokens.
type DeletePrivateVerificationTokenParams ¶
type DeletePrivateVerificationTokenParams struct {
TokenID string `json:"tokenId"`
}
DeletePrivateVerificationTokenParams are the parameters of the command Storage.deletePrivateVerificationToken.
type DeleteStorageBucketParams ¶
type DeleteStorageBucketParams struct {
Bucket *Bucket `json:"bucket"`
}
DeleteStorageBucketParams are the parameters of the command Storage.deleteStorageBucket.
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.
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 are the parameters of the command Storage.getCookies.
type GetCookiesResult ¶ added in v0.157.3
type GetCookiesResult struct {
Cookies []*network.Cookie `json:"cookies,omitempty,omitzero"` // Array of cookie objects.
}
GetCookiesResult is the result of the command Storage.getCookies.
type GetPrivateVerificationTokensIssuerConfigsResult ¶ added in v0.157.3
type GetPrivateVerificationTokensIssuerConfigsResult struct {
Configs []*PrivateVerificationTokensIssuerConfig `json:"configs,omitempty,omitzero"`
}
GetPrivateVerificationTokensIssuerConfigsResult is the result of the command Storage.getPrivateVerificationTokensIssuerConfigs.
type GetPrivateVerificationTokensResult ¶ added in v0.157.3
type GetPrivateVerificationTokensResult struct {
Tokens []*PrivateVerificationToken `json:"tokens,omitempty,omitzero"`
}
GetPrivateVerificationTokensResult is the result of the command Storage.getPrivateVerificationTokens.
type GetStorageKeyParams ¶
GetStorageKeyParams are the parameters of the command Storage.getStorageKey.
type GetStorageKeyResult ¶ added in v0.157.3
type GetStorageKeyResult struct {
StorageKey SerializedStorageKey `json:"storageKey,omitempty,omitzero"`
}
GetStorageKeyResult is the result of the command Storage.getStorageKey.
type GetTrustTokensResult ¶ added in v0.157.3
type GetTrustTokensResult struct {
Tokens []*TrustTokens `json:"tokens,omitempty,omitzero"`
}
GetTrustTokensResult is the result of the command Storage.getTrustTokens.
type GetUsageAndQuotaParams ¶
type GetUsageAndQuotaParams struct {
Origin string `json:"origin"` // Security origin.
}
GetUsageAndQuotaParams are the parameters of the command Storage.getUsageAndQuota.
type GetUsageAndQuotaResult ¶ added in v0.157.3
type GetUsageAndQuotaResult 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).
}
GetUsageAndQuotaResult is the result of the command Storage.getUsageAndQuota.
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 are the parameters of the command Storage.overrideQuotaForOrigin.
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 []byte `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.
type RunBounceTrackingMitigationsResult ¶ added in v0.157.3
type RunBounceTrackingMitigationsResult struct {
DeletedSites []string `json:"deletedSites,omitempty,omitzero"`
}
RunBounceTrackingMitigationsResult is the result of the command Storage.runBounceTrackingMitigations.
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 are the parameters of the command Storage.setCookies.
type SetPrivateVerificationTokensTrackingParams ¶
type SetPrivateVerificationTokensTrackingParams struct {
Enable bool `json:"enable"`
}
SetPrivateVerificationTokensTrackingParams are the parameters of the command Storage.setPrivateVerificationTokensTracking.
type SetStorageBucketTrackingParams ¶
type SetStorageBucketTrackingParams struct {
StorageKey string `json:"storageKey"`
Enable bool `json:"enable"`
}
SetStorageBucketTrackingParams are the parameters of the command Storage.setStorageBucketTracking.
type TrackCacheStorageForOriginParams ¶
type TrackCacheStorageForOriginParams struct {
Origin string `json:"origin"` // Security origin.
}
TrackCacheStorageForOriginParams are the parameters of the command Storage.trackCacheStorageForOrigin.
type TrackCacheStorageForStorageKeyParams ¶
type TrackCacheStorageForStorageKeyParams struct {
StorageKey string `json:"storageKey"` // Storage key.
}
TrackCacheStorageForStorageKeyParams are the parameters of the command Storage.trackCacheStorageForStorageKey.
type TrackIndexedDBForOriginParams ¶
type TrackIndexedDBForOriginParams struct {
Origin string `json:"origin"` // Security origin.
}
TrackIndexedDBForOriginParams are the parameters of the command Storage.trackIndexedDBForOrigin.
type TrackIndexedDBForStorageKeyParams ¶
type TrackIndexedDBForStorageKeyParams struct {
StorageKey string `json:"storageKey"` // Storage key.
}
TrackIndexedDBForStorageKeyParams are the parameters of the command Storage.trackIndexedDBForStorageKey.
type TrustTokens ¶
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.
type UntrackCacheStorageForOriginParams ¶
type UntrackCacheStorageForOriginParams struct {
Origin string `json:"origin"` // Security origin.
}
UntrackCacheStorageForOriginParams are the parameters of the command Storage.untrackCacheStorageForOrigin.
type UntrackCacheStorageForStorageKeyParams ¶
type UntrackCacheStorageForStorageKeyParams struct {
StorageKey string `json:"storageKey"` // Storage key.
}
UntrackCacheStorageForStorageKeyParams are the parameters of the command Storage.untrackCacheStorageForStorageKey.
type UntrackIndexedDBForOriginParams ¶
type UntrackIndexedDBForOriginParams struct {
Origin string `json:"origin"` // Security origin.
}
UntrackIndexedDBForOriginParams are the parameters of the command Storage.untrackIndexedDBForOrigin.
type UntrackIndexedDBForStorageKeyParams ¶
type UntrackIndexedDBForStorageKeyParams struct {
StorageKey string `json:"storageKey"` // Storage key.
}
UntrackIndexedDBForStorageKeyParams are the parameters of the command Storage.untrackIndexedDBForStorageKey.
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