data

package
v0.0.0-...-b142f4f Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UserAgent = "GitFS"

Functions

This section is empty.

Types

type MinioData

type MinioData struct {
	// contains filtered or unexported fields
}

func NewMinioData

func NewMinioData(dataOption *Option) (*MinioData, error)

func (*MinioData) Create

func (s *MinioData) Create() error

func (*MinioData) Delete

func (s *MinioData) Delete(key string) error

func (*MinioData) Get

func (s *MinioData) Get(key string, off, limit int64) (io.ReadCloser, error)

func (*MinioData) Init

func (s *MinioData) Init() error

func (*MinioData) List

func (s *MinioData) List(prefix, marker string, limit int64) ([]Object, error)

func (*MinioData) Put

func (s *MinioData) Put(key string, in io.Reader) error

func (*MinioData) String

func (s *MinioData) String() string

type Object

type Object interface {
	Key() string
	Size() int64
	Mtime() time.Time
	IsDir() bool
}

type Option

type Option struct {
	EndPoint  string
	Bucket    string
	Accesskey string
	SecretKey string
}

Jump to

Keyboard shortcuts

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