resourcekey

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCreateResourceKeyOptions

func GenerateCreateResourceKeyOptions(client ibmc.ClientSession, in v1alpha1.ResourceKeyParameters, o *rcv2.CreateResourceKeyOptions) error

GenerateCreateResourceKeyOptions produces CreateResourceKeyOptions object from ResourceKeyParameters object.

func GenerateCredentials added in v0.2.0

func GenerateCredentials(in rcv2.Credentials) v1alpha1.Credentials

GenerateCredentials generates v1alpha1.Credentials from rcv2.Credentials

func GenerateObservation

func GenerateObservation(client ibmc.ClientSession, in *rcv2.ResourceKey) (v1alpha1.ResourceKeyObservation, error)

GenerateObservation produces ResourceKeyObservation object from *rcv2.ResourceKey object.

func GenerateParameters added in v0.2.0

GenerateParameters generates rcv2.ResourceKeyPostParameters from v1alpha1.ResourceKeyPostParameters

func GenerateResourceKeyParameters

func GenerateResourceKeyParameters(client ibmc.ClientSession, in *rcv2.ResourceKey) (*v1alpha1.ResourceKeyParameters, error)

GenerateResourceKeyParameters generates service instance parameters from resource instance

func GenerateUpdateResourceKeyOptions

func GenerateUpdateResourceKeyOptions(client ibmc.ClientSession, id string, in v1alpha1.ResourceKeyParameters, o *rcv2.UpdateResourceKeyOptions) error

GenerateUpdateResourceKeyOptions produces UpdateResourceKeyOptions object from ResourceKeyParameters object.

func GetConnectionDetails

func GetConnectionDetails(cr *v1alpha1.ResourceKey, in *rcv2.ResourceKey) (managed.ConnectionDetails, error)

GetConnectionDetails generate the connection details from the *rcv2.ResourceKey in a format ready to be set into a secret

func IsUpToDate

func IsUpToDate(client ibmc.ClientSession, in *v1alpha1.ResourceKeyParameters, observed *rcv2.ResourceKey, l logging.Logger) (bool, error)

IsUpToDate checks whether current state is up-to-date compared to the given set of parameters.

func LateInitializeSpec

func LateInitializeSpec(client ibmc.ClientSession, spec *v1alpha1.ResourceKeyParameters, in *rcv2.ResourceKey) error

LateInitializeSpec fills optional and unassigned fields with the values in *rcv2.ResourceKey object.

Types

This section is empty.

Jump to

Keyboard shortcuts

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