civo

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CivoChangeCreate

type CivoChangeCreate struct {
	Domain  civogo.DNSDomain
	Options *civogo.DNSRecordConfig
}

CivoChangeCreate Civo Domain Record Creates

type CivoChangeDelete

type CivoChangeDelete struct {
	Domain       civogo.DNSDomain
	DomainRecord civogo.DNSRecord
}

CivoChangeDelete Civo Domain Record Deletes

type CivoChangeUpdate

type CivoChangeUpdate struct {
	Domain       civogo.DNSDomain
	DomainRecord civogo.DNSRecord
	Options      civogo.DNSRecordConfig
}

CivoChangeUpdate Civo Domain Record Updates

type CivoChanges

type CivoChanges struct {
	Creates []*CivoChangeCreate
	Deletes []*CivoChangeDelete
	Updates []*CivoChangeUpdate
}

CivoChanges All API calls calculated from the plan

func (*CivoChanges) Empty added in v0.13.6

func (c *CivoChanges) Empty() bool

Empty returns true if there are no changes

type CivoProvider

type CivoProvider struct {
	provider.BaseProvider
	Client civogo.Client

	DryRun bool
	// contains filtered or unexported fields
}

CivoProvider is an implementation of Provider for Civo's DNS.

func NewCivoProvider

func NewCivoProvider(domainFilter endpoint.DomainFilter, dryRun bool) (*CivoProvider, error)

NewCivoProvider initializes a new Civo DNS based Provider.

func (*CivoProvider) ApplyChanges

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

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

func (*CivoProvider) Records

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

Records returns the list of records in a given zone.

func (*CivoProvider) Zones

func (p *CivoProvider) Zones(ctx context.Context) ([]civogo.DNSDomain, error)

Zones returns the list of hosted zones.

Jump to

Keyboard shortcuts

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