vultr

package
v0.0.0-...-89564b7 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

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

func New

func New(data json.RawMessage, domain, owner string,
	ipVersion ipversion.IPVersion, ipv6Suffix netip.Prefix) (
	provider *Provider, err error,
)

func (*Provider) BuildDomainName

func (p *Provider) BuildDomainName() string

func (*Provider) Domain

func (p *Provider) Domain() string

func (*Provider) HTML

func (p *Provider) HTML() models.HTMLRow

func (*Provider) IPVersion

func (p *Provider) IPVersion() ipversion.IPVersion

func (*Provider) IPv6Suffix

func (p *Provider) IPv6Suffix() netip.Prefix

func (*Provider) Owner

func (p *Provider) Owner() string

func (*Provider) Proxied

func (p *Provider) Proxied() bool

func (*Provider) String

func (p *Provider) String() string

func (*Provider) Update

func (p *Provider) Update(ctx context.Context, client *http.Client, ip netip.Addr) (newIP netip.Addr, err error)

Update does the following: 1. if there's no record, create it. 2. if it exists and ip is different, update it. 3. if it exists and ip is the same, do nothing.

Jump to

Keyboard shortcuts

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