gcs

package
v0.0.0-...-60828a5 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoveDir

func RemoveDir(ctx context.Context, bucket *BucketHandle, dir string) error

Types

type BucketHandle

type BucketHandle = storage.BucketHandle

func GetTemplateBucket

func GetTemplateBucket() *BucketHandle

type Object

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

func NewObject

func NewObject(ctx context.Context, bucket *storage.BucketHandle, objectPath string) *Object

func (*Object) Delete

func (o *Object) Delete() error

func (*Object) ReadAt

func (o *Object) ReadAt(b []byte, off int64) (n int, err error)

func (*Object) ReadFrom

func (o *Object) ReadFrom(src io.Reader) (int64, error)

func (*Object) Size

func (o *Object) Size() (int64, error)

func (*Object) UploadWithCli

func (o *Object) UploadWithCli(ctx context.Context, path string) error

func (*Object) WriteTo

func (o *Object) WriteTo(dst io.Writer) (int64, error)

Jump to

Keyboard shortcuts

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