gcsext

package
v0.0.0-...-e5aba8a Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(
	ctx context.Context,
	baseTransport http.RoundTripper,
	scopes ...string,
) (*storage.Client, error)

func NewReaderByPath

func NewReaderByPath(
	ctx context.Context,
	path string,
	baseTransport http.RoundTripper,
) (io.ReadCloser, error)

func NewWriterByPath

func NewWriterByPath(
	ctx context.Context,
	path string,
	baseTransport http.RoundTripper,
	dryRun bool,
) (io.WriteCloser, error)

Types

type Reader

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

func NewReader

func NewReader(
	ctx context.Context,
	path string,
	baseTransport http.RoundTripper,
) (*Reader, error)

func (*Reader) Close

func (r *Reader) Close() error

func (*Reader) Read

func (r *Reader) Read(p []byte) (n int, err error)

type Writer

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

func NewWriter

func NewWriter(
	ctx context.Context,
	path string,
	baseTransport http.RoundTripper,
) (*Writer, error)

func (*Writer) Close

func (w *Writer) Close() error

func (*Writer) Write

func (w *Writer) Write(p []byte) (n int, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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