Documentation
¶
Index ¶
- type GCSClient
- func (h *GCSClient) Close() error
- func (h *GCSClient) DeleteObject(bucketName, objectName string) error
- func (h *GCSClient) GetObject(bucketName, objectName string) (*storage.ObjectHandle, error)
- func (h *GCSClient) TransferFromGCS(w io.Writer, bucketName, objectName string) error
- func (h *GCSClient) TransferToGCS(r io.Reader, bucketName, objectName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GCSClient ¶
type GCSClient struct {
// contains filtered or unexported fields
}
func NewGCSClientFromCredentials ¶
NewGCSClientFromCredentials returns a new GCSClient loading the credentials from the file present in the specified path
func NewGCSClientFromJSON ¶
NewGCSClientFromJSON returns a new GCSClient loading the credentials from the given JSON string
func (*GCSClient) DeleteObject ¶
DeleteObject deletes the content of the specified object
func (*GCSClient) GetObject ¶
func (h *GCSClient) GetObject(bucketName, objectName string) (*storage.ObjectHandle, error)
GetObject returns a object handle
func (*GCSClient) TransferFromGCS ¶
TransferFromGCS streams backup data from GCS.
Click to show internal directories.
Click to hide internal directories.