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: 0

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