ovhdynhost

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClient

func GetClient() (*ovh.Client, error)

GetClient returns an ovh.Client

func UpdateDynHostIP

func UpdateDynHostIP(client *ovh.Client, zone string, dynHostID int, newIP netip.Addr) error

UpdateDynHostIP updates the IP address in OVH

Types

type DynHostRecord

type DynHostRecord struct {
	SubDomain string `json:"subDomain"`
	IP        string `json:"ip"`
	ID        int    `json:"id"`
	Zone      string `json:"zone"`
	TTL       int    `json:"ttl"`
}

DynHostRecord is an object returned from OVH API endpoint /domain/zone/*/dynHost/record/*

func FindDynHostRecord

func FindDynHostRecord(client *ovh.Client, zone string, subDomain string) (*DynHostRecord, error)

FindDynHostRecord searches for a dynhost record in the OVH api

type DynHostRecordPut

type DynHostRecordPut struct {
	IP string `json:"ip"`
}

DynHostRecordPut is an object to update in OVH API endpoint /domain/zone/*/dynHost/record/*

Jump to

Keyboard shortcuts

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