lock

package
v2.16.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_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,proto3" 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` (`__NEOFS__EXPIRATION_EPOCH` is deprecated) attribute. Lock object MUST have expiration epoch. It is impossible to delete a lock object via ObjectService.Delete RPC call.

func (*Lock) Descriptor deprecated

func (*Lock) Descriptor() ([]byte, []int)

Deprecated: Use Lock.ProtoReflect.Descriptor instead.

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(ids []*refs.ObjectID)

SetMembers sets `members` field.

func (*Lock) String

func (x *Lock) String() string

Jump to

Keyboard shortcuts

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