upload

package
v0.0.0-...-0fed1d9 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PutObjectFromFile = iota + 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Put

type Put struct {
	BucketName string `json:"bucket_name"`
	ObjectKey  string `json:"object_key"`
	FilePath   string `json:"file_path"`
	PutType    int    `json:"put_type"`
	// contains filtered or unexported fields
}

func (*Put) SetClient

func (p *Put) SetClient(client *oss.Client)

func (*Put) Uploader

func (p *Put) Uploader() error

type SplitUpload

type SplitUpload struct {
	BucketName    string `json:"bucket_name"`
	LocalFileName string `json:"local_file_name"`
	ObjectName    string `json:"object_name"`
	// contains filtered or unexported fields
}

func (*SplitUpload) SetClient

func (su *SplitUpload) SetClient(client *oss.Client)

func (*SplitUpload) Uploader

func (su *SplitUpload) Uploader() error

type Upload

type Upload interface {
	Uploader() error
	SetClient(client *oss.Client)
}

Jump to

Keyboard shortcuts

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