storage

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package storage implements the Storage domain.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(conn *rpcc.Conn) *domainClient

NewClient returns a client for the Storage domain with the connection set to conn.

Types

type CacheStorageContentUpdatedClient added in v0.11.2

type CacheStorageContentUpdatedClient interface {
	// Recv calls RecvMsg on rpcc.Stream, blocks until the event is
	// triggered, context canceled or connection closed.
	Recv() (*CacheStorageContentUpdatedReply, error)
	rpcc.Stream
}

CacheStorageContentUpdatedClient is a client for CacheStorageContentUpdated events. A cache's contents have been modified.

type CacheStorageContentUpdatedReply added in v0.11.2

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.

type CacheStorageListUpdatedClient added in v0.11.2

type CacheStorageListUpdatedClient interface {
	// Recv calls RecvMsg on rpcc.Stream, blocks until the event is
	// triggered, context canceled or connection closed.
	Recv() (*CacheStorageListUpdatedReply, error)
	rpcc.Stream
}

CacheStorageListUpdatedClient is a client for CacheStorageListUpdated events. A cache has been added/deleted.

type CacheStorageListUpdatedReply added in v0.11.2

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

CacheStorageListUpdatedReply is the reply for CacheStorageListUpdated events.

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 IndexedDBContentUpdatedClient added in v0.13.3

type IndexedDBContentUpdatedClient interface {
	// Recv calls RecvMsg on rpcc.Stream, blocks until the event is
	// triggered, context canceled or connection closed.
	Recv() (*IndexedDBContentUpdatedReply, error)
	rpcc.Stream
}

IndexedDBContentUpdatedClient is a client for IndexedDBContentUpdated events. The origin's IndexedDB object store has been modified.

type IndexedDBContentUpdatedReply added in v0.13.3

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.

type IndexedDBListUpdatedClient added in v0.13.3

type IndexedDBListUpdatedClient interface {
	// Recv calls RecvMsg on rpcc.Stream, blocks until the event is
	// triggered, context canceled or connection closed.
	Recv() (*IndexedDBListUpdatedReply, error)
	rpcc.Stream
}

IndexedDBListUpdatedClient is a client for IndexedDBListUpdated events. The origin's IndexedDB database list has been modified.

type IndexedDBListUpdatedReply added in v0.13.3

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

IndexedDBListUpdatedReply is the reply for IndexedDBListUpdated events.

type TrackCacheStorageForOriginArgs added in v0.11.1

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

TrackCacheStorageForOriginArgs represents the arguments for TrackCacheStorageForOrigin in the Storage domain.

func NewTrackCacheStorageForOriginArgs added in v0.11.1

func NewTrackCacheStorageForOriginArgs(origin string) *TrackCacheStorageForOriginArgs

NewTrackCacheStorageForOriginArgs initializes TrackCacheStorageForOriginArgs with the required arguments.

type TrackIndexedDBForOriginArgs added in v0.13.3

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

TrackIndexedDBForOriginArgs represents the arguments for TrackIndexedDBForOrigin in the Storage domain.

func NewTrackIndexedDBForOriginArgs added in v0.13.3

func NewTrackIndexedDBForOriginArgs(origin string) *TrackIndexedDBForOriginArgs

NewTrackIndexedDBForOriginArgs initializes TrackIndexedDBForOriginArgs with the required arguments.

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 UntrackCacheStorageForOriginArgs added in v0.11.1

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

UntrackCacheStorageForOriginArgs represents the arguments for UntrackCacheStorageForOrigin in the Storage domain.

func NewUntrackCacheStorageForOriginArgs added in v0.11.1

func NewUntrackCacheStorageForOriginArgs(origin string) *UntrackCacheStorageForOriginArgs

NewUntrackCacheStorageForOriginArgs initializes UntrackCacheStorageForOriginArgs with the required arguments.

type UntrackIndexedDBForOriginArgs added in v0.13.3

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

UntrackIndexedDBForOriginArgs represents the arguments for UntrackIndexedDBForOrigin in the Storage domain.

func NewUntrackIndexedDBForOriginArgs added in v0.13.3

func NewUntrackIndexedDBForOriginArgs(origin string) *UntrackIndexedDBForOriginArgs

NewUntrackIndexedDBForOriginArgs initializes UntrackIndexedDBForOriginArgs with the required arguments.

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