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: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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