Documentation
¶
Overview ¶
Package storage provides the Chrome DevTools Protocol commands, types, and events for the Storage domain.
Generated by the pdlgen command.
Index ¶
- Constants
- type Bucket
- type BucketInfo
- type BucketsDurability
- type ClearCookiesParams
- type ClearDataForOriginParams
- type ClearDataForStorageKeyParams
- type ClearPrivateVerificationTokensParams
- type ClearTrustTokensParams
- type ClearTrustTokensReturns
- type DeletePrivateVerificationTokenParams
- type DeleteStorageBucketParams
- type EventCacheStorageContentUpdated
- type EventCacheStorageListUpdated
- type EventIndexedDBContentUpdated
- type EventIndexedDBListUpdated
- type EventPrivateVerificationTokensUpdated
- type EventStorageBucketCreatedOrUpdated
- type EventStorageBucketDeleted
- type GetCookiesParams
- type GetCookiesReturns
- type GetPrivateVerificationTokensIssuerConfigsParams
- type GetPrivateVerificationTokensIssuerConfigsReturns
- type GetPrivateVerificationTokensParams
- type GetPrivateVerificationTokensReturns
- type GetStorageKeyParams
- type GetStorageKeyReturns
- type GetTrustTokensParams
- type GetTrustTokensReturns
- type GetUsageAndQuotaParams
- type GetUsageAndQuotaReturns
- type OverrideQuotaForOriginParams
- type PrivateVerificationToken
- type PrivateVerificationTokensIssuerConfig
- type RunBounceTrackingMitigationsParams
- type RunBounceTrackingMitigationsReturns
- 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 ¶
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.
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.
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
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
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
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
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 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 ¶
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.
func (*GetPrivateVerificationTokensIssuerConfigsParams) Do ¶
func (p *GetPrivateVerificationTokensIssuerConfigsParams) Do(ctx context.Context) (configs []*PrivateVerificationTokensIssuerConfig, err error)
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 ¶
func (p *GetPrivateVerificationTokensParams) Do(ctx context.Context) (tokens []*PrivateVerificationToken, err error)
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 ¶
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 ¶
func (p *OverrideQuotaForOriginParams) Do(ctx context.Context) (err error)
Do executes Storage.overrideQuotaForOrigin against the provided context.
func (OverrideQuotaForOriginParams) WithQuotaSize ¶
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 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.
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
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.
parameters:
enable
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
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.
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.
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.
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.
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 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.
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.
parameters:
storageKey - Storage key.
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.
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.
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