google

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CredentialsFile

type CredentialsFile struct {
	Type          string `json:"type"`
	ProjectId     string `json:"project_id"`
	PrivateKeyId  string `json:"private_key_id"`
	PrivateKey    string `json:"private_key"`
	ClientEmail   string `json:"client_email"`
	ClientId      string `json:"client_id"`
	AuthUrl       string `json:"auth_uri"`
	TokenUrl      string `json:"token_uri"`
	AuthCertUrl   string `json:"auth_provider_x509_cert_url"`
	ClientCertUrl string `json:"client_x509_cert_url"`
}

type GoogleOSS

type GoogleOSS struct {
	// contains filtered or unexported fields
}

func NewGoogleOSS

func NewGoogleOSS(bucketName, credentialsFile string) *GoogleOSS

func (*GoogleOSS) DeleteFile

func (g *GoogleOSS) DeleteFile(obj string) (err error)

func (*GoogleOSS) GetListBuckets

func (g *GoogleOSS) GetListBuckets() (ret []string, err error)

func (*GoogleOSS) GetObjectFileUrl

func (g *GoogleOSS) GetObjectFileUrl(obj string) string

func (*GoogleOSS) UploadFile

func (g *GoogleOSS) UploadFile(srcFilePath string) (uri string, obj string, err error)

Jump to

Keyboard shortcuts

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