Documentation ¶
Index ¶
- func GenerateObservation(in cloudflare.DNSRecord) v1alpha1.RecordObservation
- func IsRecordNotFound(err error) bool
- func LateInitialize(spec *v1alpha1.RecordParameters, o cloudflare.DNSRecord) bool
- func UpToDate(spec *v1alpha1.RecordParameters, o cloudflare.DNSRecord) bool
- func UpdateRecord(ctx context.Context, client Client, recordID string, ...) error
- type Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateObservation ¶
func GenerateObservation(in cloudflare.DNSRecord) v1alpha1.RecordObservation
GenerateObservation creates an observation of a cloudflare Record.
func IsRecordNotFound ¶
IsRecordNotFound returns true if the passed error indicates a Record was not found.
func LateInitialize ¶
func LateInitialize(spec *v1alpha1.RecordParameters, o cloudflare.DNSRecord) bool
LateInitialize initializes RecordParameters based on the remote resource.
func UpToDate ¶
func UpToDate(spec *v1alpha1.RecordParameters, o cloudflare.DNSRecord) bool
UpToDate checks if the remote Record is up to date with the requested resource parameters.
func UpdateRecord ¶
func UpdateRecord(ctx context.Context, client Client, recordID string, spec *v1alpha1.RecordParameters) error
UpdateRecord updates mutable values on a DNS Record.
Types ¶
type Client ¶
type Client interface { CreateDNSRecord(ctx context.Context, zoneID string, rr cloudflare.DNSRecord) (*cloudflare.DNSRecordResponse, error) UpdateDNSRecord(ctx context.Context, zoneID, recordID string, rr cloudflare.DNSRecord) error DNSRecord(ctx context.Context, zoneID, recordID string) (cloudflare.DNSRecord, error) DeleteDNSRecord(ctx context.Context, zoneID, recordID string) error }
Client is a Cloudflare API client that implements methods for working with DNS Records.
Click to show internal directories.
Click to hide internal directories.