tombstone

package
v2.0.0-...-d29d931 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TombstoneToGRPCMessage

func TombstoneToGRPCMessage(t *Tombstone) *tombstone.Tombstone

TombstoneToGRPCMessage converts unified tombstone message into gRPC message.

Types

type Tombstone

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

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

func TombstoneFromGRPCMessage

func TombstoneFromGRPCMessage(m *tombstone.Tombstone) *Tombstone

TombstoneFromGRPCMessage converts gRPC message into unified tombstone message.

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, error)

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) 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