storage

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package storage provides object storage for Go binaries.

Index

Constants

This section is empty.

Variables

View Source
var ErrObjectNotFound = errors.New("no cloud storage object")

ErrObjectNotFound is returned from Get when no object is found for the specified key.

Functions

This section is empty.

Types

type Google

type Google struct {
	// Client is the Google Cloud Storage client.
	Client *storage.Client

	// Bucket is the bucket name.
	Bucket string

	// Prefix is an optional object key prefix.
	Prefix string
}

Google is a Google Cloud Storage object store for binaries.

func (*Google) Create

func (g *Google) Create(ctx context.Context, r io.Reader, bin gobinaries.Binary) error

Create an object representing the package's binary.

func (*Google) Get

func (g *Google) Get(ctx context.Context, bin gobinaries.Binary) (io.ReadCloser, error)

Get returns an object.

Jump to

Keyboard shortcuts

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