gcs

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Copyright The Mantle Authors. SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(bucket *ms.Bucket) storage.Storage

Types

type GCS

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

GCS implements a Storage interface for Google Cloud Storage.

func (*GCS) Close

func (g *GCS) Close() error

func (*GCS) Delete

func (g *GCS) Delete(ctx context.Context, name string) error

Delete the uploaded data from Google Cloud Storage bucket.

func (*GCS) Upload

func (g *GCS) Upload(name, contentType string, data []byte) (string, string, error)

Upload the []byte data to Google Cloud Storage bucket.

Jump to

Keyboard shortcuts

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