gcs

package
v2.0.0-beta.2+incompat... Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2018 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	APIKey     string `yaml:"api_key"`
	BucketName string `yaml:"bucket_name"`

	Path string
	// contains filtered or unexported fields
}

Client is the client to visit service.

func New

func New(ctx context.Context, et uint8) (c *Client, err error)

New will create a new client.

func (*Client) List

func (c *Client) List(ctx context.Context, p string, rc chan *model.Object) (err error)

List implement source.List

func (*Client) Reach

func (c *Client) Reach(ctx context.Context, p string) (url string, err error)

Reach implement source.Fetch

func (*Client) Reachable

func (c *Client) Reachable() bool

Reachable implement source.Reachable

func (*Client) Read

func (c *Client) Read(ctx context.Context, p string) (r io.ReadCloser, err error)

Read implement source.Read

func (*Client) Readable

func (c *Client) Readable() bool

Readable implement source.Readable

Jump to

Keyboard shortcuts

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