aliyun

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

README

aliyun

import "github.com/ccheers/xpkg/oss/aliyun"

Index

type Oss

type Oss struct {
    // contains filtered or unexported fields
}
func NewOss
func NewOss(client *oss.Client) *Oss
func (*Oss) Get
func (o *Oss) Get(ctx context.Context, bucket string, key string) (resp []byte, err error)
func (*Oss) Set
func (o *Oss) Set(ctx context.Context, bucket string, key string, reader io.Reader) (err error)

Generated by gomarkdoc

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Oss

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

func NewOss

func NewOss(client *oss.Client) *Oss

func (*Oss) Get

func (o *Oss) Get(ctx context.Context, bucket string, key string) (resp []byte, err error)

func (*Oss) Set

func (o *Oss) Set(ctx context.Context, bucket string, key string, reader io.Reader) (err error)

Jump to

Keyboard shortcuts

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