gcs

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package gcs provides an output implementation for streaming data to Google Cloud Storage (GCS) buckets. It handles the connection setup, bucket creation (if it does not exist), and writing data as objects within the specified bucket.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts *output.Options) (output.Output, error)

New returns a new GCS output.

func NewClient

func NewClient(ctx context.Context, addr string) (*storage.Client, error)

NewClient returns a new Google Cloud Storage client using ctx.

Types

type Output

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

Output is a GCS output.

func (*Output) Close

func (o *Output) Close() error

Close closes the connection to the configured endpoint.

func (*Output) DialContext

func (o *Output) DialContext(ctx context.Context) error

DialContext connects to the configured endpoint.

func (*Output) Write

func (o *Output) Write(b []byte) (int, error)

Write writes data to the configured endpoint.

Jump to

Keyboard shortcuts

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