cf

package
v0.0.0-...-1ba1b5d Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RecordMapByID

func RecordMapByID(records []cloudflare.DNSRecord) map[string]cloudflare.DNSRecord

func RecordMapByName

func RecordMapByName(records []cloudflare.DNSRecord) map[string][]cloudflare.DNSRecord

Types

type Cloudflare

type Cloudflare interface {
	GetTunnelConfiguration(ctx context.Context, accountID, tunnelID string) (*cloudflare.TunnelConfigurationResult, error)
	UpdateTunnelIngress(ctx context.Context, accountID, tunnelID string, ingress []cloudflare.UnvalidatedIngressRule) error

	ListZones(ctx context.Context) ([]cloudflare.Zone, error)
	ListAllZoneRecords(ctx context.Context) ([]cloudflare.DNSRecord, error)
	ListZoneRecords(ctx context.Context, zoneID string) ([]cloudflare.DNSRecord, error)

	CreateDNSRecord(ctx context.Context, record cloudflare.DNSRecord) error
	DeleteDNSRecord(ctx context.Context, zoneID, recordID string) error
	UpdateDNSRecord(ctx context.Context, record cloudflare.DNSRecord) error
}

func NewCloudflareClient

func NewCloudflareClient(email, key, token string) (Cloudflare, error)

Jump to

Keyboard shortcuts

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