Documentation
¶
Overview ¶
Package extensions implements the Extensions domain. Defines commands and events for browser extensions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClearStorageItemsArgs ¶
type ClearStorageItemsArgs struct {
ID string `json:"id"` // ID of extension.
StorageArea StorageArea `json:"storageArea"` // StorageArea to remove data from.
}
ClearStorageItemsArgs represents the arguments for ClearStorageItems in the Extensions domain.
func NewClearStorageItemsArgs ¶
func NewClearStorageItemsArgs(id string, storageArea StorageArea) *ClearStorageItemsArgs
NewClearStorageItemsArgs initializes ClearStorageItemsArgs with the required arguments.
type GetStorageItemsArgs ¶
type GetStorageItemsArgs struct {
ID string `json:"id"` // ID of extension.
StorageArea StorageArea `json:"storageArea"` // StorageArea to retrieve data from.
Keys []string `json:"keys,omitempty"` // Keys to retrieve.
}
GetStorageItemsArgs represents the arguments for GetStorageItems in the Extensions domain.
func NewGetStorageItemsArgs ¶
func NewGetStorageItemsArgs(id string, storageArea StorageArea) *GetStorageItemsArgs
NewGetStorageItemsArgs initializes GetStorageItemsArgs with the required arguments.
func (*GetStorageItemsArgs) SetKeys ¶
func (a *GetStorageItemsArgs) SetKeys(keys []string) *GetStorageItemsArgs
SetKeys sets the Keys optional argument. Keys to retrieve.
type GetStorageItemsReply ¶
type GetStorageItemsReply struct {
Data json.RawMessage `json:"data"` // No description.
}
GetStorageItemsReply represents the return values for GetStorageItems in the Extensions domain.
type LoadUnpackedArgs ¶
type LoadUnpackedArgs struct {
Path string `json:"path"` // Absolute file path.
}
LoadUnpackedArgs represents the arguments for LoadUnpacked in the Extensions domain.
func NewLoadUnpackedArgs ¶
func NewLoadUnpackedArgs(path string) *LoadUnpackedArgs
NewLoadUnpackedArgs initializes LoadUnpackedArgs with the required arguments.
type LoadUnpackedReply ¶
type LoadUnpackedReply struct {
ID string `json:"id"` // Extension id.
}
LoadUnpackedReply represents the return values for LoadUnpacked in the Extensions domain.
type RemoveStorageItemsArgs ¶
type RemoveStorageItemsArgs struct {
ID string `json:"id"` // ID of extension.
StorageArea StorageArea `json:"storageArea"` // StorageArea to remove data from.
Keys []string `json:"keys"` // Keys to remove.
}
RemoveStorageItemsArgs represents the arguments for RemoveStorageItems in the Extensions domain.
func NewRemoveStorageItemsArgs ¶
func NewRemoveStorageItemsArgs(id string, storageArea StorageArea, keys []string) *RemoveStorageItemsArgs
NewRemoveStorageItemsArgs initializes RemoveStorageItemsArgs with the required arguments.
type SetStorageItemsArgs ¶
type SetStorageItemsArgs struct {
ID string `json:"id"` // ID of extension.
StorageArea StorageArea `json:"storageArea"` // StorageArea to set data in.
Values json.RawMessage `json:"values"` // Values to set.
}
SetStorageItemsArgs represents the arguments for SetStorageItems in the Extensions domain.
func NewSetStorageItemsArgs ¶
func NewSetStorageItemsArgs(id string, storageArea StorageArea, values json.RawMessage) *SetStorageItemsArgs
NewSetStorageItemsArgs initializes SetStorageItemsArgs with the required arguments.
type StorageArea ¶
type StorageArea string
StorageArea Storage areas.
const ( StorageAreaNotSet StorageArea = "" StorageAreaSession StorageArea = "session" StorageAreaLocal StorageArea = "local" StorageAreaSync StorageArea = "sync" StorageAreaManaged StorageArea = "managed" )
StorageArea as enums.
func (StorageArea) String ¶
func (e StorageArea) String() string
func (StorageArea) Valid ¶
func (e StorageArea) Valid() bool