gcp

package
v0.0.0-...-9d61cdf Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGoogleStorageClient

func GetGoogleStorageClient() (context.Context, *storage.Client)

Types

type GoogleStorageLock

type GoogleStorageLock struct {
	Client  *storage.Client
	Bucket  *storage.BucketHandle
	Context context.Context
}

func (*GoogleStorageLock) GetLock

func (googleLock *GoogleStorageLock) GetLock(resource string) (*int, error)

func (*GoogleStorageLock) Lock

func (googleLock *GoogleStorageLock) Lock(transactionId int, resource string) (bool, error)

func (*GoogleStorageLock) Unlock

func (googleLock *GoogleStorageLock) Unlock(resource string) (bool, error)

Jump to

Keyboard shortcuts

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