gcp

package module
v3.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: MIT Imports: 9 Imported by: 0

README

Build Status Badge Go Docs Badge

Golang GCP helpers

  • Some tiny GCP SDK's wrappers.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StorageClient

type StorageClient struct {
	Bucket                string
	Timeout               time.Duration
	WithoutAuthentication bool
}

StorageClient is a client for Google Cloud Storage

func (*StorageClient) Download added in v3.1.0

func (c *StorageClient) Download(dest string, object string) (int64, error)

func (*StorageClient) Read

func (c *StorageClient) Read(object string, sink io.Writer) error

func (*StorageClient) ReadString

func (c *StorageClient) ReadString(object string) (string, error)

func (*StorageClient) Write

func (c *StorageClient) Write(object string, src io.Reader) error

func (*StorageClient) WriteString

func (c *StorageClient) WriteString(object string, content string) error

Jump to

Keyboard shortcuts

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