Documentation ¶
Index ¶
- Variables
- func CreateClient(ctx context.Context) (*storage.Client, error)
- type StorageOp
- func (s *StorageOp) Delete(prefix string) error
- func (s *StorageOp) DisableVersioning() error
- func (s *StorageOp) FileExist(dirs []string, fileName string) (bool, error)
- func (s *StorageOp) Object(dirs []string, fileName string) *storage.ObjectHandle
- func (s *StorageOp) ReadFile(dirs []string, fileName string) ([]byte, error)
- func (s *StorageOp) WriteFile(dirs []string, fileName string, body []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Key []byte = []byte(os.Getenv("KEY"))
Functions ¶
Types ¶
type StorageOp ¶
type StorageOp struct {
// contains filtered or unexported fields
}
func NewStorageOp ¶
Create Google Cloud Storage operation handler.
func (*StorageOp) DisableVersioning ¶
disable to versioning.
func (*StorageOp) Object ¶
func (s *StorageOp) Object(dirs []string, fileName string) *storage.ObjectHandle
Create Storage object. Returns an ObjectHandle that looks like a directory and file to manipulate.
Click to show internal directories.
Click to hide internal directories.