Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildObjectPlacement ¶ added in v0.14.0
Types ¶
type Builder ¶ added in v0.12.0
type Builder interface { // BuildPlacement returns the list of placement vectors // for object according to the placement policy. // // Must return all container nodes if object identifier // is nil. BuildPlacement(*object.Address, *netmap.PlacementPolicy) ([]netmap.Nodes, error) }
Builder is an interface of the object placement vector builder.
func NewNetworkMapBuilder ¶ added in v0.12.0
func NewNetworkMapSourceBuilder ¶ added in v0.12.0
type Option ¶ added in v0.12.0
type Option func(*cfg)
Option represents placement traverser option.
func ForContainer ¶ added in v0.12.0
ForContainer is a traversal container setting option.
func SuccessAfter ¶ added in v0.12.0
SuccessAfter is a flat success number setting option.
Option has no effect if the number is not positive.
func UseBuilder ¶ added in v0.12.0
UseBuilder is a placement builder setting option.
Overlaps UseNetworkMap option.
func WithoutSuccessTracking ¶ added in v0.12.0
func WithoutSuccessTracking() Option
WithoutSuccessTracking disables success tracking in traversal.
type Traverser ¶ added in v0.12.0
type Traverser struct {
// contains filtered or unexported fields
}
Traverser represents utility for controlling traversal of object placement vectors.
func NewTraverser ¶ added in v0.12.0
NewTraverser creates, initializes with options and returns Traverser instance.
func (*Traverser) Next ¶ added in v0.12.0
Next returns next unprocessed address of the object placement.
Returns nil if no nodes left or traversal operation succeeded.
func (*Traverser) SubmitSuccess ¶ added in v0.12.0
func (t *Traverser) SubmitSuccess()
SubmitSuccess writes single succeeded node operation.