gcs

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Bucket          string `yaml:"bucket" validate:"required"`
	CredentialsFile string `yaml:"credentialsFile"`
	CredentialsJSON string `yaml:"credentialsJSON"`
}

type Provider

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

func New

func New(cfg Config) (*Provider, error)

func (*Provider) Close

func (p *Provider) Close() error

func (*Provider) Delete

func (p *Provider) Delete(ctx context.Context, path string) error

func (*Provider) Download

func (p *Provider) Download(ctx context.Context, path string) (io.ReadCloser, error)

func (*Provider) List

func (p *Provider) List(ctx context.Context, prefix string) ([]models.FileInfo, error)

func (*Provider) Upload

func (p *Provider) Upload(ctx context.Context, input *models.UploadInput) (*models.UploadOutput, error)

Jump to

Keyboard shortcuts

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