vultr

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VultrChanges

type VultrChanges struct {
	Action string

	ResourceRecordSet *govultr.DomainRecordReq
}

VultrChanges differentiates between ChangActions.

type VultrProvider

type VultrProvider struct {
	provider.BaseProvider

	DryRun bool
	// contains filtered or unexported fields
}

VultrProvider is an implementation of Provider for Vultr DNS.

func NewVultrProvider

func NewVultrProvider(ctx context.Context, domainFilter endpoint.DomainFilter, dryRun bool) (*VultrProvider, error)

NewVultrProvider initializes a new Vultr BNS based provider

func (*VultrProvider) ApplyChanges

func (p *VultrProvider) ApplyChanges(ctx context.Context, changes *plan.Changes) error

ApplyChanges applies a given set of changes in a given zone.

func (*VultrProvider) Records

func (p *VultrProvider) Records(ctx context.Context) ([]*endpoint.Endpoint, error)

Records returns the list of records.

func (*VultrProvider) Zones

func (p *VultrProvider) Zones(ctx context.Context) ([]govultr.Domain, error)

Zones returns list of hosted zones

Jump to

Keyboard shortcuts

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