ovh

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

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

func Plugin

func Plugin(ctx context.Context) *plugin.Plugin

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 PlanCodes

type PlanCodes struct {
	Monthly string `string:"monthly"`
	Hourly  string `string:"hourly"`
}

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 SshKey added in v0.0.3

type SshKey struct {
	ID        string `json:"id"`
	Name      string `json:"name"`
	PublicKey string `json:"publicKey"`
}

type StorageContainer

type StorageContainer struct {
	ID            string `json:"id"`
	Name          string `json:"name"`
	StoredObjects int    `json:"storedObjects"`
	StoredBytes   int    `json:"storedBytes"`
	Region        string `json:"region"`
}

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"`
}

Jump to

Keyboard shortcuts

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