Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrAlreadyRemoved = errors.New("object already removed")
ErrAlreadyRemoved returned when object has tombstone in graveyard.
var ErrNotFound = errors.New("object not found")
ErrNotFound is a basic "not found" error returned by object read functions.
var ErrRangeOutOfBounds = errors.New("payload range is out of bounds")
ErrRangeOutOfBounds is a basic error of violation of the boundaries of the payload of an object.
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(o *Object) 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.