Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigSchema = map[string]*schema.Attribute{ "application_key": { Type: schema.TypeString, }, "application_secret": { Type: schema.TypeString, }, "consumer_key": { Type: schema.TypeString, }, "endpoint": { Type: schema.TypeString, }, }
Functions ¶
func ConfigInstance ¶
func ConfigInstance() interface{}
func GetConfig ¶
func GetConfig(connection *plugin.Connection) ovhConfig
GetConfig :: retrieve and cast connection config from query data
Types ¶
type Database ¶ added in v0.1.0
type Database struct { ID string `json:"id"` CreatedAt *time.Time `json:"createdAt"` Plan string `json:"plan"` Engine string `json:"engine"` Status string `json:"status"` NodeNumber int `json:"nodeNumber"` Description string `json:"description"` Version string `json:"version"` NetworkType string `json:"networkType"` Flavor string `json:"flavor"` BackupTime string `json:"backupTime"` MaintenanceTime string `json:"maintenanceTime"` }
type Flavor ¶
type Flavor struct { ID string `json:"id"` Name string `json:"name"` Region string `json:"region"` Ram int `json:"ram"` Disk int `json:"disk"` VCPUs int `json:"vcpus"` Type string `json:"type"` OSType string `json:"osType"` InboundBandwidth int `json:"inboundBandwidth"` OutboundBandwidth int `json:"outboundBandwidth"` Available bool `json:"available"` Quota int `json:"quota"` PlanCodes PlanCodes `json:"planCodes"` }
type Image ¶
type Image struct { ID string `json:"id"` Name string `json:"name"` Region string `json:"region"` Visibility string `json:"visibility"` Type string `json:"type"` MinDisk int `json:"minDisk"` MinRam int `json:"minRam"` Size float32 `json:"size"` CreationDate time.Time `json:"creationDate"` Status string `json:"status"` User string `json:"user"` FlavorType string `json:"flavorType"` Tags []string `json:"tags"` PlanCode string `json:"planCode"` }
type Instance ¶
type Instance struct { ID string `json:"id"` Name string `json:"name"` FlavorID string `json:"flavorId"` Flavor Flavor `json:"flavor"` ImageID string `json:"imageId"` Image Image `json:"image"` SSHKeyID string `json:"sshKeyId"` SSHKey SshKey `json:"sshKey"` Created time.Time `json:"created"` Region string `json:"region"` Status string `json:"status"` PlanCode string `json:"planCode"` CurrentMonthOutgoingTraffic *int `json:"currentMonthOutgoingTraffic,omitempty"` }
type Job ¶
type Job struct { ID string `json:"id"` Name string `json:"name"` Region string `json:"region"` ContainerName string `json:"containerName"` Engine string `json:"engine"` EngineVersion string `json:"engineVersion"` StartDate time.Time `json:"startDate"` EndDate time.Time `json:"endDate"` CreationDate time.Time `json:"creationDate"` Status string `json:"status"` TTL string `json:"ttl"` }
type Project ¶
type Project struct { ID string `json:"project_id"` Name string `json:"projectName"` Description string `json:"description"` PlanCode string `json:"planCode"` Unleash *bool `json:"unleash"` Expiration *time.Time `json:"expiration,omitempty"` CreationDate time.Time `json:"creationDate"` OrderId int `json:"orderId"` Access string `json:"access"` Status string `json:"status"` ManualQuota *bool `json:"manualQuota"` }
type StorageContainer ¶
type Volume ¶
type Volume struct { ID string `json:"id"` Name string `json:"name"` Region string `json:"region"` AttachedTo []string `json:"attachedTo"` CreationDate time.Time `json:"creationDate"` Description string `json:"description"` Size int `json:"size"` Status string `json:"status"` Bootable bool `json:"bootable"` PlanCode string `json:"planCode"` Type string `json:"type"` }
Source Files ¶
- connection_config.go
- plugin.go
- table_ovh_cloud_data_job.go
- table_ovh_cloud_database.go
- table_ovh_cloud_flavor.go
- table_ovh_cloud_image.go
- table_ovh_cloud_instance.go
- table_ovh_cloud_postgres.go
- table_ovh_cloud_project.go
- table_ovh_cloud_ssh_key.go
- table_ovh_cloud_storage.go
- table_ovh_cloud_volume.go
- utils.go
Click to show internal directories.
Click to hide internal directories.