hwobs

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotFountError

func IsNotFountError(err error) bool

Types

type OBS

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

func NewOBS

func NewOBS(accessKey, secretKey, endpoint, bucketName string) (*OBS, error)

func (*OBS) Close

func (s *OBS) Close() error

func (*OBS) Delete

func (s *OBS) Delete(keys ...string) error

func (*OBS) Get

func (s *OBS) Get(key string) (io.ReadCloser, dfs.Stat, error)

func (*OBS) GetBytes

func (s *OBS) GetBytes(key string) ([]byte, dfs.Stat, error)

func (*OBS) Put

func (s *OBS) Put(key string, data io.Reader, options dfs.DfsOptions) error

func (*OBS) PutBytes

func (s *OBS) PutBytes(key string, out []byte, options dfs.DfsOptions) error

func (*OBS) Stat

func (s *OBS) Stat(key string) (dfs.Stat, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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