output

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCSWriter

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

GCSWriter provides Write operations to a GCS bucket.

func NewGCSWriter

func NewGCSWriter(up *uploader.Uploader) *GCSWriter

NewGCSWriter creates a new GCSWriter from the given uploader.Uploader.

func (*GCSWriter) Write

func (u *GCSWriter) Write(ctx context.Context, path string, content []byte) error

Write creates a new object at path containing content.

type LocalWriter

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

LocalWriter provides Write operations to a local directory.

func NewLocalWriter

func NewLocalWriter(dir string) *LocalWriter

NewLocalWriter creates a new LocalWriter for the given output directory.

func (*LocalWriter) Write

func (lu *LocalWriter) Write(ctx context.Context, path string, content []byte) error

Write creates a new file at path containing content.

Jump to

Keyboard shortcuts

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