oss

package
v0.0.14-beta.2 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IOss

type IOss interface {
	UploadWithContent(ctx context.Context, name string, content []byte, option *structs.Option) (*structs.UploadResult, error)
	UploadWithURL(ctx context.Context, name string, targetUrl string, option *structs.Option) (*structs.UploadResult, error)
	UploadWithPath(ctx context.Context, name string, filePath string, option *structs.Option) (*structs.UploadResult, error)
}

type Oss

type Oss struct{}

func NewOss

func NewOss() *Oss

func (*Oss) UploadWithContent

func (f *Oss) UploadWithContent(ctx context.Context, name string, content []byte, option *structs.Option) (*structs.UploadResult, error)

func (*Oss) UploadWithPath

func (f *Oss) UploadWithPath(ctx context.Context, name string, filePath string, option *structs.Option) (*structs.UploadResult, error)

func (*Oss) UploadWithURL

func (f *Oss) UploadWithURL(ctx context.Context, name string, targetUrl string, option *structs.Option) (*structs.UploadResult, error)

Jump to

Keyboard shortcuts

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