store

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// BucketName is the GCS bucket name
	BucketName string
)

Functions

func DeleteObject

func DeleteObject(object string) error

DeleteObject deletes a GCS object

func InitGoog

func InitGoog()

InitGoog initializes the GCS bucket client

func ListObjects

func ListObjects(prefix string, delimiter string, limit int) ([]string, error)

ListObjects lists objects in GCS bucket

func ReadObject

func ReadObject(object string) ([]byte, error)

ReadObject reads data from GCS object, will be automatically decompressed

func WriteObject

func WriteObject(object string, data []byte) error

WriteObject writes data to GCS object, will be compressed with zstd

Types

This section is empty.

Jump to

Keyboard shortcuts

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