storage

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommandStorageClearDataForOrigin           = "Storage.clearDataForOrigin"
	CommandStorageGetCookies                   = "Storage.getCookies"
	CommandStorageSetCookies                   = "Storage.setCookies"
	CommandStorageClearCookies                 = "Storage.clearCookies"
	CommandStorageGetUsageAndQuota             = "Storage.getUsageAndQuota"
	CommandStorageTrackCacheStorageForOrigin   = "Storage.trackCacheStorageForOrigin"
	CommandStorageTrackIndexedDBForOrigin      = "Storage.trackIndexedDBForOrigin"
	CommandStorageUntrackCacheStorageForOrigin = "Storage.untrackCacheStorageForOrigin"
	CommandStorageUntrackIndexedDBForOrigin    = "Storage.untrackIndexedDBForOrigin"
)
View Source
const (
	EventStorageCacheStorageContentUpdated = "Storage.cacheStorageContentUpdated"
	EventStorageCacheStorageListUpdated    = "Storage.cacheStorageListUpdated"
	EventStorageIndexedDBContentUpdated    = "Storage.indexedDBContentUpdated"
	EventStorageIndexedDBListUpdated       = "Storage.indexedDBListUpdated"
)

Variables

Functions

func GetEventReply

func GetEventReply(event string) (json.Unmarshaler, bool)

Types

type CacheStorageContentUpdatedReply

type CacheStorageContentUpdatedReply struct {
	Origin    string `json:"origin"`    // Origin to update.
	CacheName string `json:"cacheName"` // Name of cache in origin.
}

CacheStorageContentUpdatedReply is the reply for CacheStorageContentUpdated events.

func (*CacheStorageContentUpdatedReply) GetFrameID

func (a *CacheStorageContentUpdatedReply) GetFrameID() string

CacheStorageContentUpdatedReply returns the FrameID for CacheStorageContentUpdated in the Storage domain.

func (*CacheStorageContentUpdatedReply) MatchFrameID

func (a *CacheStorageContentUpdatedReply) MatchFrameID(frameID string, m []byte) (bool, error)

CacheStorageContentUpdatedReply returns whether or not the FrameID matches the reply value for CacheStorageContentUpdated in the Storage domain.

func (*CacheStorageContentUpdatedReply) UnmarshalJSON

func (a *CacheStorageContentUpdatedReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for CacheStorageContentUpdated in the Storage domain.

type CacheStorageListUpdatedReply

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

CacheStorageListUpdatedReply is the reply for CacheStorageListUpdated events.

func (*CacheStorageListUpdatedReply) GetFrameID

func (a *CacheStorageListUpdatedReply) GetFrameID() string

CacheStorageListUpdatedReply returns the FrameID for CacheStorageListUpdated in the Storage domain.

func (*CacheStorageListUpdatedReply) MatchFrameID

func (a *CacheStorageListUpdatedReply) MatchFrameID(frameID string, m []byte) (bool, error)

CacheStorageListUpdatedReply returns whether or not the FrameID matches the reply value for CacheStorageListUpdated in the Storage domain.

func (*CacheStorageListUpdatedReply) UnmarshalJSON

func (a *CacheStorageListUpdatedReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for CacheStorageListUpdated in the Storage domain.

type ClearCookiesArgs

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

ClearCookiesArgs represents the arguments for ClearCookies in the Storage domain.

func (*ClearCookiesArgs) MarshalJSON

func (a *ClearCookiesArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for ClearCookies in the Storage domain.

func (*ClearCookiesArgs) UnmarshalJSON

func (a *ClearCookiesArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for ClearCookies in the Storage domain.

type ClearCookiesReply

type ClearCookiesReply struct {
}

ClearCookiesReply represents the return values for ClearCookies in the Storage domain.

func (*ClearCookiesReply) GetFrameID

func (a *ClearCookiesReply) GetFrameID() string

ClearCookiesReply returns the FrameID value for ClearCookies in the Storage domain.

func (*ClearCookiesReply) MatchFrameID

func (a *ClearCookiesReply) MatchFrameID(frameID string, m []byte) (bool, error)

ClearCookiesReply returns whether or not the FrameID matches the reply value for ClearCookies in the Storage domain.

func (*ClearCookiesReply) UnmarshalJSON

func (a *ClearCookiesReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for ClearCookies in the Storage domain.

type ClearDataForOriginArgs

type ClearDataForOriginArgs struct {
	Origin       string `json:"origin"`       // Security origin.
	StorageTypes string `json:"storageTypes"` // Comma separated list of StorageType to clear.
}

ClearDataForOriginArgs represents the arguments for ClearDataForOrigin in the Storage domain.

func (*ClearDataForOriginArgs) MarshalJSON

func (a *ClearDataForOriginArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for ClearDataForOrigin in the Storage domain.

func (*ClearDataForOriginArgs) UnmarshalJSON

func (a *ClearDataForOriginArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for ClearDataForOrigin in the Storage domain.

type ClearDataForOriginReply

type ClearDataForOriginReply struct {
}

ClearDataForOriginReply represents the return values for ClearDataForOrigin in the Storage domain.

func (*ClearDataForOriginReply) GetFrameID

func (a *ClearDataForOriginReply) GetFrameID() string

ClearDataForOriginReply returns the FrameID value for ClearDataForOrigin in the Storage domain.

func (*ClearDataForOriginReply) MatchFrameID

func (a *ClearDataForOriginReply) MatchFrameID(frameID string, m []byte) (bool, error)

ClearDataForOriginReply returns whether or not the FrameID matches the reply value for ClearDataForOrigin in the Storage domain.

func (*ClearDataForOriginReply) UnmarshalJSON

func (a *ClearDataForOriginReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for ClearDataForOrigin in the Storage domain.

type GetCookiesArgs

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

GetCookiesArgs represents the arguments for GetCookies in the Storage domain.

func (*GetCookiesArgs) MarshalJSON

func (a *GetCookiesArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for GetCookies in the Storage domain.

func (*GetCookiesArgs) UnmarshalJSON

func (a *GetCookiesArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetCookies in the Storage domain.

type GetCookiesReply

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

GetCookiesReply represents the return values for GetCookies in the Storage domain.

func (*GetCookiesReply) GetFrameID

func (a *GetCookiesReply) GetFrameID() string

GetCookiesReply returns the FrameID value for GetCookies in the Storage domain.

func (*GetCookiesReply) MatchFrameID

func (a *GetCookiesReply) MatchFrameID(frameID string, m []byte) (bool, error)

GetCookiesReply returns whether or not the FrameID matches the reply value for GetCookies in the Storage domain.

func (*GetCookiesReply) UnmarshalJSON

func (a *GetCookiesReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetCookies in the Storage domain.

type GetUsageAndQuotaArgs

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

GetUsageAndQuotaArgs represents the arguments for GetUsageAndQuota in the Storage domain.

func (*GetUsageAndQuotaArgs) MarshalJSON

func (a *GetUsageAndQuotaArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for GetUsageAndQuota in the Storage domain.

func (*GetUsageAndQuotaArgs) UnmarshalJSON

func (a *GetUsageAndQuotaArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetUsageAndQuota in the Storage domain.

type GetUsageAndQuotaReply

type GetUsageAndQuotaReply struct {
	Usage          float64        `json:"usage"`          // Storage usage (bytes).
	Quota          float64        `json:"quota"`          // Storage quota (bytes).
	UsageBreakdown []UsageForType `json:"usageBreakdown"` // Storage usage per type (bytes).
}

GetUsageAndQuotaReply represents the return values for GetUsageAndQuota in the Storage domain.

func (*GetUsageAndQuotaReply) GetFrameID

func (a *GetUsageAndQuotaReply) GetFrameID() string

GetUsageAndQuotaReply returns the FrameID value for GetUsageAndQuota in the Storage domain.

func (*GetUsageAndQuotaReply) MatchFrameID

func (a *GetUsageAndQuotaReply) MatchFrameID(frameID string, m []byte) (bool, error)

GetUsageAndQuotaReply returns whether or not the FrameID matches the reply value for GetUsageAndQuota in the Storage domain.

func (*GetUsageAndQuotaReply) UnmarshalJSON

func (a *GetUsageAndQuotaReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for GetUsageAndQuota in the Storage domain.

type IndexedDBContentUpdatedReply

type IndexedDBContentUpdatedReply struct {
	Origin          string `json:"origin"`          // Origin to update.
	DatabaseName    string `json:"databaseName"`    // Database to update.
	ObjectStoreName string `json:"objectStoreName"` // ObjectStore to update.
}

IndexedDBContentUpdatedReply is the reply for IndexedDBContentUpdated events.

func (*IndexedDBContentUpdatedReply) GetFrameID

func (a *IndexedDBContentUpdatedReply) GetFrameID() string

IndexedDBContentUpdatedReply returns the FrameID for IndexedDBContentUpdated in the Storage domain.

func (*IndexedDBContentUpdatedReply) MatchFrameID

func (a *IndexedDBContentUpdatedReply) MatchFrameID(frameID string, m []byte) (bool, error)

IndexedDBContentUpdatedReply returns whether or not the FrameID matches the reply value for IndexedDBContentUpdated in the Storage domain.

func (*IndexedDBContentUpdatedReply) UnmarshalJSON

func (a *IndexedDBContentUpdatedReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for IndexedDBContentUpdated in the Storage domain.

type IndexedDBListUpdatedReply

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

IndexedDBListUpdatedReply is the reply for IndexedDBListUpdated events.

func (*IndexedDBListUpdatedReply) GetFrameID

func (a *IndexedDBListUpdatedReply) GetFrameID() string

IndexedDBListUpdatedReply returns the FrameID for IndexedDBListUpdated in the Storage domain.

func (*IndexedDBListUpdatedReply) MatchFrameID

func (a *IndexedDBListUpdatedReply) MatchFrameID(frameID string, m []byte) (bool, error)

IndexedDBListUpdatedReply returns whether or not the FrameID matches the reply value for IndexedDBListUpdated in the Storage domain.

func (*IndexedDBListUpdatedReply) UnmarshalJSON

func (a *IndexedDBListUpdatedReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for IndexedDBListUpdated in the Storage domain.

type SetCookiesArgs

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

SetCookiesArgs represents the arguments for SetCookies in the Storage domain.

func (*SetCookiesArgs) MarshalJSON

func (a *SetCookiesArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for SetCookies in the Storage domain.

func (*SetCookiesArgs) UnmarshalJSON

func (a *SetCookiesArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for SetCookies in the Storage domain.

type SetCookiesReply

type SetCookiesReply struct {
}

SetCookiesReply represents the return values for SetCookies in the Storage domain.

func (*SetCookiesReply) GetFrameID

func (a *SetCookiesReply) GetFrameID() string

SetCookiesReply returns the FrameID value for SetCookies in the Storage domain.

func (*SetCookiesReply) MatchFrameID

func (a *SetCookiesReply) MatchFrameID(frameID string, m []byte) (bool, error)

SetCookiesReply returns whether or not the FrameID matches the reply value for SetCookies in the Storage domain.

func (*SetCookiesReply) UnmarshalJSON

func (a *SetCookiesReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for SetCookies in the Storage domain.

type TrackCacheStorageForOriginArgs

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

TrackCacheStorageForOriginArgs represents the arguments for TrackCacheStorageForOrigin in the Storage domain.

func (*TrackCacheStorageForOriginArgs) MarshalJSON

func (a *TrackCacheStorageForOriginArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for TrackCacheStorageForOrigin in the Storage domain.

func (*TrackCacheStorageForOriginArgs) UnmarshalJSON

func (a *TrackCacheStorageForOriginArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for TrackCacheStorageForOrigin in the Storage domain.

type TrackCacheStorageForOriginReply

type TrackCacheStorageForOriginReply struct {
}

TrackCacheStorageForOriginReply represents the return values for TrackCacheStorageForOrigin in the Storage domain.

func (*TrackCacheStorageForOriginReply) GetFrameID

func (a *TrackCacheStorageForOriginReply) GetFrameID() string

TrackCacheStorageForOriginReply returns the FrameID value for TrackCacheStorageForOrigin in the Storage domain.

func (*TrackCacheStorageForOriginReply) MatchFrameID

func (a *TrackCacheStorageForOriginReply) MatchFrameID(frameID string, m []byte) (bool, error)

TrackCacheStorageForOriginReply returns whether or not the FrameID matches the reply value for TrackCacheStorageForOrigin in the Storage domain.

func (*TrackCacheStorageForOriginReply) UnmarshalJSON

func (a *TrackCacheStorageForOriginReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for TrackCacheStorageForOrigin in the Storage domain.

type TrackIndexedDBForOriginArgs

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

TrackIndexedDBForOriginArgs represents the arguments for TrackIndexedDBForOrigin in the Storage domain.

func (*TrackIndexedDBForOriginArgs) MarshalJSON

func (a *TrackIndexedDBForOriginArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for TrackIndexedDBForOrigin in the Storage domain.

func (*TrackIndexedDBForOriginArgs) UnmarshalJSON

func (a *TrackIndexedDBForOriginArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for TrackIndexedDBForOrigin in the Storage domain.

type TrackIndexedDBForOriginReply

type TrackIndexedDBForOriginReply struct {
}

TrackIndexedDBForOriginReply represents the return values for TrackIndexedDBForOrigin in the Storage domain.

func (*TrackIndexedDBForOriginReply) GetFrameID

func (a *TrackIndexedDBForOriginReply) GetFrameID() string

TrackIndexedDBForOriginReply returns the FrameID value for TrackIndexedDBForOrigin in the Storage domain.

func (*TrackIndexedDBForOriginReply) MatchFrameID

func (a *TrackIndexedDBForOriginReply) MatchFrameID(frameID string, m []byte) (bool, error)

TrackIndexedDBForOriginReply returns whether or not the FrameID matches the reply value for TrackIndexedDBForOrigin in the Storage domain.

func (*TrackIndexedDBForOriginReply) UnmarshalJSON

func (a *TrackIndexedDBForOriginReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for TrackIndexedDBForOrigin in the Storage domain.

type Type

type Type string

Type Enum of possible storage types.

const (
	TypeNotSet         Type = ""
	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 as enums.

func (Type) String

func (e Type) String() string

func (Type) Valid

func (e Type) Valid() bool

type Unmarshaler

type Unmarshaler func() json.Unmarshaler

type UntrackCacheStorageForOriginArgs

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

UntrackCacheStorageForOriginArgs represents the arguments for UntrackCacheStorageForOrigin in the Storage domain.

func (*UntrackCacheStorageForOriginArgs) MarshalJSON

func (a *UntrackCacheStorageForOriginArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for UntrackCacheStorageForOrigin in the Storage domain.

func (*UntrackCacheStorageForOriginArgs) UnmarshalJSON

func (a *UntrackCacheStorageForOriginArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for UntrackCacheStorageForOrigin in the Storage domain.

type UntrackCacheStorageForOriginReply

type UntrackCacheStorageForOriginReply struct {
}

UntrackCacheStorageForOriginReply represents the return values for UntrackCacheStorageForOrigin in the Storage domain.

func (*UntrackCacheStorageForOriginReply) GetFrameID

func (a *UntrackCacheStorageForOriginReply) GetFrameID() string

UntrackCacheStorageForOriginReply returns the FrameID value for UntrackCacheStorageForOrigin in the Storage domain.

func (*UntrackCacheStorageForOriginReply) MatchFrameID

func (a *UntrackCacheStorageForOriginReply) MatchFrameID(frameID string, m []byte) (bool, error)

UntrackCacheStorageForOriginReply returns whether or not the FrameID matches the reply value for UntrackCacheStorageForOrigin in the Storage domain.

func (*UntrackCacheStorageForOriginReply) UnmarshalJSON

func (a *UntrackCacheStorageForOriginReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for UntrackCacheStorageForOrigin in the Storage domain.

type UntrackIndexedDBForOriginArgs

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

UntrackIndexedDBForOriginArgs represents the arguments for UntrackIndexedDBForOrigin in the Storage domain.

func (*UntrackIndexedDBForOriginArgs) MarshalJSON

func (a *UntrackIndexedDBForOriginArgs) MarshalJSON() ([]byte, error)

Marshall the byte array into a return value for UntrackIndexedDBForOrigin in the Storage domain.

func (*UntrackIndexedDBForOriginArgs) UnmarshalJSON

func (a *UntrackIndexedDBForOriginArgs) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for UntrackIndexedDBForOrigin in the Storage domain.

type UntrackIndexedDBForOriginReply

type UntrackIndexedDBForOriginReply struct {
}

UntrackIndexedDBForOriginReply represents the return values for UntrackIndexedDBForOrigin in the Storage domain.

func (*UntrackIndexedDBForOriginReply) GetFrameID

func (a *UntrackIndexedDBForOriginReply) GetFrameID() string

UntrackIndexedDBForOriginReply returns the FrameID value for UntrackIndexedDBForOrigin in the Storage domain.

func (*UntrackIndexedDBForOriginReply) MatchFrameID

func (a *UntrackIndexedDBForOriginReply) MatchFrameID(frameID string, m []byte) (bool, error)

UntrackIndexedDBForOriginReply returns whether or not the FrameID matches the reply value for UntrackIndexedDBForOrigin in the Storage domain.

func (*UntrackIndexedDBForOriginReply) UnmarshalJSON

func (a *UntrackIndexedDBForOriginReply) UnmarshalJSON(b []byte) error

Unmarshal the byte array into a return value for UntrackIndexedDBForOrigin in the Storage domain.

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.

Jump to

Keyboard shortcuts

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