Documentation ¶
Overview ¶
Package cs provides a simple API for the Google Cloud Storage service.
Index ¶
- Variables
- type Attributes
- type Client
- func (c *Client) DeleteObjects(ctx context.Context, q *Query) (int, error)
- func (c *Client) GetObjectWithData(ctx context.Context, name string) (*ObjectWithData, error)
- func (c *Client) GetObjects(ctx context.Context, q *Query) ([]*Object, error)
- func (c *Client) WriteObject(ctx context.Context, name string, data io.ReadCloser, attrs *Attributes) error
- type Object
- type ObjectWithData
- type Operations
- type Query
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrObjectNotExist = errors.New("object does not exist") ErrBucketNotExist = errors.New("bucket does not exist") )
Functions ¶
This section is empty.
Types ¶
type Attributes ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DeleteObjects ¶
func (*Client) GetObjectWithData ¶
func (*Client) GetObjects ¶
func (*Client) WriteObject ¶
func (c *Client) WriteObject(ctx context.Context, name string, data io.ReadCloser, attrs *Attributes) error
type Object ¶
type Object struct { Name string Bucket string Attrs Attributes }
type ObjectWithData ¶
type Operations ¶
type Operations interface { DeleteObjects(ctx context.Context, q *Query) (int, error) WriteObject(ctx context.Context, name string, data io.ReadCloser, attrs *Attributes) error GetObjects(ctx context.Context, q *Query) ([]*Object, error) GetObjectWithData(ctx context.Context, name string) (*ObjectWithData, error) }
Click to show internal directories.
Click to hide internal directories.