filesystem

package
v0.158.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package filesystem provides the Chrome DevTools Protocol commands, types, and events for the FileSystem domain.

Generated by the pdlgen command.

Index

Constants

View Source
const (
	CommandGetDirectory = "FileSystem.getDirectory"
)

Command names.

Variables

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.

Jump to

Keyboard shortcuts

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