objects

package
v3.0.9+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: AGPL-3.0 Imports: 21 Imported by: 9

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)

func DeleteMinioConfigDir

func DeleteMinioConfigDir(serviceId string) error

Types

type TreeHandler

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

func NewTreeHandler

func NewTreeHandler(conf configx.Values) *TreeHandler

func (*TreeHandler) CreateNode added in v1.2.2

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

func (*TreeHandler) DeleteNode added in v1.2.2

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

func (*TreeHandler) FileInfoToNode

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

func (*TreeHandler) ListNodes

func (*TreeHandler) ReadNode

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

func (*TreeHandler) SymlinkInfo added in v1.5.0

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

func (*TreeHandler) UpdateNode added in v1.2.2

func (t *TreeHandler) UpdateNode(ctx context.Context, request *tree.UpdateNodeRequest, response *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