service

package
v1.0.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: Apache-2.0 Imports: 7 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPlacementOperator added in v0.15.13

func NewPlacementOperator(initialPlacement placement.Placement, opts ...Option) placement.Operator

NewPlacementOperator constructs a placement.Operator which performs transformations on the given placement. If initialPlacement is nil, BuildInitialPlacement must be called before any operations on the placement.

func NewPlacementService

func NewPlacementService(s placement.Storage, opts ...Option) placement.Service

NewPlacementService returns an instance of placement service.

Types

type Option added in v1.0.0

type Option interface {
	// contains filtered or unexported methods
}

Option is an interface for PlacementService options.

func WithAlgorithm added in v1.0.0

func WithAlgorithm(algo placement.Algorithm) Option

WithAlgorithm sets the algorithm implementation that will be used by PlacementService.

func WithPlacementOptions added in v1.0.0

func WithPlacementOptions(opts placement.Options) Option

WithPlacementOptions sets the placement options for PlacementService.

Jump to

Keyboard shortcuts

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