engine

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EngineInput

type EngineInput struct {
	Paddle                  ccj.Paddle
	ApplicationNodeMetadata configs.ApplicationNodeMetadataMap

	// Advanced options to control when a the topology engine finds a despcrency.
	IgnoreRemovedHardware                  bool
	HardwareToIgnore                       []string
	IgnoreUnknownCANUHardwareArchitectures bool

	CurrentSLSState sls_common.SLSState
}

type IPReservationChange

type IPReservationChange struct {
	NetworkName   string
	SubnetName    string
	IPReservation sls_common.IPReservation

	// This is the hardware object that triggered the change
	// If empty, then this was not changed by hardware
	ChangedByXname string
}

type SubnetChange

type SubnetChange struct {
	NetworkName string
	Subnet      sls_common.IPV4Subnet
}

type TopologyChanges

type TopologyChanges struct {
	// The following fields are meant to pushed back into SLS
	HardwareAdded    []sls_common.GenericHardware
	ModifiedNetworks map[string]sls_common.Network

	// The following fields are for book keeping to trigger other events
	SubnetsAdded        []SubnetChange
	IPReservationsAdded []IPReservationChange
}

type TopologyEngine

type TopologyEngine struct {
	Input EngineInput
}

func (*TopologyEngine) DetermineChanges

func (te *TopologyEngine) DetermineChanges() (*TopologyChanges, error)

Jump to

Keyboard shortcuts

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