Documentation ¶
Index ¶
- func AStrArray() []string
- func GenerateBucketConfigFromServerParams(in *ibmBucketConf.Bucket) (*v1alpha1.BucketConfigParams, error)
- func GenerateBucketConfigObservation(in *ibmBucketConf.Bucket) (v1alpha1.BucketConfigObservation, error)
- func GenerateBucketObservation(in *s3.Bucket) (v1alpha1.BucketObservation, error)
- func GenerateCloudBucketConfig(spec *v1alpha1.BucketConfigParams, eTag *string) (*ibmBucketConf.UpdateBucketConfigOptions, error)
- func GenerateS3BucketInput(in *v1alpha1.BucketPararams, out *s3.CreateBucketInput) error
- func IsUpToDate(in *v1alpha1.BucketConfigParams, observed *ibmBucketConf.Bucket, ...) (bool, error)
- func LateInitializeSpec(spec *v1alpha1.BucketConfigParams, fromIBMCloud *ibmBucketConf.Bucket) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateBucketConfigFromServerParams ¶
func GenerateBucketConfigFromServerParams(in *ibmBucketConf.Bucket) (*v1alpha1.BucketConfigParams, error)
GenerateBucketConfigFromServerParams generates parameters for the crossplane object (bucket), from the one in the cloud. Moreover, if sets the 'Enabled' field to true whenever there is data returned for HardQuota, ActivityTracking etc
func GenerateBucketConfigObservation ¶
func GenerateBucketConfigObservation(in *ibmBucketConf.Bucket) (v1alpha1.BucketConfigObservation, error)
GenerateBucketConfigObservation returns an observation object, created with values taken from the 'in' parameter
func GenerateBucketObservation ¶
func GenerateBucketObservation(in *s3.Bucket) (v1alpha1.BucketObservation, error)
GenerateBucketObservation sets the reported creation date to the IBM-cloud one
func GenerateCloudBucketConfig ¶
func GenerateCloudBucketConfig(spec *v1alpha1.BucketConfigParams, eTag *string) (*ibmBucketConf.UpdateBucketConfigOptions, error)
GenerateCloudBucketConfig returns an object created from the `in' object and the 'eTag'
func GenerateS3BucketInput ¶
func GenerateS3BucketInput(in *v1alpha1.BucketPararams, out *s3.CreateBucketInput) error
GenerateS3BucketInput populates the `out' object based on the values in the "in" object
func IsUpToDate ¶
func IsUpToDate(in *v1alpha1.BucketConfigParams, observed *ibmBucketConf.Bucket, l logging.Logger) (bool, error)
IsUpToDate checks whether the current bucket config (in the cloud) is up-to-date compared to the crossplane one
func LateInitializeSpec ¶
func LateInitializeSpec(spec *v1alpha1.BucketConfigParams, fromIBMCloud *ibmBucketConf.Bucket) (bool, error)
LateInitializeSpec fills optional and unassigned fields with the values in the spec, from the info that comes from the cloud
Params
spec - what we get from k8s fromIBMCloud - ...what comes from the cloud
Returns
whether the resource was late-initialized, any error
Types ¶
This section is empty.