util

package
v7.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: ISC Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertNestedASNsToASNs

func ConvertNestedASNsToASNs(asns []*models.NestedASN) []int64

func ConvertNestedIPsToIPs

func ConvertNestedIPsToIPs(asns []*models.NestedIPAddress) []int64

func ConvertNestedVlansToVlans

func ConvertNestedVlansToVlans(vlans []*models.NestedVLAN) []int64

func ConvertURIContentType

func ConvertURIContentType(uri strfmt.URI) string

Convert URL in content_type

func ExpandToInt64Slice

func ExpandToInt64Slice(v []interface{}) ([]int64, error)

func FieldNameToStructName

func FieldNameToStructName(k string) string

func Float2stringptr

func Float2stringptr(vcpus *float64) *string

func GetClusterStatusValue

func GetClusterStatusValue(nested *models.ClusterStatus) *string

func GetCustomFieldUIVisibilityValue

func GetCustomFieldUIVisibilityValue(nested *models.CustomFieldUIVisibility) *string

func GetIPAddressAssignedObject

func GetIPAddressAssignedObject(nested *models.IPAddress) (*string, *int64)

func GetIPAddressFamilyLabel

func GetIPAddressFamilyLabel(nested *models.IPAddressFamily) *string

func GetIPAddressRoleValue

func GetIPAddressRoleValue(nested *models.IPAddressRole) *string

func GetIPAddressStatusValue

func GetIPAddressStatusValue(nested *models.IPAddressStatus) *string

func GetLocalContextData

func GetLocalContextData(data interface{}) (*string, error)

func GetLocationStatusValue

func GetLocationStatusValue(nested *models.LocationStatus) *string

func GetNestedClusterGroupID

func GetNestedClusterGroupID(nested *models.NestedClusterGroup) *int64

func GetNestedDeviceID

func GetNestedDeviceID(nested *models.NestedDevice) *int64

func GetNestedIPAddressAddress

func GetNestedIPAddressAddress(nested *models.NestedIPAddress) *string

func GetNestedIPAddressID

func GetNestedIPAddressID(nested *models.NestedIPAddress) *int64

func GetNestedLocationID

func GetNestedLocationID(nested *models.NestedLocation) *int64

func GetNestedManufacturerID

func GetNestedManufacturerID(nested *models.NestedManufacturer) *int64

func GetNestedPlatformID

func GetNestedPlatformID(nested *models.NestedPlatform) *int64

func GetNestedRackRoleID

func GetNestedRackRoleID(nested *models.NestedRackRole) *int64

func GetNestedRegionID

func GetNestedRegionID(nested *models.NestedRegion) *int64

func GetNestedRegionParentID

func GetNestedRegionParentID(nested *models.NestedRegion) *int64

func GetNestedRoleID

func GetNestedRoleID(nested *models.NestedDeviceRole) *int64

func GetNestedSiteGroupID

func GetNestedSiteGroupID(nested *models.NestedSiteGroup) *int64

func GetNestedSiteID

func GetNestedSiteID(nested *models.NestedSite) *int64

func GetNestedTenantID

func GetNestedTenantID(nested *models.NestedTenant) *int64

func GetNestedVlanID

func GetNestedVlanID(nested *models.NestedVLAN) *int64

func GetNestedVrfID

func GetNestedVrfID(nested *models.NestedVRF) *int64

func GetRackOuterUnit

func GetRackOuterUnit(nested *models.RackOuterUnit) *string

func GetRackStatusValue

func GetRackStatusValue(nested *models.RackStatus) *string

func GetRackTypeValue

func GetRackTypeValue(nested *models.RackType) *string

func RenderTemplate

func RenderTemplate(tplstring string, data map[string]string) string

func TestAccCheckID

func TestAccCheckID(r, k string, id *string) resource.TestCheckFunc

func TestAccPreCheck

func TestAccPreCheck(t *testing.T)

func TestAccResourceExists

func TestAccResourceExists(n string) resource.TestCheckFunc

func TestAccSaveID

func TestAccSaveID(n string, id *string) resource.TestCheckFunc

func ToListofInts

func ToListofInts(in []interface{}) []int64

func ToListofStrings

func ToListofStrings(in []interface{}) []string

func TrimString

func TrimString(val interface{}) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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