Documentation ¶
Index ¶
- func BuildApplicationNodeMetadata(allHardware map[string]sls_common.GenericHardware) (configs.ApplicationNodeMetadataMap, error)
- func DecodeHardwareExtraProperties(hardware sls_common.GenericHardware) (result interface{}, err error)
- func DecodeNetworkExtraProperties(extraPropertiesRaw interface{}, ...) error
- func FilterHardware(allHardware map[string]sls_common.GenericHardware, ...) (map[string]sls_common.GenericHardware, error)
- func FilterOutManagementNCNs(allHardware map[string]sls_common.GenericHardware) (map[string]sls_common.GenericHardware, error)
- func FindManagementNCNs(allHardware map[string]sls_common.GenericHardware) ([]sls_common.GenericHardware, error)
- func HardwareSubtract(a, b sls_common.SLSState) ([]sls_common.GenericHardware, error)
- func Networks(state sls_common.SLSState) (networks sls_common.NetworkArray)
- func SwitchAliases(allHardware map[string]sls_common.GenericHardware) (map[string][]string, error)
- type GenericHardwarePair
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
Click to show internal directories.
Click to hide internal directories.