gormfs

package module
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2021 License: Apache-2.0, MIT Imports: 10 Imported by: 0

README


Yolo - The Berty Project

Berty is a secure peer-to-peer messaging app that works with or without internet access, cellular data or trust in the network

Made by Berty Technologies discord github twitter go.dev reference GitHub release

TODO: short headline.

TODO: short intro for non-tech. what is this repo about.

TODO: optional clarification for techs, if the short intro is not enough to understand what is this repo about.

Install

TODO

Getting Started

TODO

Troubleshooting

(please use issues)

Development

TODO

Architecture

TODO

Testing

TODO

Contributing

Contribute to Berty

If you want to help out, please see CONTRIBUTING.md.

This repository falls under the Berty Code of Conduct.

You can contact us on the #dev-💻 channel on discord.

License

Dual-licensed under Apache 2.0 and MIT terms.

SPDX-License-Identifier: (Apache-2.0 OR MIT)

See the COPYRIGHT file for more details.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Name  string `gorm:"primaryKey"`
	Mode  fs.FileMode
	ATime time.Time
	MTime time.Time
	IsDir bool
	User  int
	Group int
	Data  []byte
}

type GormFs

type GormFs struct {
	// contains filtered or unexported fields
}

func NewGormFs

func NewGormFs(db *gorm.DB) (*GormFs, error)

func (*GormFs) Chmod

func (f *GormFs) Chmod(name string, mode fs.FileMode) error

func (*GormFs) Chown

func (f *GormFs) Chown(name string, uid, gid int) error

func (*GormFs) Chtimes

func (f *GormFs) Chtimes(name string, atime time.Time, mtime time.Time) error

func (*GormFs) Create

func (f *GormFs) Create(name string) (afero.File, error)

func (*GormFs) Mkdir

func (f *GormFs) Mkdir(name string, perm fs.FileMode) error

func (*GormFs) MkdirAll

func (f *GormFs) MkdirAll(path string, perm fs.FileMode) error

func (*GormFs) Name

func (f *GormFs) Name() string

func (*GormFs) Open

func (f *GormFs) Open(name string) (afero.File, error)

func (*GormFs) OpenFile

func (f *GormFs) OpenFile(name string, flag int, perm fs.FileMode) (afero.File, error)

func (*GormFs) Remove

func (f *GormFs) Remove(name string) error

func (*GormFs) RemoveAll

func (f *GormFs) RemoveAll(path string) error

func (*GormFs) Rename

func (f *GormFs) Rename(oldname, newname string) error

func (*GormFs) Stat

func (f *GormFs) Stat(name string) (fs.FileInfo, error)

Jump to

Keyboard shortcuts

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