Documentation
¶
Index ¶
- Constants
- type StorageFS
- func (storageFs *StorageFS) Create(u *url.URL) (file vfs.VFile, err error)
- func (storageFs *StorageFS) Mkdir(u *url.URL) (file vfs.VFile, err error)
- func (storageFs *StorageFS) MkdirAll(u *url.URL) (file vfs.VFile, err error)
- func (storageFs *StorageFS) Open(u *url.URL) (file vfs.VFile, err error)
- func (storageFs *StorageFS) Schemes() []string
- type StorageFile
- func (storageFile *StorageFile) AddProperty(name, value string) (err error)
- func (storageFile *StorageFile) Close() (err error)
- func (storageFile *StorageFile) Delete() (err error)
- func (storageFile *StorageFile) GetProperty(name string) (value string, err error)
- func (storageFile *StorageFile) Info() (file vfs.VFileInfo, err error)
- func (storageFile *StorageFile) ListAll() (files []vfs.VFile, err error)
- func (storageFile *StorageFile) Read(b []byte) (numBytes int, err error)
- func (storageFile *StorageFile) String() string
- func (storageFile *StorageFile) Url() *url.URL
- func (storageFile *StorageFile) Write(b []byte) (numBytes int, err error)
- type StorageFileInfo
- type UrlOpts
Constants ¶
View Source
const (
GsFileScheme = "gs"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StorageFS ¶
func (*StorageFS) Create ¶
TODO should not be allowed to create a bucket should be able to create folders and files
type StorageFile ¶
func (*StorageFile) AddProperty ¶
func (storageFile *StorageFile) AddProperty(name, value string) (err error)
func (*StorageFile) Close ¶
func (storageFile *StorageFile) Close() (err error)
func (*StorageFile) Delete ¶
func (storageFile *StorageFile) Delete() (err error)
func (*StorageFile) GetProperty ¶
func (storageFile *StorageFile) GetProperty(name string) (value string, err error)
func (*StorageFile) ListAll ¶
func (storageFile *StorageFile) ListAll() (files []vfs.VFile, err error)
func (*StorageFile) String ¶
func (storageFile *StorageFile) String() string
func (*StorageFile) Url ¶
func (storageFile *StorageFile) Url() *url.URL
type StorageFileInfo ¶
type StorageFileInfo struct {
// contains filtered or unexported fields
}
func (*StorageFileInfo) IsDir ¶
func (f *StorageFileInfo) IsDir() bool
func (*StorageFileInfo) ModTime ¶
func (f *StorageFileInfo) ModTime() time.Time
func (*StorageFileInfo) Mode ¶
func (f *StorageFileInfo) Mode() os.FileMode
func (*StorageFileInfo) Name ¶
func (f *StorageFileInfo) Name() string
func (*StorageFileInfo) Size ¶
func (f *StorageFileInfo) Size() int64
func (*StorageFileInfo) String ¶
func (f *StorageFileInfo) String() string
String returns a string representation of the file info.
func (*StorageFileInfo) Sys ¶
func (f *StorageFileInfo) Sys() interface{}
Click to show internal directories.
Click to hide internal directories.