oss

package
v0.1.17 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Endpoints map[string]base.Endpoint `yaml:"endpoints"`
}

func (*Config) ConfigName

func (s *Config) ConfigName() string

func (*Config) Default

func (s *Config) Default() interface{}

func (*Config) Validate

func (s *Config) Validate() error

type Service

type Service struct {
	sptty.BaseService
	base.IServiceOss
	// contains filtered or unexported fields
}

func (*Service) Delete

func (s *Service) Delete(endpoint string, key string) error

func (*Service) GetConfig

func (s *Service) GetConfig() map[string]base.Endpoint

func (*Service) GetObject

func (s *Service) GetObject(endpoint string, key string) ([]byte, error)

func (*Service) Init

func (s *Service) Init(app sptty.ISptty) error

func (*Service) ListObjects

func (s *Service) ListObjects(endpoint string, prefix string, token string) ([]string, string, error)

func (*Service) ServiceName

func (s *Service) ServiceName() string

func (*Service) Upload

func (s *Service) Upload(endpoint string, key string, data []byte, opt ...interface{}) error

func (*Service) UploadFromFile added in v0.1.16

func (s *Service) UploadFromFile(endpoint string, key string, filepath string, opt ...interface{}) error

Directories

Path Synopsis
vendors
s3

Jump to

Keyboard shortcuts

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