gcp

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GSFetcher

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

GSFetcher knows how to fetch log artifacts from a Google Cloud Storage bucket.

func NewGSFetcher

func NewGSFetcher(ctx context.Context, bucket string, c *gcs.Client) (*GSFetcher, error)

NewGSFetcher creates a new GSFetcher for the Google Cloud Storage bucket, using the provided GCS client.

bucket should not contain any slash. c may be nil, in which case a new GCS client will be used.

func (GSFetcher) ReadCheckpoint

func (f GSFetcher) ReadCheckpoint(ctx context.Context) ([]byte, error)

func (GSFetcher) ReadEntryBundle

func (f GSFetcher) ReadEntryBundle(ctx context.Context, i uint64, p uint8) ([]byte, error)

func (GSFetcher) ReadTile

func (f GSFetcher) ReadTile(ctx context.Context, l, i uint64, p uint8) ([]byte, error)

Jump to

Keyboard shortcuts

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