gcshandler

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsGCSURL

func IsGCSURL(path string) bool

IsGCSURL checks if a string is a GCS URL

Types

type GCSHandler

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

GCSHandler handles downloading files from Google Cloud Storage

func NewGCSHandler

func NewGCSHandler() *GCSHandler

NewGCSHandler creates a new GCS handler

func (*GCSHandler) Cleanup

func (h *GCSHandler) Cleanup() error

Cleanup removes all downloaded temp files

func (*GCSHandler) ResolveFiles

func (h *GCSHandler) ResolveFiles(filePaths []string) ([]string, error)

ResolveFiles resolves GCS URLs to local temp files Returns the modified file paths with GCS URLs replaced by local paths

type GCSLocation

type GCSLocation struct {
	Bucket string
	Object string
}

GCSLocation represents a parsed GCS URL

func ParseGCSURL

func ParseGCSURL(gcsURL string) (*GCSLocation, error)

ParseGCSURL parses a GCS URL into bucket and object

Jump to

Keyboard shortcuts

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