scaleway

package
v0.0.0-...-f3e3a65 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	URL = "https://api.scaleway.com/domain/v2beta1/dns-zones/%s/records"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSChange

type DNSChange struct {
	Set SetRecord `json:"set"`
}

DNSChange for Scaleway API.

type DNSProvider

type DNSProvider struct {
	// contains filtered or unexported fields
}

DNSProvider struct.

func (*DNSProvider) Init

func (provider *DNSProvider) Init(conf *settings.Settings)

func (*DNSProvider) UpdateIP

func (provider *DNSProvider) UpdateIP(domainName string, subdomainName string, ip string) error

type DNSUpdateRequest

type DNSUpdateRequest struct {
	Changes []DNSChange `json:"changes"`
}

DNSUpdateRequest for Scaleway API.

type IDFields

type IDFields struct {
	Name string `json:"name"`
	Type string `json:"type"`
}

IDFields to filter DNS records for Scaleway API.

type Record

type Record struct {
	Name    string `json:"name"`
	Data    string `json:"data"`
	TTL     int    `json:"ttl"`
	Comment string `json:"comment"`
}

Record for Scaleway API.

type SetRecord

type SetRecord struct {
	IDFields IDFields `json:"id_fields"`
	Records  []Record `json:"records"`
}

SetRecord for Scaleway API.

Jump to

Keyboard shortcuts

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