Documentation
¶
Overview ¶
Package filesystem implements the FileSystem domain.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.
Click to show internal directories.
Click to hide internal directories.