objstore

package
Version: v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

type Bucket interface {
	Dir
	Init() error
}

Bucket is a collection of items of the object store service

type Dir

type Dir interface {
	Stat(name string) (*ObjectInfo, error)
	Get(name string) (io.ReadCloser, *ObjectInfo, error)
	Put(name string, contentType string, size int64, object io.Reader) error
	Del(name string) error
	Subdir(name string) Dir
}

Dir is a collection of objects in the store at a specified directory

type ObjectInfo

type ObjectInfo struct {
	Size         int64
	ContentType  string
	ETag         string
	LastModified int64
}

type Objstore

type Objstore interface {
	GetBucket(name string) Bucket
	DelBucket(name string) error
}

Objstore is a service wrapper around a object storage client

type Service

type Service interface {
	governor.Service
	Objstore
}

func New

func New() Service

New creates a new object store service instance

Source Files

Jump to

Keyboard shortcuts

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