Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextLocker ¶
type ContextLocker interface { sync.Locker ContextLock(ctx context.Context) error ContextUnlock(ctx context.Context) error }
func New ¶
New creates a GCS-based sync.Locker. It uses Application Default Credentials to make authenticated requests to Google Cloud Storage. See the DefaultClient function of the golang.org/x/oauth2/google package for App Default Credentials details.
If ctx argument is nil, context.Background is used.
Click to show internal directories.
Click to hide internal directories.