storage

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCSBackend

type GCSBackend struct {
	Client *storage.Client
	Bucket string
}

func InitGCSBackend

func InitGCSBackend(bucket string) (*GCSBackend, error)

func (*GCSBackend) GetModule

func (b *GCSBackend) GetModule(path string, ctx context.Context) (string, error)

func (*GCSBackend) ModuleVersions

func (b *GCSBackend) ModuleVersions(path string, ctx context.Context) ([]string, error)

func (*GCSBackend) UploadModule

func (b *GCSBackend) UploadModule(path string, buff io.Reader) (string, error)

Jump to

Keyboard shortcuts

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