gcloud

package
v1.60.1 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EmptyString = ""
)

Variables

This section is empty.

Functions

func NewCloudObject

func NewCloudObject(job *provider.Job) provider.Object

func NewGCloudOperator

func NewGCloudOperator(app *conf.AppConfig) (oper provider.Operator, err error)

Types

type CloudObject

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

func (*CloudObject) Destroy

func (o *CloudObject) Destroy() error

func (*CloudObject) Generate

func (o *CloudObject) Generate() error

func (*CloudObject) Post

func (o *CloudObject) Post() error

func (*CloudObject) Pre

func (o *CloudObject) Pre() error

type GoogleClient

type GoogleClient struct {
	Ctx         context.Context
	Storage     *storage.Client
	Bucket      *storage.BucketHandle
	BucketAttrs *storage.BucketAttrs
	// contains filtered or unexported fields
}

type GoogleOperator

type GoogleOperator struct {
	App   *conf.AppConfig
	Cloud *GoogleClient
}

func (*GoogleOperator) BucketCreate

func (oper *GoogleOperator) BucketCreate() error

func (*GoogleOperator) BucketDelete

func (oper *GoogleOperator) BucketDelete() error

func (*GoogleOperator) BucketExists

func (oper *GoogleOperator) BucketExists() (bool, error)

func (*GoogleOperator) GetObjectTags

func (oper *GoogleOperator) GetObjectTags(key string) (map[string]string, error)

func (*GoogleOperator) ObjectDelete

func (oper *GoogleOperator) ObjectDelete(key string) error

func (*GoogleOperator) ObjectExists

func (oper *GoogleOperator) ObjectExists(obj provider.Object) (bool, error)

func (*GoogleOperator) ObjectUpload

func (oper *GoogleOperator) ObjectUpload(obj provider.Object) error

func (*GoogleOperator) Support

func (oper *GoogleOperator) Support() *provider.Supports

Jump to

Keyboard shortcuts

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