Documentation ¶
Index ¶
- type DeleteHandler
- type FormatValidator
- type FormatValidatorOption
- type Object
- type RawObject
- type TombstoneContent
- type TombstoneContentV2
- func (c *TombstoneContentV2) GetAddressList() []*refs.Address
- func (c *TombstoneContentV2) SetAddressList(v []*refs.Address)
- func (c *TombstoneContentV2) StableMarshal(buf []byte) ([]byte, error)
- func (c *TombstoneContentV2) StableSize() (sz int)
- func (c *TombstoneContentV2) StableUnmarshal(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteHandler ¶ added in v0.12.0
DeleteHandler is an interface of delete queue processor.
type FormatValidator ¶ added in v0.12.0
type FormatValidator struct {
// contains filtered or unexported fields
}
FormatValidator represents object format validator.
func NewFormatValidator ¶ added in v0.12.0
func NewFormatValidator(opts ...FormatValidatorOption) *FormatValidator
NewFormatValidator creates, initializes and returns FormatValidator instance.
func (*FormatValidator) Validate ¶ added in v0.12.0
func (v *FormatValidator) Validate(obj *Object) error
Validate validates object format.
Does not validate payload checksum and content.
Returns nil error if object has valid structure.
func (*FormatValidator) ValidateContent ¶ added in v0.12.0
func (v *FormatValidator) ValidateContent(t object.Type, payload []byte) error
ValidateContent validates payload content according to object type.
type FormatValidatorOption ¶ added in v0.12.0
type FormatValidatorOption func(*cfg)
FormatValidatorOption represents FormatValidator constructor option.
func WithDeleteHandler ¶ added in v0.12.0
func WithDeleteHandler(v DeleteHandler) FormatValidatorOption
WithDeleteHandler returns option to set delete queue processor.
type Object ¶
Object represents the NeoFS object.
Object inherits object type from NeoFS SDK. It is used to implement some useful methods and functions for convenient processing of an object by a node.
func NewFromSDK ¶ added in v0.12.0
NewFromSDK constructs Object instance from NeoFS SDK Object.
type RawObject ¶ added in v0.12.0
RawObject represents the raw NeoFS object.
RawObject inherits RawObject type from NeoFS SDK. It is used to implement some useful methods and functions for convenient processing of a raw object by a node.
func NewRawFrom ¶ added in v0.12.0
NewRawFrom constructs RawObject instance from NeoFS SDK RawObject.
func NewRawFromObject ¶ added in v0.12.0
NewRawFromObject wraps Object instance to RawObject.
func NewRawFromV2 ¶ added in v0.12.0
NewRawFromV2 constructs RawObject instance from v2 Object message.
func (*RawObject) CutPayload ¶ added in v0.12.0
CutPayload returns RawObject w/ empty payload.
Changes of non-payload fields affect source object.
type TombstoneContent ¶ added in v0.12.0
type TombstoneContent TombstoneContentV2
func NewTombstoneContent ¶ added in v0.12.0
func NewTombstoneContent() *TombstoneContent
func NewTombstoneContentFromV2 ¶ added in v0.12.0
func NewTombstoneContentFromV2(cV2 *TombstoneContentV2) *TombstoneContent
func TombstoneContentFromBytes ¶ added in v0.12.0
func TombstoneContentFromBytes(data []byte) (*TombstoneContent, error)
func (*TombstoneContent) GetAddressList ¶ added in v0.12.0
func (c *TombstoneContent) GetAddressList() []*object.Address
func (*TombstoneContent) MarshalBinary ¶ added in v0.12.0
func (c *TombstoneContent) MarshalBinary() ([]byte, error)
func (*TombstoneContent) SetAddressList ¶ added in v0.12.0
func (c *TombstoneContent) SetAddressList(v ...*object.Address)
func (*TombstoneContent) ToV2 ¶ added in v0.12.0
func (c *TombstoneContent) ToV2() *TombstoneContentV2
type TombstoneContentV2 ¶ added in v0.12.0
type TombstoneContentV2 struct {
// contains filtered or unexported fields
}
func (*TombstoneContentV2) GetAddressList ¶ added in v0.12.0
func (c *TombstoneContentV2) GetAddressList() []*refs.Address
func (*TombstoneContentV2) SetAddressList ¶ added in v0.12.0
func (c *TombstoneContentV2) SetAddressList(v []*refs.Address)
func (*TombstoneContentV2) StableMarshal ¶ added in v0.12.0
func (c *TombstoneContentV2) StableMarshal(buf []byte) ([]byte, error)
func (*TombstoneContentV2) StableSize ¶ added in v0.12.0
func (c *TombstoneContentV2) StableSize() (sz int)
func (*TombstoneContentV2) StableUnmarshal ¶ added in v0.12.0
func (c *TombstoneContentV2) StableUnmarshal(data []byte) error