Documentation ¶
Overview ¶
Package storage provides the Chrome Debugging Protocol commands, types, and events for the Storage domain.
Generated by the chromedp-gen command.
Index ¶
- type ClearDataForOriginParams
- func (p *ClearDataForOriginParams) Do(ctxt context.Context, h cdp.Handler) (err error)
- func (v ClearDataForOriginParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v ClearDataForOriginParams) MarshalJSON() ([]byte, error)
- func (v *ClearDataForOriginParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *ClearDataForOriginParams) UnmarshalJSON(data []byte) error
- type GetUsageAndQuotaParams
- func (p *GetUsageAndQuotaParams) Do(ctxt context.Context, h cdp.Handler) (usage float64, quota float64, err error)
- func (v GetUsageAndQuotaParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetUsageAndQuotaParams) MarshalJSON() ([]byte, error)
- func (v *GetUsageAndQuotaParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetUsageAndQuotaParams) UnmarshalJSON(data []byte) error
- type GetUsageAndQuotaReturns
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClearDataForOriginParams ¶
type ClearDataForOriginParams struct { Origin string `json:"origin"` // Security origin. StorageTypes string `json:"storageTypes"` // Comma separated origin names. }
ClearDataForOriginParams clears storage for origin.
func ClearDataForOrigin ¶
func ClearDataForOrigin(origin string, storageTypes string) *ClearDataForOriginParams
ClearDataForOrigin clears storage for origin.
parameters:
origin - Security origin. storageTypes - Comma separated origin names.
func (*ClearDataForOriginParams) Do ¶
Do executes Storage.clearDataForOrigin against the provided context and target handler.
func (ClearDataForOriginParams) MarshalEasyJSON ¶
func (v ClearDataForOriginParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ClearDataForOriginParams) MarshalJSON ¶
func (v ClearDataForOriginParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ClearDataForOriginParams) UnmarshalEasyJSON ¶
func (v *ClearDataForOriginParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ClearDataForOriginParams) UnmarshalJSON ¶
func (v *ClearDataForOriginParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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.
parameters:
origin - Security origin.
func (*GetUsageAndQuotaParams) Do ¶
func (p *GetUsageAndQuotaParams) Do(ctxt context.Context, h cdp.Handler) (usage float64, quota float64, err error)
Do executes Storage.getUsageAndQuota against the provided context and target handler.
returns:
usage - Storage usage (bytes). quota - Storage quota (bytes).
func (GetUsageAndQuotaParams) MarshalEasyJSON ¶
func (v GetUsageAndQuotaParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetUsageAndQuotaParams) MarshalJSON ¶
func (v GetUsageAndQuotaParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetUsageAndQuotaParams) UnmarshalEasyJSON ¶
func (v *GetUsageAndQuotaParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetUsageAndQuotaParams) UnmarshalJSON ¶
func (v *GetUsageAndQuotaParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetUsageAndQuotaReturns ¶
type GetUsageAndQuotaReturns struct { Usage float64 `json:"usage,omitempty"` // Storage usage (bytes). Quota float64 `json:"quota,omitempty"` // Storage quota (bytes). }
GetUsageAndQuotaReturns return values.
func (GetUsageAndQuotaReturns) MarshalEasyJSON ¶
func (v GetUsageAndQuotaReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetUsageAndQuotaReturns) MarshalJSON ¶
func (v GetUsageAndQuotaReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetUsageAndQuotaReturns) UnmarshalEasyJSON ¶
func (v *GetUsageAndQuotaReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetUsageAndQuotaReturns) UnmarshalJSON ¶
func (v *GetUsageAndQuotaReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Type ¶
type Type string
Type enum of possible storage types.
const ( TypeAppcache Type = "appcache" TypeCookies Type = "cookies" TypeFileSystems Type = "file_systems" TypeIndexeddb Type = "indexeddb" TypeLocalStorage Type = "local_storage" TypeShaderCache Type = "shader_cache" TypeWebsql Type = "websql" TypeServiceWorkers Type = "service_workers" TypeCacheStorage Type = "cache_storage" TypeAll Type = "all" )
Type values.
func (Type) MarshalEasyJSON ¶
MarshalEasyJSON satisfies easyjson.Marshaler.
func (Type) MarshalJSON ¶
MarshalJSON satisfies json.Marshaler.
func (*Type) UnmarshalEasyJSON ¶
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*Type) UnmarshalJSON ¶
UnmarshalJSON satisfies json.Unmarshaler.