define

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CategoryAppliance = schema.Category{
	Key:         "appliance",
	DisplayName: "Appliance",
	Order:       40,
}
View Source
var CategoryBilling = schema.Category{
	Key:         "billing",
	DisplayName: "Billing",
	Order:       70,
}
View Source
var CategoryCommonItem = schema.Category{
	Key:         "commonitem",
	DisplayName: "Common items",
	Order:       60,
}
View Source
var CategoryCommonServiceItem = schema.Category{
	Key:         "commonserviceitem",
	DisplayName: "Common service items",
	Order:       50,
}
View Source
var CategoryComputing = schema.Category{
	Key:         "computing",
	DisplayName: "Computing",
	Order:       10,
}
View Source
var CategoryInformation = schema.Category{
	Key:         "information",
	DisplayName: "Service/Product informations",
	Order:       90,
}
View Source
var CategoryNetworking = schema.Category{
	Key:         "networking",
	DisplayName: "Networking",
	Order:       30,
}
View Source
var CategoryOther = schema.Category{
	Key:         "saas",
	DisplayName: "Other services",
	Order:       80,
}
View Source
var CategoryStorage = schema.Category{
	Key:         "storage",
	DisplayName: "Storage",
	Order:       20,
}
View Source
var CommonListParam map[string]*schema.Schema = map[string]*schema.Schema{

	"name": {
		Type:          schema.TypeStringList,
		HandlerType:   schema.HandlerOrParams,
		Description:   "set filter by name(s)",
		ConflictsWith: []string{"id"},
	},
	"id": {
		Type:            schema.TypeIntList,
		HandlerType:     schema.HandlerAndParams,
		DestinationProp: "ID",
		Description:     "set filter by id(s)",
		ConflictsWith:   []string{"name"},
		ValidateFunc:    validateIntSlice(validateSakuraID()),
	},
	"from": {
		Type:            schema.TypeInt,
		HandlerType:     schema.HandlerPathThrough,
		DestinationProp: "SetOffset",
		Description:     "set offset",
	},
	"max": {
		Type:            schema.TypeInt,
		HandlerType:     schema.HandlerPathThrough,
		DestinationProp: "SetLimit",
		Description:     "set limit",
	},

	"sort": {
		Type:        schema.TypeStringList,
		HandlerType: schema.HandlerSort,
		Description: "set field(s) for sort",
	},
}
View Source
var Resources map[string]*schema.Resource = map[string]*schema.Resource{
	"Archive":         ArchiveResource(),
	"AutoBackup":      AutoBackupResource(),
	"Bill":            BillResource(),
	"Bridge":          BridgeResource(),
	"Disk":            DiskResource(),
	"DNS":             DNSResource(),
	"GSLB":            GSLBResource(),
	"Icon":            IconResource(),
	"Interface":       InterfaceResource(),
	"Internet":        InternetResource(),
	"ISOImage":        ISOImageResource(),
	"License":         LicenseResource(),
	"ObjectStorage":   ObjectStorageResource(),
	"PacketFilter":    PacketFilterResource(),
	"Price":           PriceResource(),
	"ProductDisk":     ProductDiskResource(),
	"ProductInternet": ProductInternetResource(),
	"ProductLicense":  ProductLicenseResource(),
	"ProductServer":   ProductServerResource(),
	"Region":          RegionResource(),
	"Server":          ServerResource(),
	"SimpleMonitor":   SimpleMonitorResource(),
	"SSHKey":          SSHKeyResource(),
	"StartupScript":   StartupScriptResource(),
	"Switch":          SwitchResource(),
	"WebAccel":        WebAccelResource(),
	"Zone":            ZoneResource(),
}

Functions

func ArchiveResource

func ArchiveResource() *schema.Resource

func AutoBackupResource

func AutoBackupResource() *schema.Resource

func BillResource

func BillResource() *schema.Resource

func BridgeResource

func BridgeResource() *schema.Resource

func DNSResource

func DNSResource() *schema.Resource

func DiskResource

func DiskResource() *schema.Resource

func GSLBResource

func GSLBResource() *schema.Resource

func ISOImageResource

func ISOImageResource() *schema.Resource

func IconResource

func IconResource() *schema.Resource

func InterfaceResource

func InterfaceResource() *schema.Resource

func InternetResource

func InternetResource() *schema.Resource

func LicenseResource

func LicenseResource() *schema.Resource

func ObjectStorageResource

func ObjectStorageResource() *schema.Resource

func PacketFilterResource

func PacketFilterResource() *schema.Resource

func PriceResource

func PriceResource() *schema.Resource

func ProductDiskResource

func ProductDiskResource() *schema.Resource

func ProductInternetResource

func ProductInternetResource() *schema.Resource

func ProductLicenseResource

func ProductLicenseResource() *schema.Resource

func ProductServerResource

func ProductServerResource() *schema.Resource

func RegionResource

func RegionResource() *schema.Resource

func SSHKeyResource

func SSHKeyResource() *schema.Resource

func ServerResource

func ServerResource() *schema.Resource

func SimpleMonitorResource

func SimpleMonitorResource() *schema.Resource

func StartupScriptResource

func StartupScriptResource() *schema.Resource

func SwitchResource

func SwitchResource() *schema.Resource

func WebAccelResource

func WebAccelResource() *schema.Resource

func ZoneResource

func ZoneResource() *schema.Resource

Types

This section is empty.

Jump to

Keyboard shortcuts

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