gcs

package
v0.0.0-...-b508d79 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(ctx context.Context, bucketName string, log *logrus.Entry) (*Client, error)

func (*Client) DeleteObjectsWithPrefix

func (c *Client) DeleteObjectsWithPrefix(ctx context.Context, prefix string) error

func (*Client) GetIndexHtmlPath

func (c *Client) GetIndexHtmlPath(ctx context.Context, prefix string) (string, error)

func (*Client) GetObject

func (c *Client) GetObject(ctx context.Context, path string) (*storage.ObjectAttrs, []byte, error)

func (*Client) UploadFile

func (c *Client) UploadFile(ctx context.Context, name string, file multipart.File) error

Jump to

Keyboard shortcuts

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