bucket

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateBucket

func GenerateBucket(name string, params v1alpha1.BucketParameters) *domain.Bucket

GenerateBucket returns a Bucket model that the InfluxDB API accepts for creation and update.

func GenerateBucketObservation

func GenerateBucketObservation(b *domain.Bucket) v1alpha1.BucketObservation

GenerateBucketObservation converts an Bucket response to an observation.

func IsNotFoundFn

func IsNotFoundFn(name string) resource.ErrorIs

IsNotFoundFn returns an ErrorIs function that can tell whether the error is of kind NotFound.

func IsUpToDate

func IsUpToDate(params v1alpha1.BucketParameters, obs *domain.Bucket) bool

IsUpToDate returns whether an update call is necessary.

func LateInitialize

func LateInitialize(params *v1alpha1.BucketParameters, obs *domain.Bucket) bool

LateInitialize sets the defaults from the API if user didn't set a value for such fields.

func Setup

Setup adds a controller that reconciles Bucket managed resources.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL