Documentation
¶
Index ¶
- Constants
- func NewCloudObject(job *provider.Job) provider.Object
- func NewGCloudOperator(app *conf.AppConfig) (oper provider.Operator, err error)
- type CloudObject
- type GoogleClient
- type GoogleOperator
- func (oper *GoogleOperator) BucketCreate() error
- func (oper *GoogleOperator) BucketDelete() error
- func (oper *GoogleOperator) BucketExists() (bool, error)
- func (oper *GoogleOperator) GetObjectTags(key string) (map[string]string, error)
- func (oper *GoogleOperator) ObjectDelete(key string) error
- func (oper *GoogleOperator) ObjectExists(obj provider.Object) (bool, error)
- func (oper *GoogleOperator) ObjectUpload(obj provider.Object) error
- func (oper *GoogleOperator) Support() *provider.Supports
Constants ¶
View Source
const (
EmptyString = ""
)
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.