hardware

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHardwareIter added in v1.1.4

func GetHardwareIter(session session.SLSession, options *sl.Options) (resp []datatypes.Hardware, err error)

Use go-routines to iterate through all hardware results. options should be any Mask or Filter you need, and a Limit if the default is too large. Any error in the subsequent API calls will be logged, but largely ignored

func GetRouterByName

func GetRouterByName(sess *session.Session, hostname string, args ...interface{}) (datatypes.Hardware, error)

GeRouterByName returns a Hardware that matches the provided hostname, or an error if no matching Hardware can be found. SoftLayer does not provide a direct path to retrieve a list of router objects. So, get Location_Datacenter object at first and get an array of router objects from the Datacenter

Types

This section is empty.

Jump to

Keyboard shortcuts

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