Documentation ¶
Index ¶
- func CreateFilter(ctx context.Context, client Client, spec *v1alpha1.FilterParameters) (*cloudflare.Filter, error)
- func GenerateObservation(in cloudflare.Filter) v1alpha1.FilterObservation
- func IsFilterNotFound(err error) bool
- func LateInitialize(spec *v1alpha1.FilterParameters, f cloudflare.Filter) bool
- func UpToDate(spec *v1alpha1.FilterParameters, f cloudflare.Filter) bool
- func UpdateFilter(ctx context.Context, client Client, filterID string, ...) error
- type Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFilter ¶
func CreateFilter(ctx context.Context, client Client, spec *v1alpha1.FilterParameters) (*cloudflare.Filter, error)
CreateFilter creates a new Filter
func GenerateObservation ¶
func GenerateObservation(in cloudflare.Filter) v1alpha1.FilterObservation
GenerateObservation creates an observation of a cloudflare Filter
func IsFilterNotFound ¶
IsFilterNotFound returns true if the passed error indicates a Filter was not found.
func LateInitialize ¶
func LateInitialize(spec *v1alpha1.FilterParameters, f cloudflare.Filter) bool
LateInitialize initializes FilterParameters based on the remote resource
func UpToDate ¶
func UpToDate(spec *v1alpha1.FilterParameters, f cloudflare.Filter) bool
UpToDate checks if the remote resource is up to date with the requested resource parameters.
func UpdateFilter ¶
func UpdateFilter(ctx context.Context, client Client, filterID string, spec *v1alpha1.FilterParameters) error
UpdateFilter updates mutable values on a Filter
Types ¶
type Client ¶
type Client interface { // Note there is no singular CreateFilter in cloudflare-go CreateFilters(ctx context.Context, zoneID string, firewallFilters []cloudflare.Filter) ([]cloudflare.Filter, error) UpdateFilter(ctx context.Context, zoneID string, firewallFilter cloudflare.Filter) (cloudflare.Filter, error) DeleteFilter(ctx context.Context, zoneID, firewallFilterID string) error Filter(ctx context.Context, zoneID, firewallFilterID string) (cloudflare.Filter, error) }
Client is a Cloudflare API client that implements methods for working with Firewall rules.
Click to show internal directories.
Click to hide internal directories.