Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsRouteNotFound ¶
IsRouteNotFound returns true if the passed error indicates a Worker Route was not found.
func UpToDate ¶
func UpToDate(spec *v1alpha1.RouteParameters, o cloudflare.WorkerRoute) bool
UpToDate checks if the remote Route is up to date with the requested resource parameters.
func UpdateRoute ¶
func UpdateRoute(ctx context.Context, client Client, routeID string, spec *v1alpha1.RouteParameters) error
UpdateRoute updates mutable values on a Worker Route.
Types ¶
type Client ¶
type Client interface { CreateWorkerRoute(ctx context.Context, zoneID string, route cloudflare.WorkerRoute) (cloudflare.WorkerRouteResponse, error) UpdateWorkerRoute(ctx context.Context, zoneID string, routeID string, route cloudflare.WorkerRoute) (cloudflare.WorkerRouteResponse, error) GetWorkerRoute(ctx context.Context, zoneID string, routeID string) (cloudflare.WorkerRouteResponse, error) DeleteWorkerRoute(ctx context.Context, zoneID string, routeID string) (cloudflare.WorkerRouteResponse, error) }
Client is a Cloudflare API client that implements methods for working with Worker Routes.
Click to show internal directories.
Click to hide internal directories.