bos

package
v0.0.0-...-1c1183f Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(client *bos.Client, path string) error

Delete delete object for the given path

func NewClient

func NewClient(ak, sk string) (*bos.Client, error)

NewClient creates a new bos client. Use Application Default Credentials if serviceAccount is empty.

func Object

func Object(client *bos.Client, path string) (*api.GetObjectResult, error)

Object retourne a new object handle for the given path

func UploadByte

func UploadByte(client *bos.Client, path string, data []byte) error

UploadByte create object for the given data

func UploadFile

func UploadFile(client *bos.Client, path string, fpath string) error

UploadFile create object for the given path

Types

This section is empty.

Jump to

Keyboard shortcuts

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