cos

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AStrArray

func AStrArray() []string

AStrArray returns an array of strings

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.

Jump to

Keyboard shortcuts

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