lock

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service manages project locks

func NewService

func NewService(conn grpc.ClientConnInterface) *Service

NewService creates a new service to manage project locks

func (*Service) ProjectLock

func (c *Service) ProjectLock(ctx context.Context, name string) error

ProjectLock requests an exclusive lock on the given name in the current project

func (*Service) ProjectUnlock

func (c *Service) ProjectUnlock(ctx context.Context, name string) error

ProjectUnlock unlocks a named lock previously locked by ProjectLock

Jump to

Keyboard shortcuts

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