dfs

package
v0.0.0-...-6797358 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dfs

type Dfs interface {
	Stat(key string) (Stat, error)
	Get(key string) (io.ReadCloser, Stat, error)
	Put(key string, out io.Reader, options DfsOptions) error
	Delete(keys ...string) error
	GetBytes(key string) ([]byte, Stat, error)
	PutBytes(key string, out []byte, options DfsOptions) error
	Close() error
}

type DfsOptions

type DfsOptions struct {
	ContentType string
	// Content-Disposition: attachment; filename="filename.jpg"
	FileName      string
	Headers       map[string]string
	ContentLength int64
	AllowOrigin   string
	AllowMethod   string
}

type Stat

type Stat struct {
	Exist         bool
	ContentType   string
	FileName      string
	ContentLength int64
	Headers       map[string]string
	AllowOrigin   string
	AllowMethod   string
}

Directories

Path Synopsis
obs

Jump to

Keyboard shortcuts

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