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)
Click to show internal directories.
Click to hide internal directories.