sls

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildApplicationNodeMetadata

func BuildApplicationNodeMetadata(allHardware map[string]sls_common.GenericHardware) (configs.ApplicationNodeMetadataMap, error)

func DecodeHardwareExtraProperties

func DecodeHardwareExtraProperties(hardware sls_common.GenericHardware) (result interface{}, err error)

func DecodeNetworkExtraProperties

func DecodeNetworkExtraProperties(extraPropertiesRaw interface{}, extraProperties *sls_common.NetworkExtraProperties) error

func FilterHardware

func FilterHardware(allHardware map[string]sls_common.GenericHardware, filter func(sls_common.GenericHardware) (bool, error)) (map[string]sls_common.GenericHardware, error)

FilterHardware will apply the given filter to a map of generic hardware

func FilterOutManagementNCNs

func FilterOutManagementNCNs(allHardware map[string]sls_common.GenericHardware) (map[string]sls_common.GenericHardware, error)

func FindManagementNCNs

func FindManagementNCNs(allHardware map[string]sls_common.GenericHardware) ([]sls_common.GenericHardware, error)

func HardwareSubtract

func HardwareSubtract(a, b sls_common.SLSState) ([]sls_common.GenericHardware, error)

Hardware present in A that is missing from B Set subtract operation

func Networks

func Networks(state sls_common.SLSState) (networks sls_common.NetworkArray)

func SwitchAliases

func SwitchAliases(allHardware map[string]sls_common.GenericHardware) (map[string][]string, error)

Types

type GenericHardwarePair

type GenericHardwarePair struct {
	Xname     string
	HardwareA sls_common.GenericHardware
	HardwareB sls_common.GenericHardware
}

func HardwareUnion

func HardwareUnion(a, b sls_common.SLSState) (identicalHardware []sls_common.GenericHardware, differingContents []GenericHardwarePair, err error)

Identify hardware Note when comparing hardware network information like IP address and subnets are not considered. TODO make striping of networking information toggable

Jump to

Keyboard shortcuts

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