blob: 1ff515a0185bdf471e2c85bf5acc5c967dfdc1ce [file] [log] [blame] [edit]
// Code generated by cdpgen. DO NOT EDIT.
package storage
// ClearDataForOriginArgs represents the arguments for ClearDataForOrigin in the Storage domain.
type ClearDataForOriginArgs struct {
Origin string `json:"origin"` // Security origin.
StorageTypes string `json:"storageTypes"` // Comma separated list of StorageType to clear.
}
// NewClearDataForOriginArgs initializes ClearDataForOriginArgs with the required arguments.
func NewClearDataForOriginArgs(origin string, storageTypes string) *ClearDataForOriginArgs {
args := new(ClearDataForOriginArgs)
args.Origin = origin
args.StorageTypes = storageTypes
return args
}
// GetUsageAndQuotaArgs represents the arguments for GetUsageAndQuota in the Storage domain.
type GetUsageAndQuotaArgs struct {
Origin string `json:"origin"` // Security origin.
}
// NewGetUsageAndQuotaArgs initializes GetUsageAndQuotaArgs with the required arguments.
func NewGetUsageAndQuotaArgs(origin string) *GetUsageAndQuotaArgs {
args := new(GetUsageAndQuotaArgs)
args.Origin = origin
return args
}
// GetUsageAndQuotaReply represents the return values for GetUsageAndQuota in the Storage domain.
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).
}
// TrackCacheStorageForOriginArgs represents the arguments for TrackCacheStorageForOrigin in the Storage domain.
type TrackCacheStorageForOriginArgs struct {
Origin string `json:"origin"` // Security origin.
}
// NewTrackCacheStorageForOriginArgs initializes TrackCacheStorageForOriginArgs with the required arguments.
func NewTrackCacheStorageForOriginArgs(origin string) *TrackCacheStorageForOriginArgs {
args := new(TrackCacheStorageForOriginArgs)
args.Origin = origin
return args
}
// TrackIndexedDBForOriginArgs represents the arguments for TrackIndexedDBForOrigin in the Storage domain.
type TrackIndexedDBForOriginArgs struct {
Origin string `json:"origin"` // Security origin.
}
// NewTrackIndexedDBForOriginArgs initializes TrackIndexedDBForOriginArgs with the required arguments.
func NewTrackIndexedDBForOriginArgs(origin string) *TrackIndexedDBForOriginArgs {
args := new(TrackIndexedDBForOriginArgs)
args.Origin = origin
return args
}
// UntrackCacheStorageForOriginArgs represents the arguments for UntrackCacheStorageForOrigin in the Storage domain.
type UntrackCacheStorageForOriginArgs struct {
Origin string `json:"origin"` // Security origin.
}
// NewUntrackCacheStorageForOriginArgs initializes UntrackCacheStorageForOriginArgs with the required arguments.
func NewUntrackCacheStorageForOriginArgs(origin string) *UntrackCacheStorageForOriginArgs {
args := new(UntrackCacheStorageForOriginArgs)
args.Origin = origin
return args
}
// UntrackIndexedDBForOriginArgs represents the arguments for UntrackIndexedDBForOrigin in the Storage domain.
type UntrackIndexedDBForOriginArgs struct {
Origin string `json:"origin"` // Security origin.
}
// NewUntrackIndexedDBForOriginArgs initializes UntrackIndexedDBForOriginArgs with the required arguments.
func NewUntrackIndexedDBForOriginArgs(origin string) *UntrackIndexedDBForOriginArgs {
args := new(UntrackIndexedDBForOriginArgs)
args.Origin = origin
return args
}