syzkaller: github.com/google/syzkaller/pkg/gcs Index | Files

package gcs

import "github.com/google/syzkaller/pkg/gcs"

Package gcs provides wrappers around Google Cloud Storage (GCS) APIs. Package uses Application Default Credentials assuming that the program runs on GCE.

See the following links for details and API reference: https://cloud.google.com/go/getting-started/using-cloud-storage https://godoc.org/cloud.google.com/go/storage

Index

Package Files

gcs.go

Constants

const PublicPrefix = "https://storage.googleapis.com/"

Where things get published.

type Client Uses

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

func NewClient Uses

func NewClient() (*Client, error)

func (*Client) Close Uses

func (client *Client) Close()

func (*Client) FileWriter Uses

func (client *Client) FileWriter(gcsFile string) (io.WriteCloser, error)

func (*Client) Publish Uses

func (client *Client) Publish(gcsFile string) error

Publish lets any user read gcsFile.

func (*Client) Read Uses

func (client *Client) Read(gcsFile string) (*File, error)

func (*Client) UploadFile Uses

func (client *Client) UploadFile(localFile, gcsFile string) error

type File Uses

type File struct {
    Updated time.Time
    // contains filtered or unexported fields
}

func (*File) Reader Uses

func (file *File) Reader() (io.ReadCloser, error)

Package gcs imports 7 packages (graph) and is imported by 4 packages. Updated 2018-09-28. Refresh now. Tools for package owners.