Documentation
¶
Overview ¶
Package filesystem provides the Chrome DevTools Protocol commands, types, and events for the FileSystem domain.
Generated by the pdlgen command.
Index ¶
Constants ¶
const (
CommandGetDirectory = "FileSystem.getDirectory"
)
Command names.
Variables ¶
var GetDirectory = cdp.Command[GetDirectoryParams, GetDirectoryResult]{Method: CommandGetDirectory}
GetDirectory [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/FileSystem#method-getDirectory
Functions ¶
This section is empty.
Types ¶
type BucketFileSystemLocator ¶
type BucketFileSystemLocator struct {
StorageKey storage.SerializedStorageKey `json:"storageKey"` // Storage key
BucketName string `json:"bucketName,omitempty,omitzero"` // Bucket name. Not passing a bucketName will retrieve the default Bucket. (https://developer.mozilla.org/en-US/docs/Web/API/Storage_API#storage_buckets)
PathComponents []string `json:"pathComponents"` // Path to the directory using each path component as an array item.
}
BucketFileSystemLocator [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/FileSystem#type-BucketFileSystemLocator
type Directory ¶
type Directory struct {
Name string `json:"name"`
NestedDirectories []string `json:"nestedDirectories"`
NestedFiles []*File `json:"nestedFiles"` // Files that are directly nested under this directory.
}
Directory [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/FileSystem#type-Directory
type File ¶
type File struct {
Name string `json:"name"`
LastModified cdp.TimeSinceEpoch `json:"lastModified"` // Timestamp
Size float64 `json:"size"` // Size in bytes
Type string `json:"type"`
}
File [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/FileSystem#type-File
type GetDirectoryParams ¶
type GetDirectoryParams struct {
BucketFileSystemLocator *BucketFileSystemLocator `json:"bucketFileSystemLocator"`
}
GetDirectoryParams are the parameters of the command FileSystem.getDirectory.
type GetDirectoryResult ¶ added in v0.157.3
type GetDirectoryResult struct {
Directory *Directory `json:"directory,omitempty,omitzero"` // Returns the directory object at the path.
}
GetDirectoryResult is the result of the command FileSystem.getDirectory.