Documentation ¶
Overview ¶
Package storage implements the Storage domain.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClearDataForOriginArgs ¶
type ClearDataForOriginArgs struct { Origin string `json:"origin"` // Security origin. StorageTypes string `json:"storageTypes"` // Comma separated origin names. }
ClearDataForOriginArgs represents the arguments for ClearDataForOrigin in the Storage domain.
func NewClearDataForOriginArgs ¶
func NewClearDataForOriginArgs(origin string, storageTypes string) *ClearDataForOriginArgs
NewClearDataForOriginArgs initializes ClearDataForOriginArgs with the required arguments.
type GetUsageAndQuotaArgs ¶
type GetUsageAndQuotaArgs struct {
Origin string `json:"origin"` // Security origin.
}
GetUsageAndQuotaArgs represents the arguments for GetUsageAndQuota in the Storage domain.
func NewGetUsageAndQuotaArgs ¶
func NewGetUsageAndQuotaArgs(origin string) *GetUsageAndQuotaArgs
NewGetUsageAndQuotaArgs initializes GetUsageAndQuotaArgs with the required arguments.
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.
type Type ¶
type Type int
Type Enum of possible storage types.
const ( TypeNotSet Type = iota TypeAppcache TypeCookies TypeFileSystems TypeIndexeddb TypeLocalStorage TypeShaderCache TypeWebsql TypeServiceWorkers TypeCacheStorage TypeAll TypeOther )
Type as enums.
func (Type) MarshalJSON ¶
MarshalJSON encodes enum into a string or null when not set.
func (*Type) UnmarshalJSON ¶
UnmarshalJSON decodes a string value into a enum.
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.