target

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFS added in v0.7.0

func CopyFS(ctx context.Context, t Target, fsys fs.FS) error

CopyFS copies the file system fsys to the target t.

Types

type Target

type Target interface {
	NewWriter(ctx context.Context, path string) (io.WriteCloser, error)
	NewReader(ctx context.Context, path string) (io.ReadCloser, error)
	Remove(ctx context.Context, path string) error
	Sub(dir string) Target
	URL(ctx context.Context, path string) (string, error)
}

Directories

Path Synopsis
Package azureblob provides a target implementation for Azure Blob Storage.
Package azureblob provides a target implementation for Azure Blob Storage.
Package file provides a target implementation for the local filesystem.
Package file provides a target implementation for the local filesystem.
Package gcs provides a target implementation for Google Cloud Storage.
Package gcs provides a target implementation for Google Cloud Storage.
Package github provides a target implementation for GitHub.
Package github provides a target implementation for GitHub.
Package s3 provides a target implementation for Amazon S3.
Package s3 provides a target implementation for Amazon S3.

Jump to

Keyboard shortcuts

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