gcs

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const Provider = "gcp"

Variables

This section is empty.

Functions

func NewSliceUrl

func NewSliceUrl(params *UploadParams, slice string) string

func NewUploadWriter

func NewUploadWriter(ctx context.Context, params *UploadParams, slice string, transport http.RoundTripper) (*blob.Writer, error)

Types

type UploadOptions

type UploadOptions func(c *uploadConfig)

func WithUploadTransport

func WithUploadTransport(transport http.RoundTripper) UploadOptions

type UploadParams

type UploadParams struct {
	ProjectId   string `json:"projectId"`
	Key         string `json:"key"`
	Bucket      string `json:"bucket"`
	AccessToken string `json:"access_token"`
	TokenType   string `json:"token_type"`
	ExpiresIn   int    `json:"expires_in"`
}

Jump to

Keyboard shortcuts

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