globals

package
v0.0.0-...-b5d5140 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthenticationServer *nex.Server
View Source
var GRPCAccountClient pb.AccountClient
View Source
var GRPCAccountClientConnection *grpc.ClientConn
View Source
var GRPCAccountCommonMetadata metadata.MD
View Source
var KerberosPassword = "password" // * Default password
View Source
var Logger = plogger.NewLogger()
View Source
var MinIOClient *minio.Client
View Source
var SecureServer *nex.Server

Functions

func PasswordFromPID

func PasswordFromPID(pid uint32) (string, uint32)

func S3ObjectSize

func S3ObjectSize(bucket, key string) (uint64, error)

func S3StatObject

func S3StatObject(bucket, key string) (minio.ObjectInfo, error)

func VerifyObjectPermission

func VerifyObjectPermission(ownerPID, accessorPID uint32, permission *datastore_types.DataStorePermission) uint32

Types

type S3Presigner

type S3Presigner struct {
	// contains filtered or unexported fields
}
var Presigner *S3Presigner

func NewS3Presigner

func NewS3Presigner(minioClient *minio.Client) *S3Presigner

func (*S3Presigner) GetObject

func (p *S3Presigner) GetObject(bucket, key string, lifetime time.Duration) (*url.URL, error)

func (*S3Presigner) PostObject

func (p *S3Presigner) PostObject(bucket, key string, lifetime time.Duration) (*url.URL, map[string]string, error)

Jump to

Keyboard shortcuts

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