filesystem

package
v0.0.0-...-1730200 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2025 License: MIT Imports: 7 Imported by: 0

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

View Source
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

func (v Directory) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Directory) MarshalJSON

func (v Directory) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Directory) UnmarshalEasyJSON

func (v *Directory) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Directory) UnmarshalJSON

func (v *Directory) UnmarshalJSON(data []byte) error

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

func (v File) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (File) MarshalJSON

func (v File) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*File) UnmarshalEasyJSON

func (v *File) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*File) UnmarshalJSON

func (v *File) UnmarshalJSON(data []byte) error

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

Jump to

Keyboard shortcuts

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