browsingdata

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Rendered for js/wasm

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FuncRemove

func FuncRemove() (fn js.Func[func(options RemovalOptions, dataToRemove DataTypeSet) js.Promise[js.Void]])

FuncRemove returns the function "WEBEXT.browsingData.remove".

func FuncRemoveAppcache

func FuncRemoveAppcache() (fn js.Func[func(options RemovalOptions) js.Promise[js.Void]])

FuncRemoveAppcache returns the function "WEBEXT.browsingData.removeAppcache".

func FuncRemoveCache

func FuncRemoveCache() (fn js.Func[func(options RemovalOptions) js.Promise[js.Void]])

FuncRemoveCache returns the function "WEBEXT.browsingData.removeCache".

func FuncRemoveCacheStorage

func FuncRemoveCacheStorage() (fn js.Func[func(options RemovalOptions) js.Promise[js.Void]])

FuncRemoveCacheStorage returns the function "WEBEXT.browsingData.removeCacheStorage".

func FuncRemoveCookies

func FuncRemoveCookies() (fn js.Func[func(options RemovalOptions) js.Promise[js.Void]])

FuncRemoveCookies returns the function "WEBEXT.browsingData.removeCookies".

func FuncRemoveDownloads

func FuncRemoveDownloads() (fn js.Func[func(options RemovalOptions) js.Promise[js.Void]])

FuncRemoveDownloads returns the function "WEBEXT.browsingData.removeDownloads".

func FuncRemoveFileSystems

func FuncRemoveFileSystems() (fn js.Func[func(options RemovalOptions) js.Promise[js.Void]])

FuncRemoveFileSystems returns the function "WEBEXT.browsingData.removeFileSystems".

func FuncRemoveFormData

func FuncRemoveFormData() (fn js.Func[func(options RemovalOptions) js.Promise[js.Void]])

FuncRemoveFormData returns the function "WEBEXT.browsingData.removeFormData".

func FuncRemoveHistory

func FuncRemoveHistory() (fn js.Func[func(options RemovalOptions) js.Promise[js.Void]])

FuncRemoveHistory returns the function "WEBEXT.browsingData.removeHistory".

func FuncRemoveIndexedDB

func FuncRemoveIndexedDB() (fn js.Func[func(options RemovalOptions) js.Promise[js.Void]])

FuncRemoveIndexedDB returns the function "WEBEXT.browsingData.removeIndexedDB".

func FuncRemoveLocalStorage

func FuncRemoveLocalStorage() (fn js.Func[func(options RemovalOptions) js.Promise[js.Void]])

FuncRemoveLocalStorage returns the function "WEBEXT.browsingData.removeLocalStorage".

func FuncRemovePasswords

func FuncRemovePasswords() (fn js.Func[func(options RemovalOptions) js.Promise[js.Void]])

FuncRemovePasswords returns the function "WEBEXT.browsingData.removePasswords".

func FuncRemovePluginData

func FuncRemovePluginData() (fn js.Func[func(options RemovalOptions) js.Promise[js.Void]])

FuncRemovePluginData returns the function "WEBEXT.browsingData.removePluginData".

func FuncRemoveServiceWorkers

func FuncRemoveServiceWorkers() (fn js.Func[func(options RemovalOptions) js.Promise[js.Void]])

FuncRemoveServiceWorkers returns the function "WEBEXT.browsingData.removeServiceWorkers".

func FuncRemoveWebSQL

func FuncRemoveWebSQL() (fn js.Func[func(options RemovalOptions) js.Promise[js.Void]])

FuncRemoveWebSQL returns the function "WEBEXT.browsingData.removeWebSQL".

func FuncSettings

func FuncSettings() (fn js.Func[func() js.Promise[SettingsReturnType]])

FuncSettings returns the function "WEBEXT.browsingData.settings".

func HasFuncRemove

func HasFuncRemove() bool

HasFuncRemove returns true if the function "WEBEXT.browsingData.remove" exists.

func HasFuncRemoveAppcache

func HasFuncRemoveAppcache() bool

HasFuncRemoveAppcache returns true if the function "WEBEXT.browsingData.removeAppcache" exists.

func HasFuncRemoveCache

func HasFuncRemoveCache() bool

HasFuncRemoveCache returns true if the function "WEBEXT.browsingData.removeCache" exists.

func HasFuncRemoveCacheStorage

func HasFuncRemoveCacheStorage() bool

HasFuncRemoveCacheStorage returns true if the function "WEBEXT.browsingData.removeCacheStorage" exists.

func HasFuncRemoveCookies

func HasFuncRemoveCookies() bool

HasFuncRemoveCookies returns true if the function "WEBEXT.browsingData.removeCookies" exists.

func HasFuncRemoveDownloads

func HasFuncRemoveDownloads() bool

HasFuncRemoveDownloads returns true if the function "WEBEXT.browsingData.removeDownloads" exists.

func HasFuncRemoveFileSystems

func HasFuncRemoveFileSystems() bool

HasFuncRemoveFileSystems returns true if the function "WEBEXT.browsingData.removeFileSystems" exists.

func HasFuncRemoveFormData

func HasFuncRemoveFormData() bool

HasFuncRemoveFormData returns true if the function "WEBEXT.browsingData.removeFormData" exists.

func HasFuncRemoveHistory

func HasFuncRemoveHistory() bool

HasFuncRemoveHistory returns true if the function "WEBEXT.browsingData.removeHistory" exists.

func HasFuncRemoveIndexedDB

func HasFuncRemoveIndexedDB() bool

HasFuncRemoveIndexedDB returns true if the function "WEBEXT.browsingData.removeIndexedDB" exists.

func HasFuncRemoveLocalStorage

func HasFuncRemoveLocalStorage() bool

HasFuncRemoveLocalStorage returns true if the function "WEBEXT.browsingData.removeLocalStorage" exists.

func HasFuncRemovePasswords

func HasFuncRemovePasswords() bool

HasFuncRemovePasswords returns true if the function "WEBEXT.browsingData.removePasswords" exists.

func HasFuncRemovePluginData

func HasFuncRemovePluginData() bool

HasFuncRemovePluginData returns true if the function "WEBEXT.browsingData.removePluginData" exists.

func HasFuncRemoveServiceWorkers

func HasFuncRemoveServiceWorkers() bool

HasFuncRemoveServiceWorkers returns true if the function "WEBEXT.browsingData.removeServiceWorkers" exists.

func HasFuncRemoveWebSQL

func HasFuncRemoveWebSQL() bool

HasFuncRemoveWebSQL returns true if the function "WEBEXT.browsingData.removeWebSQL" exists.

func HasFuncSettings

func HasFuncSettings() bool

HasFuncSettings returns true if the function "WEBEXT.browsingData.settings" exists.

func Remove

func Remove(options RemovalOptions, dataToRemove DataTypeSet) (ret js.Promise[js.Void])

Remove calls the function "WEBEXT.browsingData.remove" directly.

func RemoveAppcache

func RemoveAppcache(options RemovalOptions) (ret js.Promise[js.Void])

RemoveAppcache calls the function "WEBEXT.browsingData.removeAppcache" directly.

func RemoveCache

func RemoveCache(options RemovalOptions) (ret js.Promise[js.Void])

RemoveCache calls the function "WEBEXT.browsingData.removeCache" directly.

func RemoveCacheStorage

func RemoveCacheStorage(options RemovalOptions) (ret js.Promise[js.Void])

RemoveCacheStorage calls the function "WEBEXT.browsingData.removeCacheStorage" directly.

func RemoveCookies

func RemoveCookies(options RemovalOptions) (ret js.Promise[js.Void])

RemoveCookies calls the function "WEBEXT.browsingData.removeCookies" directly.

func RemoveDownloads

func RemoveDownloads(options RemovalOptions) (ret js.Promise[js.Void])

RemoveDownloads calls the function "WEBEXT.browsingData.removeDownloads" directly.

func RemoveFileSystems

func RemoveFileSystems(options RemovalOptions) (ret js.Promise[js.Void])

RemoveFileSystems calls the function "WEBEXT.browsingData.removeFileSystems" directly.

func RemoveFormData

func RemoveFormData(options RemovalOptions) (ret js.Promise[js.Void])

RemoveFormData calls the function "WEBEXT.browsingData.removeFormData" directly.

func RemoveHistory

func RemoveHistory(options RemovalOptions) (ret js.Promise[js.Void])

RemoveHistory calls the function "WEBEXT.browsingData.removeHistory" directly.

func RemoveIndexedDB

func RemoveIndexedDB(options RemovalOptions) (ret js.Promise[js.Void])

RemoveIndexedDB calls the function "WEBEXT.browsingData.removeIndexedDB" directly.

func RemoveLocalStorage

func RemoveLocalStorage(options RemovalOptions) (ret js.Promise[js.Void])

RemoveLocalStorage calls the function "WEBEXT.browsingData.removeLocalStorage" directly.

func RemovePasswords

func RemovePasswords(options RemovalOptions) (ret js.Promise[js.Void])

RemovePasswords calls the function "WEBEXT.browsingData.removePasswords" directly.

func RemovePluginData

func RemovePluginData(options RemovalOptions) (ret js.Promise[js.Void])

RemovePluginData calls the function "WEBEXT.browsingData.removePluginData" directly.

func RemoveServiceWorkers

func RemoveServiceWorkers(options RemovalOptions) (ret js.Promise[js.Void])

RemoveServiceWorkers calls the function "WEBEXT.browsingData.removeServiceWorkers" directly.

func RemoveWebSQL

func RemoveWebSQL(options RemovalOptions) (ret js.Promise[js.Void])

RemoveWebSQL calls the function "WEBEXT.browsingData.removeWebSQL" directly.

func Settings

func Settings() (ret js.Promise[SettingsReturnType])

Settings calls the function "WEBEXT.browsingData.settings" directly.

func TryRemove

func TryRemove(options RemovalOptions, dataToRemove DataTypeSet) (ret js.Promise[js.Void], exception js.Any, ok bool)

TryRemove calls the function "WEBEXT.browsingData.remove" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.

func TryRemoveAppcache

func TryRemoveAppcache(options RemovalOptions) (ret js.Promise[js.Void], exception js.Any, ok bool)

TryRemoveAppcache calls the function "WEBEXT.browsingData.removeAppcache" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.

func TryRemoveCache

func TryRemoveCache(options RemovalOptions) (ret js.Promise[js.Void], exception js.Any, ok bool)

TryRemoveCache calls the function "WEBEXT.browsingData.removeCache" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.

func TryRemoveCacheStorage

func TryRemoveCacheStorage(options RemovalOptions) (ret js.Promise[js.Void], exception js.Any, ok bool)

TryRemoveCacheStorage calls the function "WEBEXT.browsingData.removeCacheStorage" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.

func TryRemoveCookies

func TryRemoveCookies(options RemovalOptions) (ret js.Promise[js.Void], exception js.Any, ok bool)

TryRemoveCookies calls the function "WEBEXT.browsingData.removeCookies" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.

func TryRemoveDownloads

func TryRemoveDownloads(options RemovalOptions) (ret js.Promise[js.Void], exception js.Any, ok bool)

TryRemoveDownloads calls the function "WEBEXT.browsingData.removeDownloads" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.

func TryRemoveFileSystems

func TryRemoveFileSystems(options RemovalOptions) (ret js.Promise[js.Void], exception js.Any, ok bool)

TryRemoveFileSystems calls the function "WEBEXT.browsingData.removeFileSystems" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.

func TryRemoveFormData

func TryRemoveFormData(options RemovalOptions) (ret js.Promise[js.Void], exception js.Any, ok bool)

TryRemoveFormData calls the function "WEBEXT.browsingData.removeFormData" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.

func TryRemoveHistory

func TryRemoveHistory(options RemovalOptions) (ret js.Promise[js.Void], exception js.Any, ok bool)

TryRemoveHistory calls the function "WEBEXT.browsingData.removeHistory" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.

func TryRemoveIndexedDB

func TryRemoveIndexedDB(options RemovalOptions) (ret js.Promise[js.Void], exception js.Any, ok bool)

TryRemoveIndexedDB calls the function "WEBEXT.browsingData.removeIndexedDB" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.

func TryRemoveLocalStorage

func TryRemoveLocalStorage(options RemovalOptions) (ret js.Promise[js.Void], exception js.Any, ok bool)

TryRemoveLocalStorage calls the function "WEBEXT.browsingData.removeLocalStorage" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.

func TryRemovePasswords

func TryRemovePasswords(options RemovalOptions) (ret js.Promise[js.Void], exception js.Any, ok bool)

TryRemovePasswords calls the function "WEBEXT.browsingData.removePasswords" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.

func TryRemovePluginData

func TryRemovePluginData(options RemovalOptions) (ret js.Promise[js.Void], exception js.Any, ok bool)

TryRemovePluginData calls the function "WEBEXT.browsingData.removePluginData" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.

func TryRemoveServiceWorkers

func TryRemoveServiceWorkers(options RemovalOptions) (ret js.Promise[js.Void], exception js.Any, ok bool)

TryRemoveServiceWorkers calls the function "WEBEXT.browsingData.removeServiceWorkers" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.

func TryRemoveWebSQL

func TryRemoveWebSQL(options RemovalOptions) (ret js.Promise[js.Void], exception js.Any, ok bool)

TryRemoveWebSQL calls the function "WEBEXT.browsingData.removeWebSQL" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.

func TrySettings

func TrySettings() (ret js.Promise[SettingsReturnType], exception js.Any, ok bool)

TrySettings calls the function "WEBEXT.browsingData.settings" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.

Types

type DataTypeSet

type DataTypeSet struct {
	// Appcache is "DataTypeSet.appcache"
	//
	// Optional
	//
	// NOTE: FFI_USE_Appcache MUST be set to true to make this field effective.
	Appcache bool
	// Cache is "DataTypeSet.cache"
	//
	// Optional
	//
	// NOTE: FFI_USE_Cache MUST be set to true to make this field effective.
	Cache bool
	// CacheStorage is "DataTypeSet.cacheStorage"
	//
	// Optional
	//
	// NOTE: FFI_USE_CacheStorage MUST be set to true to make this field effective.
	CacheStorage bool
	// Cookies is "DataTypeSet.cookies"
	//
	// Optional
	//
	// NOTE: FFI_USE_Cookies MUST be set to true to make this field effective.
	Cookies bool
	// Downloads is "DataTypeSet.downloads"
	//
	// Optional
	//
	// NOTE: FFI_USE_Downloads MUST be set to true to make this field effective.
	Downloads bool
	// FileSystems is "DataTypeSet.fileSystems"
	//
	// Optional
	//
	// NOTE: FFI_USE_FileSystems MUST be set to true to make this field effective.
	FileSystems bool
	// FormData is "DataTypeSet.formData"
	//
	// Optional
	//
	// NOTE: FFI_USE_FormData MUST be set to true to make this field effective.
	FormData bool
	// History is "DataTypeSet.history"
	//
	// Optional
	//
	// NOTE: FFI_USE_History MUST be set to true to make this field effective.
	History bool
	// IndexedDB is "DataTypeSet.indexedDB"
	//
	// Optional
	//
	// NOTE: FFI_USE_IndexedDB MUST be set to true to make this field effective.
	IndexedDB bool
	// LocalStorage is "DataTypeSet.localStorage"
	//
	// Optional
	//
	// NOTE: FFI_USE_LocalStorage MUST be set to true to make this field effective.
	LocalStorage bool
	// Passwords is "DataTypeSet.passwords"
	//
	// Optional
	//
	// NOTE: FFI_USE_Passwords MUST be set to true to make this field effective.
	Passwords bool
	// PluginData is "DataTypeSet.pluginData"
	//
	// Optional
	//
	// NOTE: FFI_USE_PluginData MUST be set to true to make this field effective.
	PluginData bool
	// ServerBoundCertificates is "DataTypeSet.serverBoundCertificates"
	//
	// Optional
	//
	// NOTE: FFI_USE_ServerBoundCertificates MUST be set to true to make this field effective.
	ServerBoundCertificates bool
	// ServiceWorkers is "DataTypeSet.serviceWorkers"
	//
	// Optional
	//
	// NOTE: FFI_USE_ServiceWorkers MUST be set to true to make this field effective.
	ServiceWorkers bool
	// WebSQL is "DataTypeSet.webSQL"
	//
	// Optional
	//
	// NOTE: FFI_USE_WebSQL MUST be set to true to make this field effective.
	WebSQL bool

	FFI_USE_Appcache                bool // for Appcache.
	FFI_USE_Cache                   bool // for Cache.
	FFI_USE_CacheStorage            bool // for CacheStorage.
	FFI_USE_Cookies                 bool // for Cookies.
	FFI_USE_Downloads               bool // for Downloads.
	FFI_USE_FileSystems             bool // for FileSystems.
	FFI_USE_FormData                bool // for FormData.
	FFI_USE_History                 bool // for History.
	FFI_USE_IndexedDB               bool // for IndexedDB.
	FFI_USE_LocalStorage            bool // for LocalStorage.
	FFI_USE_Passwords               bool // for Passwords.
	FFI_USE_PluginData              bool // for PluginData.
	FFI_USE_ServerBoundCertificates bool // for ServerBoundCertificates.
	FFI_USE_ServiceWorkers          bool // for ServiceWorkers.
	FFI_USE_WebSQL                  bool // for WebSQL.

	FFI_USE bool
}

func (*DataTypeSet) FreeMembers

func (p *DataTypeSet) FreeMembers(recursive bool)

FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.

func (DataTypeSet) FromRef

func (p DataTypeSet) FromRef(ref js.Ref) DataTypeSet

FromRef calls UpdateFrom and returns a DataTypeSet with all fields set.

func (DataTypeSet) New

func (p DataTypeSet) New() js.Ref

New creates a new DataTypeSet in the application heap.

func (*DataTypeSet) Update

func (p *DataTypeSet) Update(ref js.Ref)

Update writes all fields of the p to the heap object referenced by ref.

func (*DataTypeSet) UpdateFrom

func (p *DataTypeSet) UpdateFrom(ref js.Ref)

UpdateFrom copies value of all fields of the heap object to p.

type RemovalOptions

type RemovalOptions struct {
	// ExcludeOrigins is "RemovalOptions.excludeOrigins"
	//
	// Optional
	ExcludeOrigins js.Array[js.String]
	// OriginTypes is "RemovalOptions.originTypes"
	//
	// Optional
	//
	// NOTE: OriginTypes.FFI_USE MUST be set to true to get OriginTypes used.
	OriginTypes RemovalOptionsFieldOriginTypes
	// Origins is "RemovalOptions.origins"
	//
	// Optional
	Origins js.Array[js.String]
	// Since is "RemovalOptions.since"
	//
	// Optional
	//
	// NOTE: FFI_USE_Since MUST be set to true to make this field effective.
	Since float64

	FFI_USE_Since bool // for Since.

	FFI_USE bool
}

func (*RemovalOptions) FreeMembers

func (p *RemovalOptions) FreeMembers(recursive bool)

FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.

func (RemovalOptions) FromRef

func (p RemovalOptions) FromRef(ref js.Ref) RemovalOptions

FromRef calls UpdateFrom and returns a RemovalOptions with all fields set.

func (RemovalOptions) New

func (p RemovalOptions) New() js.Ref

New creates a new RemovalOptions in the application heap.

func (*RemovalOptions) Update

func (p *RemovalOptions) Update(ref js.Ref)

Update writes all fields of the p to the heap object referenced by ref.

func (*RemovalOptions) UpdateFrom

func (p *RemovalOptions) UpdateFrom(ref js.Ref)

UpdateFrom copies value of all fields of the heap object to p.

type RemovalOptionsFieldOriginTypes

type RemovalOptionsFieldOriginTypes struct {
	// Extension is "RemovalOptionsFieldOriginTypes.extension"
	//
	// Optional
	//
	// NOTE: FFI_USE_Extension MUST be set to true to make this field effective.
	Extension bool
	// ProtectedWeb is "RemovalOptionsFieldOriginTypes.protectedWeb"
	//
	// Optional
	//
	// NOTE: FFI_USE_ProtectedWeb MUST be set to true to make this field effective.
	ProtectedWeb bool
	// UnprotectedWeb is "RemovalOptionsFieldOriginTypes.unprotectedWeb"
	//
	// Optional
	//
	// NOTE: FFI_USE_UnprotectedWeb MUST be set to true to make this field effective.
	UnprotectedWeb bool

	FFI_USE_Extension      bool // for Extension.
	FFI_USE_ProtectedWeb   bool // for ProtectedWeb.
	FFI_USE_UnprotectedWeb bool // for UnprotectedWeb.

	FFI_USE bool
}

func (*RemovalOptionsFieldOriginTypes) FreeMembers

func (p *RemovalOptionsFieldOriginTypes) FreeMembers(recursive bool)

FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.

func (RemovalOptionsFieldOriginTypes) FromRef

FromRef calls UpdateFrom and returns a RemovalOptionsFieldOriginTypes with all fields set.

func (RemovalOptionsFieldOriginTypes) New

New creates a new RemovalOptionsFieldOriginTypes in the application heap.

func (*RemovalOptionsFieldOriginTypes) Update

func (p *RemovalOptionsFieldOriginTypes) Update(ref js.Ref)

Update writes all fields of the p to the heap object referenced by ref.

func (*RemovalOptionsFieldOriginTypes) UpdateFrom

func (p *RemovalOptionsFieldOriginTypes) UpdateFrom(ref js.Ref)

UpdateFrom copies value of all fields of the heap object to p.

type SettingsReturnType

type SettingsReturnType struct {
	// DataRemovalPermitted is "SettingsReturnType.dataRemovalPermitted"
	//
	// Required
	//
	// NOTE: DataRemovalPermitted.FFI_USE MUST be set to true to get DataRemovalPermitted used.
	DataRemovalPermitted DataTypeSet
	// DataToRemove is "SettingsReturnType.dataToRemove"
	//
	// Required
	//
	// NOTE: DataToRemove.FFI_USE MUST be set to true to get DataToRemove used.
	DataToRemove DataTypeSet
	// Options is "SettingsReturnType.options"
	//
	// Required
	//
	// NOTE: Options.FFI_USE MUST be set to true to get Options used.
	Options RemovalOptions

	FFI_USE bool
}

func (*SettingsReturnType) FreeMembers

func (p *SettingsReturnType) FreeMembers(recursive bool)

FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.

func (SettingsReturnType) FromRef

FromRef calls UpdateFrom and returns a SettingsReturnType with all fields set.

func (SettingsReturnType) New

func (p SettingsReturnType) New() js.Ref

New creates a new SettingsReturnType in the application heap.

func (*SettingsReturnType) Update

func (p *SettingsReturnType) Update(ref js.Ref)

Update writes all fields of the p to the heap object referenced by ref.

func (*SettingsReturnType) UpdateFrom

func (p *SettingsReturnType) UpdateFrom(ref js.Ref)

UpdateFrom copies value of all fields of the heap object to p.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL