serverscom

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashString added in v0.2.1

func HashString(s string) string

func HashStringStateFunc added in v0.2.1

func HashStringStateFunc() schema.SchemaStateFunc

func Provider

func Provider() *schema.Provider

func SDKHashString added in v0.2.1

func SDKHashString(s string) int

hashcode.String in the terraform-plugin-sdk was made internal to the SDK in v2. Embed the implementation here to allow same hash function to continue to be used by the code in this provider that used it for hash computation.

Types

type Cache

type Cache struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewCache

func NewCache(cli *scgo.Client) *Cache

func (*Cache) Bandwidth

func (c *Cache) Bandwidth(locationID int64, serverModelID int64, uplinkModelID int64) ([]scgo.BandwidthOption, error)

func (*Cache) CloudComputingFlavors

func (c *Cache) CloudComputingFlavors(regionID int64) ([]scgo.CloudComputingFlavor, error)

func (*Cache) CloudComputingImages

func (c *Cache) CloudComputingImages(regionID int64) ([]scgo.CloudComputingImage, error)

func (*Cache) CloudComputingRegions

func (c *Cache) CloudComputingRegions() ([]scgo.CloudComputingRegion, error)

func (*Cache) DriveModels

func (c *Cache) DriveModels(locationID int64, serverModelID int64) ([]scgo.DriveModel, error)

func (*Cache) LocationGroups

func (c *Cache) LocationGroups() ([]scgo.L2LocationGroup, error)

func (*Cache) Locations

func (c *Cache) Locations() ([]scgo.Location, error)

func (*Cache) OperatingSystems

func (c *Cache) OperatingSystems(locationID int64, serverModelID int64) ([]scgo.OperatingSystemOption, error)

func (*Cache) ServerModels

func (c *Cache) ServerModels(locationID int64) ([]scgo.ServerModelOption, error)
func (c *Cache) Uplinks(locationID int64, serverModelID int64) ([]scgo.UplinkOption, error)

Jump to

Keyboard shortcuts

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