objects

package
v4.4.7 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Overview

Package objects is in charge of exposing the content of the datasource with the S3 protocol.

Index

Constants

This section is empty.

Variables

Functions

func CreateMinioConfigFile

func CreateMinioConfigFile(serviceId string, accessKey string, secretKey string) (configDir string, err error)

CreateMinioConfigFile generates a legacy config file

func DeleteMinioConfigDir

func DeleteMinioConfigDir(serviceId string) error

Types

type TreeHandler

type TreeHandler struct {
	tree.UnimplementedNodeProviderServer
	tree.UnimplementedNodeReceiverServer
	FS afero.Fs
	// contains filtered or unexported fields
}

func NewTreeHandler

func NewTreeHandler(conf configx.Values) *TreeHandler

func (*TreeHandler) CreateNode

func (t *TreeHandler) CreateNode(ctx context.Context, request *tree.CreateNodeRequest) (*tree.CreateNodeResponse, error)

func (*TreeHandler) DeleteNode

func (t *TreeHandler) DeleteNode(ctx context.Context, request *tree.DeleteNodeRequest) (*tree.DeleteNodeResponse, error)

func (*TreeHandler) FileInfoToNode

func (t *TreeHandler) FileInfoToNode(nodePath string, fileInfo os.FileInfo) *tree.Node

func (*TreeHandler) ListNodes

func (*TreeHandler) Name

func (t *TreeHandler) Name() string

func (*TreeHandler) ReadNode

func (t *TreeHandler) ReadNode(ctx context.Context, request *tree.ReadNodeRequest) (*tree.ReadNodeResponse, error)

func (*TreeHandler) SymlinkInfo

func (t *TreeHandler) SymlinkInfo(path string, info os.FileInfo) (bool, tree.NodeType, string)

func (*TreeHandler) UpdateNode

func (t *TreeHandler) UpdateNode(ctx context.Context, request *tree.UpdateNodeRequest) (*tree.UpdateNodeResponse, error)

Directories

Path Synopsis
Package grpc wraps a Minio server for exposing the content of the datasource with the S3 protocol.
Package grpc wraps a Minio server for exposing the content of the datasource with the S3 protocol.

Jump to

Keyboard shortcuts

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