Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidRange = errors.New("invalid range")
)
Functions ¶
This section is empty.
Types ¶
type BucketHandle ¶
type BucketHandle interface { Object(string) ObjectHandle Attrs(context.Context) (*storage.BucketAttrs, error) }
type ObjectHandle ¶
type Options ¶
type Options struct { // BucketName represents the name of the bucket BucketName string // CredentialsJSON holds the json data for credentials of a service account CredentialsJSON []byte // Client can be used to specify a heimdall.Client with hystrix like circuit breaker Client heimdall.Client }
Options represents the Google Cloud Storage storage options
type Reader ¶
type Reader interface { io.ReadCloser }
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage holds the fields used by Google Cloud Storage implementation
func NewStorage ¶
NewStorage returns a new gcs.Storage instance
func (*Storage) Get ¶
Get takes in the Context and path as an argument and returns an IResponse interface implementation. This method figures out how to get the data from the S3 storage backend.
func (*Storage) GetPartially ¶
func (s *Storage) GetPartially(ctx context.Context, path string, opt *storage.GetPartiallyRequestOptions) storage.IResponse
GetPartially takes in the Context, path and opt as an argument and returns an IResponse interface implementation. This method figures out how to get partial data from the S3 storage backend.
Click to show internal directories.
Click to hide internal directories.