lock

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_lock_grpc_types_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Lock

type Lock struct {

	// List of objects to lock. Must not be empty or carry empty IDs.
	// All members must be of the `REGULAR` type.
	Members []*grpc.ObjectID `protobuf:"bytes,1,rep,name=members" json:"members,omitempty"`
	// contains filtered or unexported fields
}

Lock objects protects a list of objects from being deleted. The lifetime of a lock object is limited similar to regular objects in `__SYSTEM__EXPIRATION_EPOCH` attribute. Lock object MUST have expiration epoch. It is impossible to delete a lock object via ObjectService.Delete RPC call.

func (*Lock) GetMembers

func (x *Lock) GetMembers() []*grpc.ObjectID

func (*Lock) ProtoMessage

func (*Lock) ProtoMessage()

func (*Lock) ProtoReflect

func (x *Lock) ProtoReflect() protoreflect.Message

func (*Lock) Reset

func (x *Lock) Reset()

func (*Lock) SetMembers

func (x *Lock) SetMembers(v []*grpc.ObjectID)

func (*Lock) String

func (x *Lock) String() string

type Lock_builder

type Lock_builder struct {

	// List of objects to lock. Must not be empty or carry empty IDs.
	// All members must be of the `REGULAR` type.
	Members []*grpc.ObjectID
	// contains filtered or unexported fields
}

func (Lock_builder) Build

func (b0 Lock_builder) Build() *Lock

Jump to

Keyboard shortcuts

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