Documentation ¶
Index ¶
- func GenerateObservation(in cloudflare.CustomHostnameFallbackOrigin) v1alpha1.FallbackOriginObservation
- func IsFallbackOriginNotFound(err error) bool
- func UpToDate(spec *v1alpha1.FallbackOriginParameters, ...) bool
- func UpdateFallbackOrigin(ctx context.Context, client Client, spec *v1alpha1.FallbackOriginParameters) error
- type Client
- type ErrNotFound
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateObservation ¶
func GenerateObservation(in cloudflare.CustomHostnameFallbackOrigin) v1alpha1.FallbackOriginObservation
GenerateObservation creates an observation of a cloudflare Fallback Origin
func IsFallbackOriginNotFound ¶
IsFallbackOriginNotFound returns true if the passed error indicates that the FallbackOrigin is not found (been deleted or not set at all).
func UpToDate ¶
func UpToDate(spec *v1alpha1.FallbackOriginParameters, o cloudflare.CustomHostnameFallbackOrigin) bool
UpToDate checks if the remote resource is up to date with the requested resource parameters.
func UpdateFallbackOrigin ¶
func UpdateFallbackOrigin(ctx context.Context, client Client, spec *v1alpha1.FallbackOriginParameters) error
UpdateFallbackOrigin updates mutable values on a Fallback Origin
Types ¶
type Client ¶
type Client interface { UpdateCustomHostnameFallbackOrigin(ctx context.Context, zoneID string, chfo cloudflare.CustomHostnameFallbackOrigin) (*cloudflare.CustomHostnameFallbackOriginResponse, error) DeleteCustomHostnameFallbackOrigin(ctx context.Context, zoneID string) error CustomHostnameFallbackOrigin(ctx context.Context, zoneID string) (cloudflare.CustomHostnameFallbackOrigin, error) }
Client is a Cloudflare API client that implements methods for working with Fallback Origins.
type ErrNotFound ¶
type ErrNotFound struct{}
ErrNotFound is an error type so that we can return it in the controller test mocks
func (*ErrNotFound) Error ¶
func (e *ErrNotFound) Error() string
Click to show internal directories.
Click to hide internal directories.