controller

package
v0.0.0-...-f65cdbb Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

func New

func New(ctx context.Context, dir string, o Options) *Controller

func (*Controller) AddFile

func (s *Controller) AddFile(ctx context.Context, r *pb.AddFileRequest) (*pb.AddFileReply, error)

func (*Controller) AllFileNames

func (s *Controller) AllFileNames(_ context.Context, _ *pb.Void) (*pb.AllFileNamesReply, error)

func (*Controller) Close

func (s *Controller) Close() error

func (*Controller) File

func (*Controller) UpdateToFileStr

type Options

type Options struct {
	InMemory bool
}

type Repository

type Repository interface {
	Add(tenant string, name string, fileType int32, bytes []byte) error
	File(tenant string, name string) ([]byte, error)
	GetMetadataForFile(tenant string, name string) (*provider.Metadata, error)
	Files() ([]*pb.TenantFiles, error)
}

Jump to

Keyboard shortcuts

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