minio

package
v1.75.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CorsHandler

func CorsHandler(allowedOrigins []string) mux.MiddlewareFunc

CorsHandler handler for CORS (Cross Origin Resource Sharing).

func RegisterAPIRouter

func RegisterAPIRouter(router *mux.Router, layer *gw.MultiTenancyLayer, domainNames []string, concurrentAllowed uint, corsAllowedOrigins []string)

RegisterAPIRouter - registers S3 compatible APIs.

func StartMinio

func StartMinio(secureConn bool)

StartMinio starts up Minio directly without its normal configuration process.

Types

type CriticalErrorHandler

type CriticalErrorHandler struct{ Handler http.Handler }

CriticalErrorHandler handles critical server failures caused by `panic(logger.ErrCritical)` as done by `logger.CriticalIf`.

It should be always the first / highest HTTP handler.

func (CriticalErrorHandler) ServeHTTP

type IAMAuthStore

type IAMAuthStore struct {
	NotImplementedObjectStore
}

IAMAuthStore implements ObjectLayer for use by Minio's IAMObjectStore. Minio doesn't use the full ObjectLayer interface, so we only implement GetObject. If using Minio's Admin APIs, we'd also need DeleteObject, PutObject, and GetObjectInfo.

func (*IAMAuthStore) GetObjectNInfo

func (iamOS *IAMAuthStore) GetObjectNInfo(ctx context.Context, bucket, object string, _ *minio.HTTPRangeSpec, _ http.Header, _ minio.LockType, _ minio.ObjectOptions) (_ *minio.GetObjectReader, err error)

GetObjectNInfo is called by Minio's IAMObjectStore, and in turn, queries the Auth Service. If passed an iamConfigUsers style objectPath, it returns a JSON-serialized UserIdentity.

type NotImplementedObjectStore

type NotImplementedObjectStore struct {
	minio.GatewayUnsupported
}

NotImplementedObjectStore implements the ObjectLayer interface, but returns NotImplemented for all receivers.

func (*NotImplementedObjectStore) DeleteBucket

func (iamOS *NotImplementedObjectStore) DeleteBucket(ctx context.Context, bucket string, forceDelete bool) (err error)

DeleteBucket is unimplemented, but required to meet the ObjectLayer interface.

func (*NotImplementedObjectStore) DeleteObject

func (iamOS *NotImplementedObjectStore) DeleteObject(ctx context.Context, bucket, object string, opts minio.ObjectOptions) (objInfo minio.ObjectInfo, err error)

DeleteObject is unimplemented, but required to meet the ObjectLayer interface.

func (*NotImplementedObjectStore) DeleteObjects

func (iamOS *NotImplementedObjectStore) DeleteObjects(ctx context.Context, bucket string, objects []minio.ObjectToDelete, opts minio.ObjectOptions) ([]minio.DeletedObject, []error)

DeleteObjects is unimplemented, but required to meet the ObjectLayer interface.

func (*NotImplementedObjectStore) GetBucketInfo

func (iamOS *NotImplementedObjectStore) GetBucketInfo(ctx context.Context, bucket string) (bucketInfo minio.BucketInfo, err error)

GetBucketInfo is unimplemented, but required to meet the ObjectLayer interface.

func (*NotImplementedObjectStore) GetObjectInfo

func (iamOS *NotImplementedObjectStore) GetObjectInfo(ctx context.Context, bucket, object string, opts minio.ObjectOptions) (objInfo minio.ObjectInfo, err error)

GetObjectInfo is unimplemented, but required to meet the ObjectLayer interface.

func (*NotImplementedObjectStore) GetObjectNInfo

func (iamOS *NotImplementedObjectStore) GetObjectNInfo(ctx context.Context, bucket, object string, rs *minio.HTTPRangeSpec, h http.Header, lockType minio.LockType, opts minio.ObjectOptions) (reader *minio.GetObjectReader, err error)

GetObjectNInfo is unimplemented, but required to meet the ObjectLayer interface.

func (*NotImplementedObjectStore) ListBuckets

func (iamOS *NotImplementedObjectStore) ListBuckets(ctx context.Context) (buckets []minio.BucketInfo, err error)

ListBuckets is unimplemented, but required to meet the ObjectLayer interface.

func (*NotImplementedObjectStore) ListObjects

func (iamOS *NotImplementedObjectStore) ListObjects(ctx context.Context, bucket, prefix, marker, delimiter string, maxKeys int) (result minio.ListObjectsInfo, err error)

ListObjects is unimplemented, but required to meet the ObjectLayer interface.

func (*NotImplementedObjectStore) MakeBucketWithLocation

func (iamOS *NotImplementedObjectStore) MakeBucketWithLocation(ctx context.Context, bucket string, opts minio.BucketOptions) error

MakeBucketWithLocation is unimplemented, but required to meet the ObjectLayer interface.

func (*NotImplementedObjectStore) PutObject

func (iamOS *NotImplementedObjectStore) PutObject(ctx context.Context, bucket, object string, data *minio.PutObjReader, opts minio.ObjectOptions) (objInfo minio.ObjectInfo, err error)

PutObject is unimplemented, but required to meet the ObjectLayer interface.

func (*NotImplementedObjectStore) Shutdown

Shutdown is unimplemented, but required to meet the ObjectLayer interface.

func (*NotImplementedObjectStore) StorageInfo

func (iamOS *NotImplementedObjectStore) StorageInfo(ctx context.Context) (minio.StorageInfo, []error)

StorageInfo is unimplemented, but required to meet the ObjectLayer interface.

Jump to

Keyboard shortcuts

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