Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultObjectStoreTimeout = 360 * time.Second
DefaultObjectStoreTimeout is the timeout for ObjectStore PutObject api calls
Variables ¶
This section is empty.
Functions ¶
func IsGoogleCloudStorage ¶
IsGoogleCloudStorage checks if the provided URL is from Google Cloud Storage service
Types ¶
type MissingContentLengthError ¶
type MissingContentLengthError error
type Object ¶
type Object struct { // PutURL is a presigned URL for PutObject PutURL string // DeleteURL is a presigned URL for RemoveObject DeleteURL string // contains filtered or unexported fields }
Object represents an object on a S3 compatible Object Store service. It can be used as io.WriteCloser for uploading an object
func NewObject ¶
func NewObject(ctx context.Context, putURL, deleteURL string, timeout time.Duration, size int64) (*Object, error)
NewObject opens an HTTP connection to Object Store and returns an Object pointer that can be used for uploading.
func (*Object) Close ¶
Close implements the standard io.Closer interface: it closes the http client request. This method will also wait for the connection to terminate and return any error occurred during the upload
type StatusCodeError ¶
type StatusCodeError error
Click to show internal directories.
Click to hide internal directories.