location

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: Apache-2.0 Imports: 5 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDatacenterByName

func GetDatacenterByName(sess *session.Session, name string, args ...interface{}) (datatypes.Location_Datacenter, error)

GetDatacenterByName returns a Location_Datacenter that matches the provided name, or an error if no matching datacenter can be found.

Note that unless you need to access datacenter-specific properties (backendHardwareRouters, etc.), it is more efficient to use GetLocationByName, since GetDatacenterByName requires an extra call to the API

func GetLocationByName

func GetLocationByName(sess *session.Session, name string, args ...interface{}) (datatypes.Location, error)

GetLocationByName returns a Location that matches the provided name, or an error if no matching Location can be found.

If you need to access a datacenter's unique properties, use GetDatacenterByName instead

Types

This section is empty.

Jump to

Keyboard shortcuts

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