gcs

package
v0.0.0-...-b702aca Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCSClient

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

func New

func New(ctx context.Context, bucket string) (*GCSClient, error)

func (*GCSClient) DeleteFilesWithPrefix

func (g *GCSClient) DeleteFilesWithPrefix(ctx context.Context, prefix string) error

func (*GCSClient) GetFile

func (g *GCSClient) GetFile(ctx context.Context, filePath string) ([]byte, error)

func (*GCSClient) ListFilesWithPrefix

func (g *GCSClient) ListFilesWithPrefix(ctx context.Context, prefix string) []string

func (*GCSClient) ListTeamsAndDocsInBucket

func (g *GCSClient) ListTeamsAndDocsInBucket(ctx context.Context) map[string][]string

func (*GCSClient) UploadFile

func (g *GCSClient) UploadFile(ctx context.Context, filePath string, content []byte) error

Jump to

Keyboard shortcuts

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