translate

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBlockWithMultiIBTestSet

func GetBlockWithMultiIBTestSet() (*topology.Vertex, map[string]string)

func GetTreeTestSet

func GetTreeTestSet(testForLongLabelName bool) (*topology.Vertex, map[string]string)

Types

type Block

type Block struct {
	Name  string `yaml:"block"`
	Nodes string `yaml:"nodes"`
}

type BlockTopo

type BlockTopo struct {
	BlockSizes []int    `yaml:"blockSizes"`
	Blocks     []*Block `yaml:"blocks"`
}

type Config

type Config struct {
	Plugin       string // topology plugin (cluster-wide)
	BlockSizes   []int
	FakeNodePool string
	Topologies   map[string]*TopologySpec // per-partiton topology settings
}

func (*Config) Validate

func (cfg *Config) Validate(root *topology.Vertex) error

type NetworkTopology

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

func NewNetworkTopology

func NewNetworkTopology(root *topology.Vertex, cfg *Config) (*NetworkTopology, error)

func (*NetworkTopology) Generate

func (nt *NetworkTopology) Generate(wr io.Writer) error

type Switch

type Switch struct {
	Name     string `yaml:"switch"`
	Children string `yaml:"children,omitempty"`
	Nodes    string `yaml:"nodes,omitempty"`
}

type TopologySpec

type TopologySpec struct {
	Plugin         string
	BlockSizes     []int
	ClusterDefault bool
	Nodes          []string
}

TopologySpec define topology for a partition

type TopologyUnit

type TopologyUnit struct {
	Name    string     `yaml:"topology"`
	Default bool       `yaml:"clusterDefault"`
	Flat    bool       `yaml:"flat,omitempty"`
	Tree    *TreeTopo  `yaml:"tree,omitempty"`
	Block   *BlockTopo `yaml:"block,omitempty"`
}

type TreeTopo

type TreeTopo struct {
	Switches []*Switch `yaml:"switches"`
}

Jump to

Keyboard shortcuts

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