Documentation ¶
Overview ¶
Package entries is file and directory upload by drag-and-drop operations.
Index ¶
- type ErrorCallback
- type ErrorCallbackFunc
- type FileCallback
- type FileCallbackFunc
- type FileSystem
- type FileSystemDirectoryEntry
- type FileSystemDirectoryReader
- type FileSystemEntriesCallback
- type FileSystemEntriesCallbackFunc
- type FileSystemEntry
- func (_this *FileSystemEntry) Filesystem() *FileSystem
- func (_this *FileSystemEntry) FullPath() string
- func (_this *FileSystemEntry) GetParent(successCallback *FileSystemEntryCallback, errorCallback *ErrorCallback)
- func (_this *FileSystemEntry) IsDirectory() bool
- func (_this *FileSystemEntry) IsFile() bool
- func (_this *FileSystemEntry) JSValue() js.Value
- func (_this *FileSystemEntry) Name() string
- type FileSystemEntryCallback
- type FileSystemEntryCallbackFunc
- type FileSystemFileEntry
- type FileSystemFlags
- type Union
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorCallback ¶
ErrorCallback is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func ErrorCallbackToJS ¶
func ErrorCallbackToJS(callback ErrorCallbackFunc) *ErrorCallback
type ErrorCallbackFunc ¶
type ErrorCallbackFunc func(err *domcore.DOMException)
callback: ErrorCallback
func ErrorCallbackFromJS ¶
func ErrorCallbackFromJS(_value js.Value) ErrorCallbackFunc
type FileCallback ¶
FileCallback is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func FileCallbackToJS ¶
func FileCallbackToJS(callback FileCallbackFunc) *FileCallback
type FileCallbackFunc ¶
callback: FileCallback
func FileCallbackFromJS ¶
func FileCallbackFromJS(_value js.Value) FileCallbackFunc
type FileSystem ¶
class: FileSystem
func FileSystemFromJS ¶
func FileSystemFromJS(value js.Value) *FileSystem
FileSystemFromJS is casting a js.Value into FileSystem.
func FileSystemFromWrapper ¶
func FileSystemFromWrapper(input core.Wrapper) *FileSystem
FileSystemFromJS is casting from something that holds a js.Value into FileSystem.
func (*FileSystem) JSValue ¶
func (_this *FileSystem) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*FileSystem) Name ¶
func (_this *FileSystem) Name() string
Name returning attribute 'name' with type string (idl: USVString).
func (*FileSystem) Root ¶
func (_this *FileSystem) Root() *FileSystemDirectoryEntry
Root returning attribute 'root' with type FileSystemDirectoryEntry (idl: FileSystemDirectoryEntry).
type FileSystemDirectoryEntry ¶
type FileSystemDirectoryEntry struct {
FileSystemEntry
}
class: FileSystemDirectoryEntry
func FileSystemDirectoryEntryFromJS ¶
func FileSystemDirectoryEntryFromJS(value js.Value) *FileSystemDirectoryEntry
FileSystemDirectoryEntryFromJS is casting a js.Value into FileSystemDirectoryEntry.
func FileSystemDirectoryEntryFromWrapper ¶
func FileSystemDirectoryEntryFromWrapper(input core.Wrapper) *FileSystemDirectoryEntry
FileSystemDirectoryEntryFromJS is casting from something that holds a js.Value into FileSystemDirectoryEntry.
func (*FileSystemDirectoryEntry) CreateReader ¶
func (_this *FileSystemDirectoryEntry) CreateReader() (_result *FileSystemDirectoryReader)
func (*FileSystemDirectoryEntry) GetDirectory ¶
func (_this *FileSystemDirectoryEntry) GetDirectory(path *string, options *FileSystemFlags, successCallback *FileSystemEntryCallback, errorCallback *ErrorCallback)
func (*FileSystemDirectoryEntry) GetFile ¶
func (_this *FileSystemDirectoryEntry) GetFile(path *string, options *FileSystemFlags, successCallback *FileSystemEntryCallback, errorCallback *ErrorCallback)
type FileSystemDirectoryReader ¶
type FileSystemDirectoryReader struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: FileSystemDirectoryReader
func FileSystemDirectoryReaderFromJS ¶
func FileSystemDirectoryReaderFromJS(value js.Value) *FileSystemDirectoryReader
FileSystemDirectoryReaderFromJS is casting a js.Value into FileSystemDirectoryReader.
func FileSystemDirectoryReaderFromWrapper ¶
func FileSystemDirectoryReaderFromWrapper(input core.Wrapper) *FileSystemDirectoryReader
FileSystemDirectoryReaderFromJS is casting from something that holds a js.Value into FileSystemDirectoryReader.
func (*FileSystemDirectoryReader) JSValue ¶
func (_this *FileSystemDirectoryReader) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*FileSystemDirectoryReader) ReadEntries ¶
func (_this *FileSystemDirectoryReader) ReadEntries(successCallback *FileSystemEntriesCallback, errorCallback *ErrorCallback)
type FileSystemEntriesCallback ¶
FileSystemEntriesCallback is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func FileSystemEntriesCallbackToJS ¶
func FileSystemEntriesCallbackToJS(callback FileSystemEntriesCallbackFunc) *FileSystemEntriesCallback
type FileSystemEntriesCallbackFunc ¶
type FileSystemEntriesCallbackFunc func(entries []*FileSystemEntry)
callback: FileSystemEntriesCallback
func FileSystemEntriesCallbackFromJS ¶
func FileSystemEntriesCallbackFromJS(_value js.Value) FileSystemEntriesCallbackFunc
type FileSystemEntry ¶
type FileSystemEntry struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: FileSystemEntry
func FileSystemEntryFromJS ¶
func FileSystemEntryFromJS(value js.Value) *FileSystemEntry
FileSystemEntryFromJS is casting a js.Value into FileSystemEntry.
func FileSystemEntryFromWrapper ¶
func FileSystemEntryFromWrapper(input core.Wrapper) *FileSystemEntry
FileSystemEntryFromJS is casting from something that holds a js.Value into FileSystemEntry.
func (*FileSystemEntry) Filesystem ¶
func (_this *FileSystemEntry) Filesystem() *FileSystem
Filesystem returning attribute 'filesystem' with type FileSystem (idl: FileSystem).
func (*FileSystemEntry) FullPath ¶
func (_this *FileSystemEntry) FullPath() string
FullPath returning attribute 'fullPath' with type string (idl: USVString).
func (*FileSystemEntry) GetParent ¶
func (_this *FileSystemEntry) GetParent(successCallback *FileSystemEntryCallback, errorCallback *ErrorCallback)
func (*FileSystemEntry) IsDirectory ¶
func (_this *FileSystemEntry) IsDirectory() bool
IsDirectory returning attribute 'isDirectory' with type bool (idl: boolean).
func (*FileSystemEntry) IsFile ¶
func (_this *FileSystemEntry) IsFile() bool
IsFile returning attribute 'isFile' with type bool (idl: boolean).
func (*FileSystemEntry) JSValue ¶
func (_this *FileSystemEntry) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*FileSystemEntry) Name ¶
func (_this *FileSystemEntry) Name() string
Name returning attribute 'name' with type string (idl: USVString).
type FileSystemEntryCallback ¶
FileSystemEntryCallback is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func FileSystemEntryCallbackToJS ¶
func FileSystemEntryCallbackToJS(callback FileSystemEntryCallbackFunc) *FileSystemEntryCallback
type FileSystemEntryCallbackFunc ¶
type FileSystemEntryCallbackFunc func(entry *FileSystemEntry)
callback: FileSystemEntryCallback
func FileSystemEntryCallbackFromJS ¶
func FileSystemEntryCallbackFromJS(_value js.Value) FileSystemEntryCallbackFunc
type FileSystemFileEntry ¶
type FileSystemFileEntry struct {
FileSystemEntry
}
class: FileSystemFileEntry
func FileSystemFileEntryFromJS ¶
func FileSystemFileEntryFromJS(value js.Value) *FileSystemFileEntry
FileSystemFileEntryFromJS is casting a js.Value into FileSystemFileEntry.
func FileSystemFileEntryFromWrapper ¶
func FileSystemFileEntryFromWrapper(input core.Wrapper) *FileSystemFileEntry
FileSystemFileEntryFromJS is casting from something that holds a js.Value into FileSystemFileEntry.
func (*FileSystemFileEntry) File ¶
func (_this *FileSystemFileEntry) File(successCallback *FileCallback, errorCallback *ErrorCallback)
type FileSystemFlags ¶
dictionary: FileSystemFlags
func FileSystemFlagsFromJS ¶
func FileSystemFlagsFromJS(value js.Value) *FileSystemFlags
FileSystemFlagsFromJS is allocating a new FileSystemFlags object and copy all values in the value javascript object.
func (*FileSystemFlags) JSValue ¶
func (_this *FileSystemFlags) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values