filesystem

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package filesystem implements the FileSystem domain.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(conn *rpcc.Conn) *domainClient

NewClient returns a client for the FileSystem domain with the connection set to conn.

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

type Directory

type Directory struct {
	Name              string   `json:"name"`              // No description.
	NestedDirectories []string `json:"nestedDirectories"` // No description.
	NestedFiles       []File   `json:"nestedFiles"`       // Files that are directly nested under this directory.
}

Directory

type File

type File struct {
	Name         string                 `json:"name"`         // No description.
	LastModified network.TimeSinceEpoch `json:"lastModified"` // Timestamp
	Size         float64                `json:"size"`         // Size in bytes
	Type         string                 `json:"type"`         // No description.
}

File

type GetDirectoryArgs

type GetDirectoryArgs struct {
	BucketFileSystemLocator BucketFileSystemLocator `json:"bucketFileSystemLocator"` // No description.
}

GetDirectoryArgs represents the arguments for GetDirectory in the FileSystem domain.

func NewGetDirectoryArgs

func NewGetDirectoryArgs(bucketFileSystemLocator BucketFileSystemLocator) *GetDirectoryArgs

NewGetDirectoryArgs initializes GetDirectoryArgs with the required arguments.

type GetDirectoryReply

type GetDirectoryReply struct {
	Directory Directory `json:"directory"` // Returns the directory object at the path.
}

GetDirectoryReply represents the return values for GetDirectory in the FileSystem domain.

Jump to

Keyboard shortcuts

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