ovh

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2020 License: MPL-2.0 Imports: 19 Imported by: 2

Documentation

Index

Constants

View Source
const (
	CrushTunableOptimal  DedicatedCephCrushTunable = "OPTIMAL"
	CrushTunableDefault  DedicatedCephCrushTunable = "DEFAULT"
	CrushTunableLegacy   DedicatedCephCrushTunable = "LEGACY"
	CrushTunableBobtail  DedicatedCephCrushTunable = "BOBTAIL"
	CrushTunableArgonaut DedicatedCephCrushTunable = "ARGONAUT"
	CrushTunableFirefly  DedicatedCephCrushTunable = "FIREFLY"
	CrushTunableHammer   DedicatedCephCrushTunable = "HAMMER"
	CrushTunablEjewel    DedicatedCephCrushTunable = "JEWEL"
	StateActive          DedicatedCephState        = "ACTIVE"
	StateSuspended       DedicatedCephState        = "SUSPENDED"
	ACLTypeIPv4          DedicatedCephACLType      = "IPV4"
	ACLTypeIPv6          DedicatedCephACLType      = "IPV6"
	StatusCreating       DedicatedCephStatus       = "CREATING"
	StatusInstalled      DedicatedCephStatus       = "INSTALLED"
	StatusDeleting       DedicatedCephStatus       = "DELETING"
	StatusDeleted        DedicatedCephStatus       = "DELETED"
	StatusTaskInProgress DedicatedCephStatus       = "TASK_IN_PROGRESS"
)

Variables

This section is empty.

Functions

func Provider

func Provider() *schema.Provider

Provider returns a *schema.Provider for OVH.

Types

type BankAccount added in v0.3.0

type BankAccount struct {
	Description            string `json:"description"`
	Default                bool   `json:"defaultPaymentMean"`
	State                  string `json:"state"`
	Id                     int    `json:"id"`
	ValidationDocumentLink string `json:"validationDocumentLink"`
	UniqueReference        string `json:"uniqueReference"`
	CreationDate           string `json:"creationDate"`
	MandateSignatureDate   string `json:"mandateSignatureDate"`
	OwnerName              string `json:"ownerName"`
	OwnerAddress           string `json:"ownerAddress"`
	Iban                   string `json:"iban"`
	Bic                    string `json:"bic"`
}

type CloudNetworkPrivateCreateOpts added in v0.6.0

type CloudNetworkPrivateCreateOpts struct {
	ProjectId string   `json:"serviceName"`
	VlanId    int      `json:"vlanId"`
	Name      string   `json:"name"`
	Regions   []string `json:"regions"`
}

Opts

func (*CloudNetworkPrivateCreateOpts) String added in v0.6.0

type CloudNetworkPrivateRegion added in v0.6.0

type CloudNetworkPrivateRegion struct {
	Status string `json:"status"`
	Region string `json:"region"`
}

func (*CloudNetworkPrivateRegion) String added in v0.6.0

func (p *CloudNetworkPrivateRegion) String() string

type CloudNetworkPrivateResponse added in v0.6.0

type CloudNetworkPrivateResponse struct {
	Id      string                       `json:"id"`
	Status  string                       `json:"status"`
	Vlanid  int                          `json:"vlanId"`
	Name    string                       `json:"name"`
	Type    string                       `json:"type"`
	Regions []*CloudNetworkPrivateRegion `json:"regions"`
}

func (*CloudNetworkPrivateResponse) String added in v0.6.0

func (p *CloudNetworkPrivateResponse) String() string

type CloudNetworkPrivateUpdateOpts added in v0.6.0

type CloudNetworkPrivateUpdateOpts struct {
	Name string `json:"name"`
}

Opts

type CloudNetworkPrivatesCreateOpts added in v0.6.0

type CloudNetworkPrivatesCreateOpts struct {
	ProjectId string `json:"serviceName"`
	NetworkId string `json:"networkId"`
	Dhcp      bool   `json:"dhcp"`
	NoGateway bool   `json:"noGateway"`
	Start     string `json:"start"`
	End       string `json:"end"`
	Network   string `json:"network"`
	Region    string `json:"region"`
}

Opts

func (*CloudNetworkPrivatesCreateOpts) String added in v0.6.0

type CloudNetworkPrivatesResponse added in v0.6.0

type CloudNetworkPrivatesResponse struct {
	Id        string    `json:"id"`
	GatewayIp string    `json:"gatewayIp"`
	Cidr      string    `json:"cidr"`
	IPPools   []*IPPool `json:"ipPools"`
}

func (*CloudNetworkPrivatesResponse) String added in v0.6.0

type CloudRegionResponse added in v0.6.0

type CloudRegionResponse struct {
	ContinentCode      string                       `json:"continentCode"`
	DatacenterLocation string                       `json:"datacenterLocation"`
	Name               string                       `json:"name"`
	Services           []CloudServiceStatusResponse `json:"services"`
}

func (*CloudRegionResponse) HasServiceUp added in v0.6.0

func (r *CloudRegionResponse) HasServiceUp(service string) bool

func (*CloudRegionResponse) String added in v0.6.0

func (r *CloudRegionResponse) String() string

type CloudServiceStatusResponse added in v0.6.0

type CloudServiceStatusResponse struct {
	Status string `json:"status"`
	Name   string `json:"name"`
}

func (*CloudServiceStatusResponse) String added in v0.6.0

func (s *CloudServiceStatusResponse) String() string

type CloudUser added in v0.9.0

type CloudUser struct {
	CreationDate string           `json:"creationDate"`
	Description  string           `json:"description"`
	Id           int              `json:"id"`
	Password     string           `json:"password"`
	Roles        []*CloudUserRole `json:"roles"`
	Status       string           `json:"status"`
	Username     string           `json:"username"`
}

func (*CloudUser) String added in v0.9.0

func (u *CloudUser) String() string

func (CloudUser) ToMap added in v0.9.0

func (u CloudUser) ToMap() map[string]interface{}

type CloudUserCreateOpts added in v0.6.0

type CloudUserCreateOpts struct {
	Description *string  `json:"description,omitempty"`
	Role        *string  `json:"role,omitempty"`
	Roles       []string `json:"roles"`
}

Opts

func (*CloudUserCreateOpts) FromResource added in v0.9.0

func (*CloudUserCreateOpts) String added in v0.6.0

func (p *CloudUserCreateOpts) String() string

type CloudUserOpenstackRC added in v0.6.0

type CloudUserOpenstackRC struct {
	Content string `json:"content"`
}

type CloudUserRole added in v0.9.0

type CloudUserRole struct {
	Description string   `json:"description"`
	Id          string   `json:"id"`
	Name        string   `json:"name"`
	Permissions []string `json:"permissions"`
}

func (CloudUserRole) ToMap added in v0.9.0

func (r CloudUserRole) ToMap() map[string]interface{}

type Config

type Config struct {
	Endpoint          string
	ApplicationKey    string
	ApplicationSecret string
	ConsumerKey       string
	OVHClient         *ovh.Client
}

type CreditCard added in v0.3.0

type CreditCard struct {
	Description      string `json:"description"`
	Number           string `json:"number"`
	Expiration       string `json:"expirationDate"`
	Default          bool   `json:"defaultPaymentMean"`
	State            string `json:"state"`
	ThreeDSValidated bool   `json:"threeDsValidated"`
	Id               int    `json:"id"`
	Type             string `json:"type"`
}

type DedicatedCeph added in v0.9.0

type DedicatedCeph struct {
	ServiceName   string                    `json:"serviceName"`
	CephMonitors  []string                  `json:"cephMons"`
	CephVersion   string                    `json:"cephVersion"`
	CrushTunables DedicatedCephCrushTunable `json:"crushTunables"`
	Label         string                    `json:"label"`
	Region        string                    `json:"region"`
	Size          float32                   `json:"size"`
	State         DedicatedCephState        `json:"state"`
	Status        DedicatedCephStatus       `json:"status"`
}

type DedicatedCephACL added in v0.9.0

type DedicatedCephACL struct {
	Id      int                  `json:"id"`
	Family  DedicatedCephACLType `json:"family"`
	Netmask string               `json:"netmask"`
	Network string               `json:"network"`
}

type DedicatedCephACLCreateOpts added in v0.9.0

type DedicatedCephACLCreateOpts struct {
	AclList []string `json:"aclList"`
}

func (*DedicatedCephACLCreateOpts) FromResource added in v0.9.0

type DedicatedCephACLType added in v0.9.0

type DedicatedCephACLType string

type DedicatedCephCrushTunable added in v0.9.0

type DedicatedCephCrushTunable string

type DedicatedCephState added in v0.9.0

type DedicatedCephState string

type DedicatedCephStatus added in v0.9.0

type DedicatedCephStatus string

type DedicatedCephTask added in v0.9.0

type DedicatedCephTask struct {
	Name       string `json:"name"`
	State      string `json:"state"`
	FinishDate string `json:"finishDate"`
	Type       string `json:"type"`
	CreateDate string `json:"createDate"`
}

type DedicatedServer added in v0.6.0

type DedicatedServer struct {
	Name            string `json:"name"`
	BootId          int    `json:"bootId"`
	CommercialRange string `json:"commercialRange"`
	Datacenter      string `json:"datacenter"`
	Ip              string `json:"ip"`
	LinkSpeed       int    `json:"linkSpeed"`
	Monitoring      bool   `json:"monitoring"`
	Os              string `json:"os"`
	ProfessionalUse bool   `json:"professionalUse"`
	Rack            string `json:"rack"`
	RescueMail      string `json:"rescueMail"`
	Reverse         string `json:"reverse"`
	RootDevice      string `json:"rootDevice"`
	ServerId        int    `json:"serverId"`
	State           string `json:"state"`
	SupportLevel    string `json:"supportLevel"`
}

func (DedicatedServer) String added in v0.6.0

func (ds DedicatedServer) String() string

type DedicatedServerBoot added in v0.6.0

type DedicatedServerBoot struct {
	BootId      int    `json:"bootId"`
	BootType    string `json:"bootType"`
	Description string `json:"description"`
	Kernel      string `json:"kernel"`
}

type DedicatedServerInstallTaskCreateOpts added in v0.6.0

type DedicatedServerInstallTaskCreateOpts struct {
	TemplateName        string                             `json:"templateName"`
	PartitionSchemeName *string                            `json:"partitionSchemeName,omitempty"`
	Details             *DedicatedServerInstallTaskDetails `json:"details"`
}

func (*DedicatedServerInstallTaskCreateOpts) FromResource added in v0.6.0

type DedicatedServerInstallTaskDetails added in v0.6.0

type DedicatedServerInstallTaskDetails struct {
	CustomHostname               *string `json:"customHostname,omitempty"`
	DiskGroupId                  *int64  `json:"diskGroupId,omitempty"`
	InstallRTM                   *bool   `json:"installRTM,omitempty"`
	InstallSqlServer             *bool   `json:"installSqlServer,omitempty"`
	Language                     *string `json:"language,omitempty"`
	NoRaid                       *bool   `json:"noRaid,omitempty"`
	PostInstallationScriptLink   *string `json:"postInstallationScriptLink,omitempty"`
	PostInstallationScriptReturn *string `json:"postInstallationScriptReturn,omitempty"`
	ResetHwRaid                  *bool   `json:"resetHwRaid,omitempty"`
	SoftRaidDevices              *int64  `json:"softRaidDevices,omitempty"`
	SshKeyName                   *string `json:"sshKeyName,omitempty"`
	UseDistribKernel             *bool   `json:"useDistribKernel,omitempty"`
	UseSpla                      *bool   `json:"useSpla,omitempty"`
}

func (*DedicatedServerInstallTaskDetails) FromResource added in v0.6.0

type DedicatedServerTask added in v0.6.0

type DedicatedServerTask struct {
	Id         int64     `json:"taskId"`
	Function   string    `json:"function"`
	Comment    string    `json:"comment"`
	Status     string    `json:"status"`
	LastUpdate time.Time `json:"lastUpdate"`
	DoneDate   time.Time `json:"doneDate"`
	StartDate  time.Time `json:"startDate"`
}

type DedicatedServerUpdateOpts added in v0.6.0

type DedicatedServerUpdateOpts struct {
	BootId     *int64  `json:"bootId,omitempty"`
	Monitoring *bool   `json:"monitoring,omitempty"`
	State      *string `json:"state,omitempty"`
}

func (*DedicatedServerUpdateOpts) FromResource added in v0.6.0

type DedicatedServerVNI added in v0.6.0

type DedicatedServerVNI struct {
	Enabled    bool     `json:"enabled"`
	Mode       string   `json:"mode"`
	Name       string   `json:"name"`
	NICs       []string `json:"networkInterfaceController"`
	ServerName string   `json:"serverName"`
	Uuid       string   `json:"uuid"`
	Vrack      *string  `json:"vrack,omitempty"`
}

func (DedicatedServerVNI) String added in v0.6.0

func (vni DedicatedServerVNI) String() string

func (DedicatedServerVNI) ToMap added in v0.6.0

func (v DedicatedServerVNI) ToMap() map[string]interface{}

type DomainZone added in v0.3.0

type DomainZone struct {
	LastUpdate      string   `json:"lastUpdate"`
	NameServers     []string `json:"nameServers"`
	HasDnsAnycast   bool     `json:"hasDnsAnycast"`
	DnssecSupported bool     `json:"dnssecSupported"`
}

type HardwareRaid added in v0.6.0

type HardwareRaid struct {
	Disks []string `json:"disks"`
	Mode  string   `json:"mode"`
	Name  string   `json:"name"`
	Step  int      `json:"step"`
}

func (HardwareRaid) ToMap added in v0.6.0

func (v HardwareRaid) ToMap() map[string]interface{}

type HardwareRaidCreateOrUpdateOpts added in v0.6.0

type HardwareRaidCreateOrUpdateOpts struct {
	HardwareRaid
}

func (*HardwareRaidCreateOrUpdateOpts) FromResource added in v0.6.0

type IPLoadbalancingRefreshPending added in v0.4.0

type IPLoadbalancingRefreshPending struct {
	Number int    `json:"number"`
	Zone   string `json:"zone"`
}

type IPLoadbalancingRefreshPendings added in v0.4.0

type IPLoadbalancingRefreshPendings []IPLoadbalancingRefreshPending

type IPLoadbalancingRefreshTask added in v0.4.0

type IPLoadbalancingRefreshTask struct {
	CreationDate string   `json:"creationDate"`
	Status       string   `json:"status"`
	Progress     int      `json:"progress"`
	Action       string   `json:"action"`
	ID           int      `json:"id"`
	DoneDate     string   `json:"doneDate"`
	Zones        []string `json:"zones"`
}

type IPLoadbalancingRouteHTTP added in v0.3.0

type IPLoadbalancingRouteHTTP struct {
	Status      string                          `json:"status,omitempty"`      //Route status. Routes in "ok" state are ready to operate
	Weight      int                             `json:"weight,omitempty"`      //Route priority ([0..255]). 0 if null. Highest priority routes are evaluated first. Only the first matching route will trigger an action
	Action      *IPLoadbalancingRouteHTTPAction `json:"action,omitempty"`      //Action triggered when all rules match
	RouteID     int                             `json:"routeId,omitempty"`     //Id of your route
	DisplayName string                          `json:"displayName,omitempty"` //Human readable name for your route, this field is for you
	FrontendID  int                             `json:"frontendId,omitempty"`  //Route traffic for this frontend
}

IPLoadbalancingRouteHTTP HTTP Route

type IPLoadbalancingRouteHTTPAction added in v0.3.0

type IPLoadbalancingRouteHTTPAction struct {
	Target string `json:"target,omitempty"` // Farm ID for "farm" action type or URL template for "redirect" action. You may use ${uri}, ${protocol}, ${host}, ${port} and ${path} variables in redirect target
	Status int    `json:"status,omitempty"` // HTTP status code for "redirect" and "reject" actions
	Type   string `json:"type,omitempty"`   // Action to trigger if all the rules of this route matches
}

IPLoadbalancingRouteHTTPAction Action triggered when all rules match

type IPLoadbalancingRouteHTTPRule added in v0.3.0

type IPLoadbalancingRouteHTTPRule struct {
	RuleID      int    `json:"ruleId,omitempty"`      //Id of your rule
	RouteID     int    `json:"routeId,omitempty"`     //Id of your route
	DisplayName string `json:"displayName,omitempty"` //Human readable name for your rule
	Field       string `json:"field,omitempty"`       //Name of the field to match like "protocol" or "host". See "/ipLoadbalancing/{serviceName}/availableRouteRules" for a list of available rules
	Match       string `json:"match,omitempty"`       //Matching operator. Not all operators are available for all fields. See "/ipLoadbalancing/{serviceName}/availableRouteRules"
	Negate      bool   `json:"negate,omitempty"`      //Invert the matching operator effect
	Pattern     string `json:"pattern,omitempty"`     //Value to match against this match. Interpretation if this field depends on the match and field
	SubField    string `json:"subField,omitempty"`    //Name of sub-field, if applicable. This may be a Cookie or Header name for instance
}

IPLoadbalancingRouteHTTPRule HTTP Route Rule

type IPPool

type IPPool struct {
	Network string `json:"network"`
	Region  string `json:"region"`
	Dhcp    bool   `json:"dhcp"`
	Start   string `json:"start"`
	End     string `json:"end"`
}

func (*IPPool) String

func (p *IPPool) String() string

type InstallationTemplate added in v0.6.0

type InstallationTemplate struct {
	AvailableLanguages         []string                           `json:"available_languages"`
	Beta                       *bool                              `json:"beta,omitempty"`
	BitFormat                  int                                `json:"bitFormat"`
	Category                   string                             `json:"category"`
	Customization              *InstallationTemplateCustomization `json:"customization,omitempty"`
	DefaultLanguage            string                             `json:"defaultLanguage"`
	Deprecated                 *bool                              `json:"deprecated,omitempty"`
	Description                string                             `json:"description"`
	Distribution               string                             `json:"distribution"`
	Family                     string                             `json:"family"`
	Filesystems                []string                           `json:"filesystems"`
	HardRaidConfiguration      *bool                              `json:"hardRaidConfigurtion,omitempty"`
	LastModification           *string                            `json:"last_modification"`
	LvmReady                   *bool                              `json:"lvmReady,omitempty"`
	SupportsDistributionKernel *bool                              `json:"supportsDistributionKernel,omitempty"`
	SupportsGptLabel           *bool                              `json:"supportsGptLabel,omitempty"`
	SupportsRTM                bool                               `json:"supportsRTM"`
	SupportsSqlServer          *bool                              `json:"supportsSqlServer,omitempty"`
	SupportsUEFI               *string                            `json:"supportsUEFI,omitempty"`
	TemplateName               string                             `json:"templateName"`
}

func (InstallationTemplate) ToMap added in v0.6.0

func (v InstallationTemplate) ToMap() map[string]interface{}

type InstallationTemplateCreateOpts added in v0.6.0

type InstallationTemplateCreateOpts struct {
	BaseTemplateName string `json:"baseTemplateName"`
	Name             string `json:"name"`
	DefaultLanguage  string `json:"defaultLanguage"`
}

func (*InstallationTemplateCreateOpts) FromResource added in v0.6.0

type InstallationTemplateCustomization added in v0.6.0

type InstallationTemplateCustomization struct {
	ChangeLog                    *string `json:"changeLog,omitempty"`
	CustomHostname               *string `json:"customHostname,omitempty"`
	PostInstallationScriptLink   *string `json:"postInstallationScriptLink,omitempty"`
	PostInstallationScriptReturn *string `json:"postInstallationScriptReturn,omitempty"`
	Rating                       *int    `json:"rating,omitempty"`
	SshKeyName                   *string `json:"sshKeyName,omitempty"`
	UseDistributionKernel        *bool   `json:"useDistributionKernel,omitempty"`
}

func (*InstallationTemplateCustomization) FromResource added in v0.6.0

func (InstallationTemplateCustomization) ToMap added in v0.6.0

func (v InstallationTemplateCustomization) ToMap() map[string]interface{}

type InstallationTemplateUpdateOpts added in v0.6.0

type InstallationTemplateUpdateOpts struct {
	DefaultLanguage string                             `json:"defaultLanguage"`
	Customization   *InstallationTemplateCustomization `json:"customization"`
	TemplateName    string                             `json:"templateName"`
}

func (*InstallationTemplateUpdateOpts) FromResource added in v0.6.0

type IpLoadbalancing added in v0.3.0

type IpLoadbalancing struct {
	IPv6             string                          `json:"ipv6,omitempty"`
	IPv4             string                          `json:"ipv4,omitempty"`
	MetricsToken     string                          `json:"metricsToken,omitempty"`
	Zone             []string                        `json:"zone"`
	Offer            string                          `json:"offer"`
	ServiceName      string                          `json:"serviceName"`
	IpLoadbalancing  string                          `json:"ipLoadbalancing"`
	State            string                          `json:"state"`
	OrderableZones   []*IpLoadbalancingOrderableZone `json:"orderableZone"`
	VrackEligibility bool                            `json:"vrackEligibility"`
	VrackName        string                          `json:"vrackName"`
	SslConfiguration string                          `json:"sslConfiguration"`
	DisplayName      string                          `json:"displayName"`
}

type IpLoadbalancingDefinedFarm added in v0.6.0

type IpLoadbalancingDefinedFarm struct {
	Type string `json:"type"`
	Id   int64  `json:"id"`
}

func (IpLoadbalancingDefinedFarm) ToMap added in v0.6.0

func (v IpLoadbalancingDefinedFarm) ToMap() map[string]interface{}

type IpLoadbalancingFarm added in v0.8.0

type IpLoadbalancingFarm struct {
	Balance        *string                          `json:"balance,omitempty"`
	DisplayName    *string                          `json:"displayName,omitempty"`
	FarmId         int                              `json:"farmId"`
	Port           *int                             `json:"port,omitempty"`
	Probe          *IpLoadbalancingFarmBackendProbe `json:"probe,omitempty"`
	Stickiness     *string                          `json:"stickiness,omitempty"`
	VrackNetworkId *int64                           `json:"vrackNetworkId,omitempty"`
	Zone           string                           `json:"zone"`
}

type IpLoadbalancingFarmBackendProbe added in v0.8.0

type IpLoadbalancingFarmBackendProbe struct {
	ForceSsl *bool   `json:"forceSsl"`
	Interval *int    `json:"interval,omitempty"`
	Match    *string `json:"match,omitempty"`
	Method   *string `json:"method,omitempty"`
	Negate   *bool   `json:"negate"`
	Pattern  *string `json:"pattern,omitempty"`
	Port     *int    `json:"port,omitempty"`
	Type     *string `json:"type,omitempty"`
	URL      *string `json:"url,omitempty"`
}

func (*IpLoadbalancingFarmBackendProbe) FromResource added in v0.8.0

func (IpLoadbalancingFarmBackendProbe) ToMap added in v0.8.0

func (v IpLoadbalancingFarmBackendProbe) ToMap() map[string]interface{}

type IpLoadbalancingFarmCreateOrUpdateOpts added in v0.8.0

type IpLoadbalancingFarmCreateOrUpdateOpts struct {
	Balance        *string                          `json:"balance,omitempty"`
	DisplayName    *string                          `json:"displayName,omitempty"`
	Port           *int                             `json:"port,omitempty"`
	Probe          *IpLoadbalancingFarmBackendProbe `json:"probe,omitempty"`
	Stickiness     *string                          `json:"stickiness,omitempty"`
	VrackNetworkId *int64                           `json:"vrackNetworkId,omitempty"`
	Zone           string                           `json:"zone"`
}

func (*IpLoadbalancingFarmCreateOrUpdateOpts) FromResource added in v0.8.0

type IpLoadbalancingFarmServer added in v0.8.0

type IpLoadbalancingFarmServer struct {
	Address              string  `json:"address"`
	Backup               *bool   `json:"backup"`
	Chain                *string `json:"chain"`
	Cookie               *string `json:"cookie"`
	DisplayName          *string `json:"displayName"`
	FarmId               int     `json:"backendId"`
	Port                 *int    `json:"port"`
	Probe                *bool   `json:"probe"`
	ProxyProtocolVersion *string `json:"proxyProtocolVersion"`
	ServerId             int     `json:"serverId"`
	Ssl                  *bool   `json:"ssl"`
	Status               string  `json:"status"`
	Weight               *int    `json:"weight"`
}

func (IpLoadbalancingFarmServer) ToMap added in v0.8.0

func (v IpLoadbalancingFarmServer) ToMap() map[string]interface{}

type IpLoadbalancingFarmServerCreateOpts added in v0.8.0

type IpLoadbalancingFarmServerCreateOpts struct {
	Address              string  `json:"address"`
	Backup               *bool   `json:"backup"`
	Chain                *string `json:"chain,omitempty"`
	Cookie               *string `json:"cookie,omitempty"`
	DisplayName          *string `json:"displayName,omitempty"`
	Port                 *int    `json:"port,omitempty"`
	Probe                *bool   `json:"probe"`
	ProxyProtocolVersion *string `json:"proxyProtocolVersion,omitempty"`
	Ssl                  *bool   `json:"ssl"`
	Status               string  `json:"status"`
	Weight               *int    `json:"weight,omitempty"`
}

type IpLoadbalancingFarmServerUpdateOpts added in v0.8.0

type IpLoadbalancingFarmServerUpdateOpts struct {
	Address              *string `json:"address"`
	Backup               *bool   `json:"backup"`
	Chain                *string `json:"chain"`
	Cookie               *string `json:"cookie,omitempty"`
	DisplayName          *string `json:"displayName"`
	Port                 *int    `json:"port,omitempty"`
	Probe                *bool   `json:"probe"`
	ProxyProtocolVersion *string `json:"proxyProtocolVersion"`
	Ssl                  *bool   `json:"ssl"`
	Status               *string `json:"status"`
	Weight               *int    `json:"weight,omitempty"`
}

type IpLoadbalancingHttpFrontend added in v0.6.0

type IpLoadbalancingHttpFrontend struct {
	FrontendId    int      `json:"frontendId,omitempty"`
	Port          string   `json:"port"`
	Zone          string   `json:"zone"`
	AllowedSource []string `json:"allowedSource"`
	DedicatedIpFo []string `json:"dedicatedIpfo"`
	DefaultFarmId *int     `json:"defaultFarmId,omitempty"`
	DefaultSslId  *int     `json:"defaultSslId,omitempty"`
	Disabled      bool     `json:"disabled"`
	Ssl           bool     `json:"ssl"`
	DisplayName   string   `json:"displayName"`
}

type IpLoadbalancingOrderableZone added in v0.3.0

type IpLoadbalancingOrderableZone struct {
	Name     string `json:"name"`
	PlanCode string `json:"plan_code"`
}

type IpLoadbalancingTcpFrontend added in v0.4.0

type IpLoadbalancingTcpFrontend struct {
	FrontendId    int      `json:"frontendId,omitempty"`
	Port          string   `json:"port"`
	Zone          string   `json:"zone"`
	AllowedSource []string `json:"allowedSource"`
	DedicatedIpFo []string `json:"dedicatedIpfo"`
	DefaultFarmId *int     `json:"defaultFarmId,omitempty"`
	DefaultSslId  *int     `json:"defaultSslId,omitempty"`
	Disabled      bool     `json:"disabled"`
	Ssl           bool     `json:"ssl"`
	DisplayName   string   `json:"displayName"`
}

type IpLoadbalancingVrackNetwork added in v0.6.0

type IpLoadbalancingVrackNetwork struct {
	Subnet         string  `json:"subnet"`
	Vlan           int64   `json:"vlan"`
	VrackNetworkId int64   `json:"vrackNetworkId"`
	DisplayName    *string `json:"displayName,omitempty"`
	NatIp          string  `json:"natIp"`
}

func (IpLoadbalancingVrackNetwork) ToMap added in v0.6.0

func (v IpLoadbalancingVrackNetwork) ToMap() map[string]interface{}

type IpLoadbalancingVrackNetworkCreateOpts added in v0.6.0

type IpLoadbalancingVrackNetworkCreateOpts struct {
	Subnet      string  `json:"subnet"`
	Vlan        *int64  `json:"vlan,omitempty"`
	DisplayName *string `json:"displayName,omitempty"`
	NatIp       string  `json:"natIp"`
}

func (*IpLoadbalancingVrackNetworkCreateOpts) FromResource added in v0.6.0

type IpLoadbalancingVrackNetworkUpdateOpts added in v0.6.0

type IpLoadbalancingVrackNetworkUpdateOpts struct {
	Vlan        *int64  `json:"vlan,omitempty"`
	DisplayName *string `json:"displayName,omitempty"`
	NatIp       *string `json:"natIp,omitempty"`
}

func (*IpLoadbalancingVrackNetworkUpdateOpts) FromResource added in v0.6.0

type MeIpxeScriptCreateOpts added in v0.8.0

type MeIpxeScriptCreateOpts struct {
	Description string `json:"description"`
	Name        string `json:"name"`
	Script      string `json:"script"`
}

MeIpxeScript Opts

type MeIpxeScriptResponse added in v0.8.0

type MeIpxeScriptResponse struct {
	Name   string `json:"name"`
	Script string `json:"script"`
}

func (*MeIpxeScriptResponse) String added in v0.8.0

func (s *MeIpxeScriptResponse) String() string

type MeSshKeyCreateOpts added in v0.6.0

type MeSshKeyCreateOpts struct {
	KeyName string `json:"keyName"`
	Key     string `json:"key"`
}

MeSshKey Opts

type MeSshKeyResponse added in v0.6.0

type MeSshKeyResponse struct {
	KeyName string `json:"keyName"`
	Key     string `json:"key"`
	Default bool   `json:"default"`
}

func (*MeSshKeyResponse) String added in v0.6.0

func (s *MeSshKeyResponse) String() string

type MeSshKeyUpdateOpts added in v0.6.0

type MeSshKeyUpdateOpts struct {
	Default bool `json:"default"`
}

type OvhAuthCurrentCredential added in v0.3.0

type OvhAuthCurrentCredential struct {
	OvhSupport    bool             `json:"ovhSupport"`
	Status        string           `json:"status"`
	ApplicationId int64            `json:"applicationId"`
	CredentialId  int64            `json:"credentialId"`
	Rules         []ovh.AccessRule `json:"rules"`
	Expiration    time.Time        `json:"expiration"`
	LastUse       time.Time        `json:"lastUse"`
	Creation      time.Time        `json:"creation"`
}

type OvhDomainZoneRecord added in v0.3.0

type OvhDomainZoneRecord struct {
	Id        int64  `json:"id,omitempty"`
	Zone      string `json:"zone,omitempty"`
	Target    string `json:"target"`
	Ttl       int    `json:"ttl,omitempty"`
	FieldType string `json:"fieldType"`
	SubDomain string `json:"subDomain,omitempty"`
}

func (*OvhDomainZoneRecord) String added in v0.4.0

func (r *OvhDomainZoneRecord) String() string

type OvhDomainZoneRedirection added in v0.3.0

type OvhDomainZoneRedirection struct {
	Id          int    `json:"id,omitempty"`
	Zone        string `json:"zone,omitempty"`
	Target      string `json:"target,omitempty"`
	SubDomain   string `json:"subDomain"`
	Type        string `json:"type,omitempty"`
	Description string `json:"description"`
	Keywords    string `json:"keywords"`
	Title       string `json:"title"`
}

type OvhIpReverse added in v0.4.0

type OvhIpReverse struct {
	IpReverse string `json:"ipReverse"`
	Reverse   string `json:"reverse"`
}

type Partition added in v0.6.0

type Partition struct {
	Filesystem string       `json:"filesystem"`
	Mountpoint string       `json:"mountpoint"`
	Order      int          `json:"order"`
	Raid       *string      `json:"raid,omitempty"`
	Size       UnitAndValue `json:"size"`
	Type       string       `json:"type"`
	VolumeName *string      `json:"volumeName,omitempty"`
}

func (Partition) ToMap added in v0.6.0

func (v Partition) ToMap() map[string]interface{}

type PartitionCreateOpts added in v0.6.0

type PartitionCreateOpts struct {
	Filesystem string  `json:"filesystem"`
	Mountpoint string  `json:"mountpoint"`
	Step       int     `json:"step"`
	Raid       *string `json:"raid,omitempty"`
	Size       int     `json:"size"`
	Type       string  `json:"type"`
	VolumeName *string `json:"volumeName,omitempty"`
}

func (*PartitionCreateOpts) FromResource added in v0.6.0

type PartitionScheme added in v0.6.0

type PartitionScheme struct {
	Name     string `json:"name"`
	Priority int    `json:"priority"`
}

func (PartitionScheme) ToMap added in v0.6.0

func (v PartitionScheme) ToMap() map[string]interface{}

type PartitionSchemeCreateOrUpdateOpts added in v0.6.0

type PartitionSchemeCreateOrUpdateOpts struct {
	PartitionScheme
}

func (*PartitionSchemeCreateOrUpdateOpts) FromResource added in v0.6.0

type PartitionUpdateOpts added in v0.6.0

type PartitionUpdateOpts struct {
	Partition
}

func (*PartitionUpdateOpts) FromResource added in v0.6.0

type TaskOpts

type TaskOpts struct {
	ServiceName string `json:"serviceName"`
	TaskId      string `json:"taskId"`
}

Task Opts

type UnitAndValue added in v0.6.0

type UnitAndValue struct {
	Unit  string `json:"unit"`
	Value int    `json:"value"`
}

func (UnitAndValue) ToMap added in v0.6.0

func (v UnitAndValue) ToMap() map[string]interface{}

type VPS added in v0.7.0

type VPS struct {
	Name           string   `json:"name"`
	Cluster        string   `json:"cluster"`
	Memory         int      `json:"memoryLimit"`
	NetbootMode    string   `json:"netbootMode"`
	Keymap         string   `json:"keymap"`
	Zone           string   `json:"zone"`
	State          string   `json:"state"`
	Vcore          int      `json:"vcore"`
	OfferType      string   `json:"offerType"`
	SlaMonitorting bool     `json:"slaMonitoring"`
	DisplayName    string   `json:"displayName"`
	Model          VPSModel `json:"model"`
}

type VPSDatacenter added in v0.7.0

type VPSDatacenter struct {
	Name     string `json:"name"`
	Longname string `json:"longname"`
}

type VPSModel added in v0.7.0

type VPSModel struct {
	Name    string `json:"name"`
	Offer   string `json:"offer"`
	Memory  int    `json:"memory"`
	Vcore   int    `json:"vcore"`
	Version string `json:"version"`
	Disk    int    `json:"disk"`
}

type VPSProperties added in v0.7.0

type VPSProperties struct {
	NetbootMode    *string `json:"netbootMode"`
	Keymap         *string `json:"keymap"`
	SlaMonitorting bool    `json:"slaMonitoring"`
	DisplayName    *string `json:"displayName"`
}

type VrackCloudProject added in v0.6.0

type VrackCloudProject struct {
	Vrack   string `json:"vrack"`
	Project string `json:"project"`
}

type VrackCloudProjectCreateOpts added in v0.6.0

type VrackCloudProjectCreateOpts struct {
	Project string `json:"project"`
}

func (*VrackCloudProjectCreateOpts) FromResource added in v0.6.0

type VrackDedicatedServer added in v0.6.0

type VrackDedicatedServer struct {
	Vrack           string `json:"vrack"`
	DedicatedServer string `json:"dedicatedServer"`
}

type VrackDedicatedServerCreateOpts added in v0.6.0

type VrackDedicatedServerCreateOpts struct {
	DedicatedServer string `json:"dedicatedServer"`
}

func (*VrackDedicatedServerCreateOpts) FromResource added in v0.6.0

type VrackDedicatedServerInterface added in v0.6.0

type VrackDedicatedServerInterface struct {
	Vrack                    string `json:"vrack"`
	DedicatedServerInterface string `json:"dedicatedServerInterface"`
}

type VrackDedicatedServerInterfaceCreateOpts added in v0.6.0

type VrackDedicatedServerInterfaceCreateOpts struct {
	DedicatedServerInterface string `json:"dedicatedServerInterface"`
}

func (*VrackDedicatedServerInterfaceCreateOpts) FromResource added in v0.6.0

type VrackIpLoadbalancing added in v0.6.0

type VrackIpLoadbalancing struct {
	Vrack           string `json:"vrack"`
	IpLoadbalancing string `json:"ipLoadbalancing"`
}

type VrackIpLoadbalancingCreateOpts added in v0.6.0

type VrackIpLoadbalancingCreateOpts struct {
	IpLoadbalancing string `json:"ipLoadbalancing"`
}

func (*VrackIpLoadbalancingCreateOpts) FromResource added in v0.6.0

type VrackTask added in v0.6.0

type VrackTask struct {
	Id           int       `json:"id"`
	Function     string    `json:"function"`
	TargetDomain string    `json:"targetDomain"`
	Status       string    `json:"status"`
	ServiceName  string    `json:"serviceName"`
	OrderId      int       `json:"orderId"`
	LastUpdate   time.Time `json:"lastUpdate"`
	TodoDate     time.Time `json:"TodoDate"`
}

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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