tombstone

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: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tombstone

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

Tombstone is a unified structure of Tombstone message from proto definition.

func (*Tombstone) FromGRPCMessage

func (s *Tombstone) FromGRPCMessage(m grpc.Message) error

func (*Tombstone) GetExpirationEpoch

func (s *Tombstone) GetExpirationEpoch() uint64

GetExpirationEpoch returns number of tombstone expiration epoch.

func (*Tombstone) GetMembers

func (s *Tombstone) GetMembers() []refs.ObjectID

GetMembers returns list of objects to be deleted.

func (*Tombstone) GetSplitID

func (s *Tombstone) GetSplitID() []byte

GetSplitID returns identifier of split object hierarchy.

func (*Tombstone) MarshalJSON

func (s *Tombstone) MarshalJSON() ([]byte, error)

func (*Tombstone) SetExpirationEpoch

func (s *Tombstone) SetExpirationEpoch(v uint64)

SetExpirationEpoch sets number of tombstone expiration epoch.

func (*Tombstone) SetMembers

func (s *Tombstone) SetMembers(v []refs.ObjectID)

SetMembers sets list of objects to be deleted.

func (*Tombstone) SetSplitID

func (s *Tombstone) SetSplitID(v []byte)

SetSplitID sets identifier of split object hierarchy.

func (*Tombstone) StableMarshal

func (s *Tombstone) StableMarshal(buf []byte) []byte

StableMarshal marshals unified tombstone message in a protobuf compatible way without field order shuffle.

func (*Tombstone) StableSize

func (s *Tombstone) StableSize() (size int)

StableSize returns size of tombstone message marshalled by StableMarshal function.

func (*Tombstone) ToGRPCMessage

func (s *Tombstone) ToGRPCMessage() grpc.Message

func (*Tombstone) Unmarshal

func (s *Tombstone) Unmarshal(data []byte) error

Unmarshal unmarshal tombstone message from its binary representation.

func (*Tombstone) UnmarshalJSON

func (s *Tombstone) UnmarshalJSON(data []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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