kodo

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DbgFlagNetwork = 1 << iota
	DbgFlagAll     = DbgFlagNetwork
)

Variables

This section is empty.

Functions

func SetDebug

func SetDebug(dbgFlags int)

Types

type Bucket

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

func (*Bucket) Credentials

func (b *Bucket) Credentials() *Credentials

func (*Bucket) Name

func (b *Bucket) Name() string

func (*Bucket) ReaddirContext

func (b *Bucket) ReaddirContext(ctx context.Context, dir string) (fis []fs.FileInfo, err error)

func (*Bucket) WalkContext

func (b *Bucket) WalkContext(ctx context.Context, dir string, fn WalkFunc) (err error)

type Credentials

type Credentials auth.Credentials

func NewCredentials

func NewCredentials(accessKey, secretKey string) *Credentials

func (*Credentials) NewBucket

func (mac *Credentials) NewBucket(bucket string) *Bucket

NewBucket opens a Bucket object.

func (*Credentials) Upload

func (mac *Credentials) Upload(ctx context.Context, bucket, name string, r io.Reader, fsize int64) (err error)

type WalkFunc

type WalkFunc = func(path string, info fs.FileInfo, err error) error

Jump to

Keyboard shortcuts

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