storage

package
v0.0.0-...-b69053b Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package storage contains wrappers around the GCE storage API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	*api.Object
	Client     storageApi.Client
	FileObject *storageApi.ObjectHandle
	// contains filtered or unexported fields
}

File is a gcs file.

func CreateFileObject

func CreateFileObject(ctx context.Context, bucketName string, objectName string) (*File, error)

CreateFileObject creates an file object to be operated by API client

func (*File) Cleanup

func (f *File) Cleanup() error

Cleanup deletes the file.

Jump to

Keyboard shortcuts

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