entries

package
v0.0.0-...-41cedfc Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: BSD-3-Clause Imports: 4 Imported by: 1

Documentation

Overview

Package entries is file and directory upload by drag-and-drop operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorCallback

type ErrorCallback js.Func

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

type FileCallback js.Func

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

type FileCallbackFunc func(file *file.File)

callback: FileCallback

func FileCallbackFromJS

func FileCallbackFromJS(_value js.Value) FileCallbackFunc

type FileSystem

type FileSystem struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

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

type FileSystemEntriesCallback js.Func

FileSystemEntriesCallback is a javascript function type.

Call Release() when done to release resouces allocated to this type.

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

type FileSystemEntryCallback js.Func

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

type FileSystemFlags struct {
	Create    bool
	Exclusive bool
}

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

type Union

type Union struct {
	Value js.Value
}

func UnionFromJS

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue

func (u *Union) JSValue() js.Value

Jump to

Keyboard shortcuts

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