filestoresql

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSQLFileStore

func NewSQLFileStore(db *gorm.DB) filestore.FileStore

Types

type FileQuery

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

func (*FileQuery) Delete

func (q *FileQuery) Delete(ctx context.Context, force bool) error

func (*FileQuery) GetData

func (q *FileQuery) GetData(ctx context.Context) ([]byte, error)

func (*FileQuery) SetData added in v0.8.2

func (q *FileQuery) SetData(ctx context.Context, data []byte) (string, error)

func (*FileQuery) SetPath

func (q *FileQuery) SetPath(ctx context.Context, path string) error

type RootQuery

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

func (*RootQuery) CreateFile

func (q *RootQuery) CreateFile(ctx context.Context, path string, typ filestore.FileType, mimeType string, data []byte) (*filestore.File, error)

func (*RootQuery) Delete

func (q *RootQuery) Delete(ctx context.Context) error

func (*RootQuery) GetFile

func (q *RootQuery) GetFile(ctx context.Context, path string) (*filestore.File, error)

func (*RootQuery) ListAllFiles

func (q *RootQuery) ListAllFiles(ctx context.Context) ([]*filestore.File, error)

func (*RootQuery) ListDirektivFilesWithData added in v0.8.2

func (q *RootQuery) ListDirektivFilesWithData(ctx context.Context) ([]*filestore.File, error)

func (*RootQuery) ReadDirectory

func (q *RootQuery) ReadDirectory(ctx context.Context, path string) ([]*filestore.File, error)

func (*RootQuery) SetNamespace added in v0.8.1

func (q *RootQuery) SetNamespace(ctx context.Context, namespace string) error

Jump to

Keyboard shortcuts

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