Documentation ¶
Overview ¶
Package filesystem provides the Chrome DevTools Protocol commands, types, and events for the FileSystem domain.
Generated by the cdproto-gen command.
Index ¶
- Constants
- type BucketFileSystemLocator
- type Directory
- type File
- type GetDirectoryParams
- func (p *GetDirectoryParams) Do(ctx context.Context) (directory *Directory, err error)
- func (v GetDirectoryParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetDirectoryParams) MarshalJSON() ([]byte, error)
- func (v *GetDirectoryParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetDirectoryParams) UnmarshalJSON(data []byte) error
- type GetDirectoryReturns
Constants ¶
const (
CommandGetDirectory = "FileSystem.getDirectory"
)
Command names.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BucketFileSystemLocator ¶
type BucketFileSystemLocator struct { StorageKey storage.SerializedStorageKey `json:"storageKey"` // Storage key BucketName string `json:"bucketName,omitempty"` // 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
func (BucketFileSystemLocator) MarshalEasyJSON ¶
func (v BucketFileSystemLocator) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (BucketFileSystemLocator) MarshalJSON ¶
func (v BucketFileSystemLocator) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*BucketFileSystemLocator) UnmarshalEasyJSON ¶
func (v *BucketFileSystemLocator) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*BucketFileSystemLocator) UnmarshalJSON ¶
func (v *BucketFileSystemLocator) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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
func (Directory) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Directory) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Directory) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Directory) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
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
func (File) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (File) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*File) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*File) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type GetDirectoryParams ¶
type GetDirectoryParams struct {
BucketFileSystemLocator *BucketFileSystemLocator `json:"bucketFileSystemLocator"`
}
GetDirectoryParams [no description].
func GetDirectory ¶
func GetDirectory(bucketFileSystemLocator *BucketFileSystemLocator) *GetDirectoryParams
GetDirectory [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/FileSystem#method-getDirectory
parameters:
bucketFileSystemLocator
func (*GetDirectoryParams) Do ¶
func (p *GetDirectoryParams) Do(ctx context.Context) (directory *Directory, err error)
Do executes FileSystem.getDirectory against the provided context.
returns:
directory - Returns the directory object at the path.
func (GetDirectoryParams) MarshalEasyJSON ¶
func (v GetDirectoryParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetDirectoryParams) MarshalJSON ¶
func (v GetDirectoryParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetDirectoryParams) UnmarshalEasyJSON ¶
func (v *GetDirectoryParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetDirectoryParams) UnmarshalJSON ¶
func (v *GetDirectoryParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetDirectoryReturns ¶
type GetDirectoryReturns struct {
Directory *Directory `json:"directory,omitempty"` // Returns the directory object at the path.
}
GetDirectoryReturns return values.
func (GetDirectoryReturns) MarshalEasyJSON ¶
func (v GetDirectoryReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetDirectoryReturns) MarshalJSON ¶
func (v GetDirectoryReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetDirectoryReturns) UnmarshalEasyJSON ¶
func (v *GetDirectoryReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetDirectoryReturns) UnmarshalJSON ¶
func (v *GetDirectoryReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface