grpc

package
v5.0.0-...-3817779 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: AGPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitMinioConfig

func InitMinioConfig(conf *object.MinioConfig) (*object.MinioConfig, error)

Types

type ObjectHandler

ObjectHandler definition

func NewObjectHandlerWithPreset

func NewObjectHandlerWithPreset(mc *object.MinioConfig) *ObjectHandler

func NewSharedObjectHandler

func NewSharedObjectHandler(resolver *source.Resolver[*RunningMinioHandler]) *ObjectHandler

NewSharedObjectHandler creates a stateless handler for exposing configs

func (*ObjectHandler) CleanResourcesBeforeDelete

func (o *ObjectHandler) CleanResourcesBeforeDelete(ctx context.Context, request *object.CleanResourcesRequest) (resp *object.CleanResourcesResponse, err error)

CleanResourcesBeforeDelete removes the .minio.sys/config folder if it exists

func (*ObjectHandler) GetMinioConfig

GetMinioConfig returns current configuration

func (*ObjectHandler) MinioStaleDataCleaner

func (o *ObjectHandler) MinioStaleDataCleaner(ctx context.Context, rootFolder string)

MinioStaleDataCleaner looks up for stala data inside .minio.sys/tmp and .minio.sys/multipart on a regular basis. Defaults are 48h for expiry and 12h for interval. Expiry can be overriden with the CELLS_MINIO_STALE_DATA_EXPIRY env variable, in which case interval = expiry / 2

func (*ObjectHandler) Ready

Ready overrides ReadyzServer.Ready by getting minio config

func (*ObjectHandler) StartMinioServer

func (o *ObjectHandler) StartMinioServer(ctx context.Context, conf *object.MinioConfig, minioServiceName string) error

StartMinioServer handler

func (*ObjectHandler) StorageStats

StorageStats returns statistics about storage

type RunningMinioHandler

type RunningMinioHandler struct {
	*object.MinioConfig
	Cancel context.CancelFunc
}

Jump to

Keyboard shortcuts

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