Documentation ¶
Index ¶
- func GenerateCreateResourceKeyOptions(client ibmc.ClientSession, in v1alpha1.ResourceKeyParameters, ...) error
- func GenerateCredentials(in rcv2.Credentials) v1alpha1.Credentials
- func GenerateObservation(client ibmc.ClientSession, in *rcv2.ResourceKey) (v1alpha1.ResourceKeyObservation, error)
- func GenerateParameters(in *v1alpha1.ResourceKeyPostParameters) *rcv2.ResourceKeyPostParameters
- func GenerateResourceKeyParameters(client ibmc.ClientSession, in *rcv2.ResourceKey) (*v1alpha1.ResourceKeyParameters, error)
- func GenerateUpdateResourceKeyOptions(client ibmc.ClientSession, id string, in v1alpha1.ResourceKeyParameters, ...) error
- func GetConnectionDetails(cr *v1alpha1.ResourceKey, in *rcv2.ResourceKey) (managed.ConnectionDetails, error)
- func IsUpToDate(client ibmc.ClientSession, in *v1alpha1.ResourceKeyParameters, ...) (bool, error)
- func LateInitializeSpec(client ibmc.ClientSession, spec *v1alpha1.ResourceKeyParameters, ...) error
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
func GenerateParameters(in *v1alpha1.ResourceKeyPostParameters) *rcv2.ResourceKeyPostParameters
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.