core

package
v0.0.0-...-f17293a Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CopyObjectResult

type CopyObjectResult struct {
	LastModified time.Time `json:"last_modified"`
	ETag         string    `json:"e_tag"`
}

type Credentials

type Credentials struct {
	AccessKeyId     string `json:"access_key_id"`
	AccessKeySecret string `json:"access_key_secret"`
	Bucket          string `json:"bucket"`
	Endpoint        string `json:"endpoint"`
	Region          string `json:"region"`
	Ssl             bool   `json:"ssl"`
}

type Gateway

type Gateway interface {
	Name() string
	NewGatewayLayer(creds Credentials) (ObjectLayer, error)
}

type ObjectInfo

type ObjectInfo struct {
	Name        string
	Type        string
	Size        int64
	Hash        string
	ContentType string
	Metadata    map[string]string
}

type ObjectLayer

type ObjectLayer interface {
	PutObject(ctx context.Context, objectKey string, reader io.Reader, size int64, options minio.PutObjectOptions) (minio.UploadInfo, error)
	GetObject(ctx context.Context, objectKey string, options minio.GetObjectOptions) (interface{}, error)
	CopyObject(ctx context.Context, dest minio.CopyDestOptions, src minio.CopySrcOptions) (minio.UploadInfo, error)
}

type ObjectOptions

type ObjectOptions struct {
}

type Option

type Option func(map[string]optionValue) error

Jump to

Keyboard shortcuts

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